Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This program covers the use of repetition .At the top of your source code, you need 5 lines of comments 1. // your name (Enter

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).


Step by Step Solution

3.34 Rating (160 Votes )

There are 3 Steps involved in it

Step: 1

Your name Enter your name CISP 1010Section Number Programming Assignment 3 Date Enter the date Descr... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions