Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using c# in visual studio NO GLOBAL VARIABLES. Your task is to create a console application that allows for the calculation of the total amount

Using c# in visual studio NO GLOBAL VARIABLES.

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

Your task is to create a console application that allows for the calculation of the total amount due for purchases. This application should allow any number of items to be entered, and should then determine the total due including sales tax and shipping. The following rules are used to determine the amount due There is a global sales tax of 10.0%. Shipping charges are deternined based on the number ofitems order less than 3 $3.50 between 3 and 6- S5.00 between 7 and 10- S7.00 between 11 and 15 - S9.00 more than 15-S10.00 he program should display a welcome message, and ask the user to press 'enter to begin. They can then enter the cost of any number of items. They will be asked to enter the amount then asked if thev want to continue entering more items by entering or ,' to continue, or or , to sto vou must accept both the lower case and upper-case ). Remember that you must use Console.ReadLine() here, not Console.ReadKey() If the user enters a non-numeric input for the price of an item, they should be prompted to re-enter If the user enters a negative input for the price of an item, they should be prompted to re-enter .An item price of S0 is okay he 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, this would be the receipt for 3 items of cost $8, $10, and $20 Sales Receipt Total Purchases: $38.00 Sales Tax: $3.80 Number of Items Purchased: Shipping charge: $5.00

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions

Question

an hard disk of the database server

Answered: 1 week ago