Question: 1 Computing III Lab 1 Write a program in C++ to print a bill as follows Bill Number. Bill date Potato Union Tomato Sub-Total: $33.77

1 1 Computing III Lab 1 Write a program in C++ to

Computing III Lab 1 Write a program in C++ to print a bill as follows Bill Number. Bill date Potato Union Tomato Sub-Total: $33.77 Tax (@10%) $ 3.38 Total Cash: No Debit card: No Credit card number: XXXXXXXX1234 $ 12.20 S 6.55 $ 15.22 $37.00 The program can print multiple bills with bill number beginning from I (auto-incrementing by I). Bill date is system date. The program inputs name of 3 items and their S value. All values have 2 decimal places. Then, using a function, it calculates sub-total, taxes @10% and total. The total is rounded to nearest S, using a function. Using another function, it prints the last 4 digits of the debit /credit card (masking the last 4 digits out of 12 digits) Marking rubric (10 marks): There is no mark if the program does not compile. Commenting and style: 2 Bill number auto-increment and bill date: 1 o decimal places: 2 Iw Function for subtotal, tax and total:1 Function for rounding: 2 Function for credit card number masking: 2 Bonus marks Flexible number of items: 1 Flexible format of credit card number (accepts another credit card with 16 digits): 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!