Question: c++ COMP209: Introduction to Programming Lab Assessment 2 Questioni: Write a C++ program that prompt the user to enter a grocery item name and the

c++ c++ COMP209: Introduction to Programming Lab Assessment 2 Questioni: Write a C++

COMP209: Introduction to Programming Lab Assessment 2 Questioni: Write a C++ program that prompt the user to enter a grocery item name and the item price. The price of the item increases one riyal per day. Use pre-increment operator to calculate the price of the first 3 days as shown in the sample output Notice: Use output manipulator(setw, setfill, left, right) to show the results as shown in the sample output. Example: Current day price- -22.5SR Tomorrow price----------23.5SR Problem definition: Calculate the price of an item on the first 3 days with the addition of one riyal per day

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 Databases Questions!