Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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 Chef's 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 2 using namespace std; 3 Bint main ) t int option; cout > option; //is an equivalence test. if (option =- |){cout age: age age + 10 cout

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

Data And Information Quality Dimensions, Principles And Techniques

Authors: Carlo Batini, Monica Scannapieco

1st Edition

3319241060, 9783319241067

More Books

Students also viewed these Databases questions

Question

2. Show the trainees how to do it without saying anything.

Answered: 1 week ago