Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Usng C, create a cosole application that allows fo the calculation of the total anount due for purchases This application should allow any number of

image text in transcribed

Usng C, create a cosole application that allows fo the calculation of the total anount due for purchases This application should allow any number of iters to be entered, and hould then determine the total due inchading sales tax and shipping The fllwng rales are used to detenmine the amount due There is a global sales tax of 10.0%. Shipping charges are determined based on the number ofitems order. less than 3 S3.50 betwern3 and -S5.00 between 7 and 10-57.00 berween Il and I5-59.00 more than 15 - 510.00 The program should display a welcome message, and ask the user to press 'ente to begin. They can then enter the cost of any number of items. They will be asked to enter the mount, then asked if they want to contine entering more items by entering Y" or y' to contime, or N or'n' to stop Remember that you must ase Console.Readline) here, not Console. ReadKey() If the user enters a non-numeric input for the price of an item, they should be pacaupted to re-enter. IE the user enters a negative input for the price of an iten, they should be prompted to re enter An item price of $0 is akay The program should continue to ask for input until 'N or 'n is entered to stop. Once the program has stopped, it should display a sales receipt with the total purchases, the sales tax, the number of items purchased, the shipping charge, and then the grand total. For example, ts would be the receipt fo 3 itens of cost SS, $10, and S20 Ssles Receipt 38.88 Sales Tax: $3.93 Nunber of Ites Purrchased: Shipping charge: 5.88 Grand Total: 46.8 It will allow you to onter any numher of purchaso anounts, and thon display a recoipt ress enter when you are ready to begin at is the anount of the item?18 o you want to enter more purchases? Y or N Y at is the anount of the item?2.5 o you want to enter more purchases? - Y or NY at is the anount of the item?16 o you want to enter more purchases? - Y or Ny at is the anount of the iten?9 o you want to enter more purchases? Y or N n Sales Receipt Total Purchases: $3.75 $5.90 $4b. 2s ales Tax umher of Itons Purchasod: ipping charge rand Tatal Hit Enter to exit is application computes the total due for your purchases t will allow you to enter any number of purchase anounts, and then display a receipt ress enter when you are ready to begin at is the amount of the item? e o you want to enter more purchases? Y or N y at is the anount of the item? -10 nvalid data entered- Please re-enter the anount of the iten-n nvalid data enteredPloas ro-pntor the anount of tho itonh ivalid deta entered Please re-enter the enount of the iten - S.0 o you want to enter more purchases? Y or Ny at is the anount of the item-0 o you want to enter more purchases? - Y or N salos Recoipt otal Purchases: ales Tax umber of Itens Purchased: hipping charge: $15.00 $1.50 $5.00 $21.50 rand Total: Hit Enter to exit

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

More Books

Students also viewed these Databases questions

Question

List the six principles associated with bond-pricing relationships.

Answered: 1 week ago

Question

Q.1. Taxonomic classification of peafowl, Tiger and cow ?

Answered: 1 week ago

Question

Q .1. Different ways of testing the present adulterants ?

Answered: 1 week ago

Question

Q.1. Health issues caused by adulteration data ?

Answered: 1 week ago