


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



Due Date: Friday, September 24 at start of class. The Problem: Your task in this assignment is to write an interactive program that prints out a table showing customer purchases from the Corner CD Collection. The table will list the customer number, customer name, number of items purchased, subtotal, tax, and total purchase amount. There are also grand totals at the bottom of the table. Specifics:
Sample Program Run (user input in bold): Welcome to the Corner CD Collection. Please enter the customer’s first name: Marcia Please enter the customer’s last name: Brady Please enter the number of CD’s purchased: 4 Please enter the customer’s first name: Clark Please enter the customer’s last name: Kent Please enter the number of CD’s purchased: 3 Please enter the customer’s first name: Douglas Please enter the customer’s last name: Adams Please enter the number of CD’s purchased: 1 CORNER CD COLLECTION SALES REPORT Cust Num Name Num Items Subtotal Tax Total
MB304 MARCIA BRADY 4 $59.80 $4.49 $64. CK4120 CLARK KENT 3 $44.85 $3.36 $48. DA1432 DOUGLAS ADAMS 1 $14.95 $1.12 $16. Total sales: $119. Total taxes: $8. Grand total: $128.
A perfect program will: Run correctly, meeting all specifications from the assignment Be correctly formatted with clear indentation Be well commented, following the coding guidelines for this class Be submitted correctly, both electronically and on paper (in a pocket folder, with grade sheet and all required materials, etc.) An ‘A’ program: Will run correctly, meeting all specifications from the assignment Will follow good programming practices (for example, using constants) May have no more than two minor errors in commenting, format, and/or submission A ‘B’ program: Will run correctly on the example data Will follow good programming practices May have minor errors in execution on alternate data or more than 2 minor errors in commenting, format, and/or submission or a single major error A ‘C’ program: Will compile and run May have multiple minor errors or errors in multiple areas or up to 2 major errors A ‘D’ program Will compile and run Has serious errors in execution An ‘F’ program Does not compile or does not run or substantially fails to follow the assignment guidelines or has a number of errors of different kinds