1. Engineering
  2. Computer Science
  3. i need help with this assignment please its on c...

Question: i need help with this assignment please its on c...

Question details

I need help with this assignment please! It's on C#:

For this project you will create a console application which performs a calculation based on a customer’s order. The user (cashier) will use your application to calculate the total cost of a customer’s meal. The menu for this project is as follows:

Menu Item Price
Fruit Salad $9.95
Pasta Salad $12.00
Smoothie $4.95
Fruit Juice $3.95
Cupcake $3.00
Shortcake $6.00

Requirements:

  1. Display the list of items on the menu with their respective prices
  2. The application should be able to take the customer’s order
  3. The application should then calculate and display the total cost of the order

Instructions:

  1. Use the following data types:
    1. Use a string data type
      1. Store each item’s name
    2. Use the integer data type
      1. Store the number of items ordered
    3. Use double data type
      1. Store the item price
      2. Store the subtotal, tax, and total cost of the order
    4. Use const for variables that do not change (name, price, and tax rate)
  2. Cost calculation
    1. Use a 9.5% tax rate
    2. Calculate the subtotal (pre-tax), tax, and total cost (with tax)
  3. Use currency formatting for the prices, subtotal, tax, and total cost
    1. Convert.ToInt32 allows you to convert a string to an integer
  4. Use comments to organize your code


See the attached file for a working example of the completed program.

매 file:///W/flsohnou/Courses/Fall 2018/ISYS3393/Class Projects/ConsoleApplication alcuulator/ConsoleApplication Calcuulator/bin/Debug/ConsoleAp. MENU Fruits Salad $9.95 Pasta Salad $12.06e Smoothie $4.95 Fruit Juice $3.95 up Cake $3.00 short cake $6.00 zxixxi ENTER YOUR ORDER many Fruits Salad $9.95? How many Pasta Salad - $12.e0? How many Smoothie $4.95? How many Fruit Juice -$3.95? How many Cup Cake $3.00? How many short cake $6.00 ? zxixxi SubTotal Costs $20.90 Tax $1.99 Total Costs $22.89

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution