Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C che C Homework 1.pdf b9,blackboard. m'bbcswobdavpid PROG-1003 003/Homework Homework 1 PROG 1003 Shopping Cart 1 Create a new program called Cart.cpp. Following the examples,

image text in transcribed

C che C Homework 1.pdf b9,blackboard. m'bbcswobdavpid PROG-1003 003/Homework Homework 1 PROG 1003 Shopping Cart 1 Create a new program called Cart.cpp. Following the examples, we wrote in class. ables to represent an item in a shoppi cart: an item name, item type, and item price. Item name should be a string, item type should be a char, and ttem price should be a double Allow the user to enter three separat e shopping cart ttems-with each item being a name, type, and pri The thr valid types NX display the types to the We will far food ite ood items and X for special items. You do not need to worry about checki this you can assume the user will enter valid data. Assume a tax rate of Assume the stem name will only be one word Calculate a tax, and total Display to the user a list of the items entered along with type and price. Display the subtotal, tax amount, and total Allow the user to enter the amcunt to pay lassume the amount will be equal to or more thi is due). Display the nge d to the Assume the user willenter valid data. DO NOT worry bout the category this ti just accept the input and display it. few weeks categories to calculate taxes on the different items The point of this exercise is to use some of the arithme operations, and to start thi ng about compound entities like an item in a shopping cart that are represented with multiple values. Also, you might run into problems computing percentages. Consider carefully the a types that you are usi and how the oper with different data types. Required Documentation need to the template p Blackboard. Y ust hav least three test cases wi Screen shots of each test case Submitting your Program You bmit this assignment on blackboard. You are allowed one bmissio You will need to bmit your Cart.cpp file and your di ented test docxy file, RFT, or Excel e 8

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

Expert Performance Indexing In SQL Server

Authors: Jason Strate, Grant Fritchey

2nd Edition

1484211189, 9781484211182

More Books

Students also viewed these Databases questions

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago