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 dedine February 1-on or before

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 dedine February 1-on or before isom (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 the appropriate option from a displayed menu. The program will keep track of the total bill, and 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: Vegetable Soup- $3.99 Chef's Salad-$4.99 Veggie Fire Alarm Chili- $8.50 Tea-$1.20 Ice Cream with Blueberries $3.99 Coffee-$2.75 Nachos with Jalapenos- $7.99 Hot Apple Pie- $4.25 CAA Discount-20% Chicken Parmesan-$8.99 Steak Tartar $10.99 Fish and Chips $7.45 Bakeapple Cheese Cake-S6.00 Water- $0.00 Pop - $2.50 | Student Discount-25% Senior's Discount-40% Tax Rate-15% In addition to the code provided in this document, the following tutorials will be helpful in completing your assignment. https://www.tutorialspoint com/cplusplus/cpp variable types htm The following source code is a small sample of the types of C++ statements that you will need to complete your assignment. finclude 2 using namespace std; 3 int main ) int option; cout > option; /is an equivalence test. if (option == !){cout age; ageage +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

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

9th Edition

0135188148, 978-0135188149, 9781642087611

More Books

Students also viewed these Databases questions