BuCS 238 Computer Programming II

Class Assignments


> Assignment 6 : Implement Ch5_QueueLL as a circular linked list due Mon, 8 Apr 2024.
      Your project should be named Assign6_QueueLL_Circ and is provided for you.
      The project currently contains the Ch5_QueueLL code.
      You need to remove front as a private variable and access front using rear->next.
      Change the class, methods and driver as appropriate and test.
      Helpful hint: Code for Print
      Helpful hint: Start in.txt with only Quit, then add test items as you implement them.
      Helpful hint: Don't be afraid to draw your code line by line or use Jamboard!

> Assignment 5 REDO : Files - due Mon, 1 Apr 2024

> Assignment 5 : Files - due Mon, 25 Mar 2024
     This assignment is in your CP2 folder in the Files project.
     The instructions are in the files.cpp main program file.

> Assignment 4 REDO : Sudoku2 - due Wed, 20 Mar 2024

> Assignment 4 : Sudoku2 due Mon, 4 Mar 2024
     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, 26 Feb 2024

> Assignment 3 : TwoNum Class due Mon, 19 Feb 2024
     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."
     You are not expected to input or output using files in this assignment.

> Assignment 2 REDO : Sudoku - due Mon, 12 Feb 2024

> Assignment 2 : Sudoku - due Mon, 5 Feb 2024

> Assignment 1 REDO : Package - due Mon, 29 Jan 2024

> Assignment 1 : Package - due Mon, 22 Jan 2024

> Assignment 0 : GasPrice (will be completed during class) -->


This page maintained by bobh@hesston.edu