Question
Write a C# application that reads in a convenience store order and calculates the total cost of the order. Assume the convenience store only sells
Write a C# application that reads in a convenience store order and calculates the total cost of the order. Assume the convenience store only sells two items: beverages at $1.50 each and sandwiches at $3.50 each. Prompt the user for the number of beverages and store their entered number. Prompt the user for the number of sandwiches and store their entered number. The prices should be set in variables and those variables should be used for calculations, not hard-coded numbers. Your output should read: The total of __ beverages and __ sandwiches is $__.__. with all blanks filled in with appropriate values. For instance, for 5 beverages and 3 sandwiches, output should read: The total of 5 beverages and 3 sandwiches is $18
I do NOT need tax calculated.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started