BuCS 238 Computer Programming II
Class Assignments
- >
Assignment 4 REDO : Sudoku2 - due Wed, 25 Mar 2026
- >
Assignment 4 : Sudoku2 due Mon, 9 Mar 2026
- Add MakeEmpty() to ADT Unsorted List and test to make sure it works.
- Try adding duplicate values to an unsorted list to see what happens.
- Suggestion: Add your MakeEmpty test and duplicate values test to listtest.cpp
- Copy your Sudoku files into the Sudoku2 folder and add them to your project.
- Add ADT Unsorted List to your Sudoku2 project and change ItemType so it stores characters.
- Note: itemtype.h, itemtype.cpp, unsorted.h and unsorted.cpp have been added to your project.
- Create checkSudoku(table) which returns true or false depending on if table is a valid Sudoku.
- You only need to write an algorithm for checkSudoku(table).
- Use Unsorted List to determine whether a Sudoku puzzle has been correctly solved.
- Note: This means that values 1 – 9 appear in each column and row only once.
- Note: You don't need to check squares. If you can do it, it will be worth extra credit.
- Output the Sudoku to the screen and to a file.
- Suggestion: Don't worry about file output until after you get it working to screen.
- Output the results of your row and column tests to screen.
- Output either “VALID Sudoku” or “INVALID Sudoku” to screen and to a file.
- Include a test plan and execute your test plan.
- >
Assignment 3 REDO : TwoNum - due Mon, 2 Mar 2026
- >
Assignment 3 : TwoNum Class due Mon, 23 Feb 2026
- Write a class called TwoNum which stores two integer numbers.
- The project should be called "TwoNum".
- The class file names should be "twonum.h" and "twonum.cpp".
- Create a default constructor which initializes both numbers to zero.
- Create a parameterized constructor which allows you to set the numbers during object creation.
- Create a class method named GetNum1 which returns the first number.
- Create a class method named GetNum2 which returns the second number.
- Create a class method named GetNumbers which returns both numbers to the user in any order.
- Create a class method named Sum which returns the total of the two numbers.
- Create a class method named Set which allows the user to change both numbers at once.
- Note that twonum.cpp should not contain any cout statements.
- Any output (cout) statements should be in your test driver.
- Create a test driver named "twonumDr.cpp" to test all the features of your new class.
- A good example to use would be time.h and time.cpp from OOP_Example.
- A good example of pre- and postconditions would be unsorted.h
- Comment twonum.h in the same style as unsorted.h
- Good examples of the driver file would be "oop_example.cpp" or "listtest.cpp"
- Be sure to comment your test driver file. The comments will be your test plan."
- No algorithm is required in this assignment.
- You are not expected to input or output using files in this assignment.
- >
Assignment 2 REDO : Sudoku - due Mon, 16 Feb 2026
- >
Assignment 2 : Sudoku - due Mon, 9 Feb 2026
- >
Assignment 1 REDO : Package - due Mon, 2 Feb 2026
- >
Assignment 1 : Package - due Wed, 28 Jan 2026
- >
Assignment 0 : GasPrice (will be completed during class)