This program covers the use of repetition .At the top of your source code, you need 5
Question:
This program covers the use of repetition .At the top of your source code, you need 5 lines of comments 1. // your name (Enter your name) 2. //CISP 1010-Section Number 3. //Programming Assignment 3 4. //Date (Enter the date) 5. //Your description of the purpose of the program. This should be a few sentences. This program will first print a menu with two choices: 1. Enter another item. 2. Quit. If they choice option 1, the program will prompt the user to enter the price for an item. Then the program will verify that the amount if greater than 0 (input validation). • If the amount entered is not valid (less than or equal to 0, the use will be prompted to enter another number (this process will repeat as many times as it needs until the user enters a valid amount. • If the amount is valid, then it will return to the menu. If they chose option 2, then the program will output 3 lines • The number of items purchased • The total of the purchase • The average amount per item. Then it will quit (end). Requirements: • For full credit, you must use two different types of loops in this program. (Hint: You do NOT know how many times the loops will iterate, so count-controlled is probably not the best choice). • To receive full credit for the menu selection, you must use a SWITCH statement. • For 5 bonus points, o Add an additional line at the end that calculates the taxes. This will be the last line printed. o If the have 10 or more items, they will be taxed at 9% o If they have less than 10, they will be taxed at 9.5% o I did not provide the example output for this, so you will have to calculate you own output to check for logic errors. • Program can not contain any syntax errors, or it will receive a 0. • Variables MUST have descriptive names and be readable (camelCase or underscores). • Folder name should be Last_First_ProgrammingAssignment3 • Make sure you zip the ENTIRE folder. • This program should contain commenting. • Make sure that you use the same wording as the example runs and spacing. • Assume that the amount entered can have a decimal. • All output should be formatted like money (2 decimal places).
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill