1. Engineering
  2. Computer Science
  3. egne 1204winter 2019 assignment 2 variables cout cin and...

Question: egne 1204winter 2019 assignment 2 variables cout cin and...

Question details





EGNE 1204-Winter 2019 Assignment 2 - Variables, cout, cin and if-statements. DUE: January 31 on or before 11:59pm. Late submission deadline February 1 on or before 11:59pm (20% mark deduction) Write your own C++ program that will ask the user for various meal options. The user will input their choices by entering then ask the user to pay. Upon entering payment, your program should display the change that the user should receive. Below are the item prices in the restaurant: the appropriate option from a displayed menu. The program will keep track of the total bill, and Veggie Fire Alarm Chili-$8.50 Tea -$1.20 etable Soup $3.99 Chefs Salad- $4.99 Nachos with Jalapenos- $7.99 Hot Apple Pie- $4.25 Chicken Parmesan- $8.99 Steak Tartar $10.99 Fish and Chips- $7.45 Ice Cream with Blueberries -$3.99 Coffee-$2.75 CAA Discount-20% Student Discount-25% Tax Rate-15% Bakeapple Cheese Cake-56.00 Water $0.00 2.50 In addition to the code provided in this document, the following tutorials will be helpful in completing your https://www.tutorialspoint.com/cplusplus/cn variable types.htm https://www.tutorialspoint.com/splusplus/cpp basic input output.htm · orialspoint.com/cplusplus/cpp decision making htm The following source code is a small sample of the types of Ct+ statements that you will need to complete your assignment. finclude <iostream> 2 using namespace std; 3 Bint main ) t int option; cout << Please choose an option 1,2,3: cin >> option; //is an equivalence test. if (option =- |){cout << Wow! << endl; } if (option2) (cout << You chose option 2! << endl:) if(option == 3) {cout << Its 2019! << endl;} cout << Please input your age:; float age; cin >age: age age + 10 cout << In 10 years your age will be << age <<. << endl. age (age-10)*0.5; cout << Half your age is <<age <<. return 0:
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution