This final exam is a comprehensive take-home assessment. You will design and create a complete C++ program that demonstrates your understanding of the major programming concepts covered this semester.
This assignment is not just about writing code. You are expected to show that you can plan, organize, test, explain, and complete a working program.
You will create a program called:
Your program should allow a user to enter personal expenses, store those expenses, analyze the data, display results, and save the results to a file.
Your program must include:
- Variables and constants
- Input and output
- Calculations
- if/else decision structures
- while loop
- do-while loop
- for loop
- Functions
- Arrays
- File output
- Comments and readable formatting
- Required Program Features
- Your program must:
- Enter expenses
- Display summary
- Save summary to file
- Exit
- Ask the user how many expenses they want to enter.
- Validate that the number of expenses is between 1 and 20.
- Store all expenses in an array.
- Calculate and display:
- Total expenses
- Average expense
- Highest expense
- Lowest expense
- Save the expense summary to a file named:
- expenses.txt
- Use at least 3 programmer-defined functions.
- Include comments throughout the code.
##Submit the following:
- Pseudocode (pdf)
- Flowchart (pdf)
- C++ source code file (cpp)
- Screenshot of program output png or jpg
- copy of the output file (expenses.txt)
- Code review form (pdf)
- Academic Integrity
- You may discuss ideas with classmates, but every student must submit their own original work.
You may not copy another student’s code.
If you use AI tools, tutoring websites, videos, or outside help, you must acknowledge that assistance in a comment at the top of your code.
- // I used ChatGPT to help me understand how to structure functions.
- // I wrote, tested, and modified the final code myself. Failure to submit original work may result in a zero and possible referral according to course and college policy.
- COSC 1436 Final Exam Code Review Form
- Student Name: ___________________________
- Reviewer Name: ___________________________
- Date: ___________________________
-
Did the program compile successfully? ☐ Yes ☐ No
-
Did the menu display correctly? ☐ Yes ☐ No
-
Did the program allow the user to enter expenses? ☐ Yes ☐ No
-
Did the program validate input correctly? ☐ Yes ☐ No
-
Did the program use an array? ☐ Yes ☐ No
-
Did the program use functions? ☐ Yes ☐ No
-
Did the program calculate total, average, highest, and lowest correctly? ☐ Yes ☐ No
-
Did the program save results to a file? ☐ Yes ☐ No
-
Was the code easy to read? ☐ Yes ☐ No
-
Were comments included and helpful? ☐ Yes ☐ No
-
Reviewer Feedback
-
One thing the program does well:
-
One thing that could be improved:
-
Reviewer Signature: ___________________________