Question: 1 . Write a C + + program that does the following: a . Create a C + + file with the name problem 4

1. Write a C++ program that does the following:
a. Create a C++ file with the name problem4.cpp.
b. Prompt the user to enter the price of his/her items.
c. The user can enter as many items as he/she wants until the user enters the integer 0.
d. Print out the total of his/her checkout.
e. If the sum is greater than $100, print out That's expensive!
Sample run of the program:
Enter the price of an item (enter 0 to stop): 27
Enter the price of an item (enter 0 to stop): 80
Enter the price of an item (enter 0 to stop): 0
Your checkout total is $107.That's expensive!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!