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
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
Get step-by-step solutions from verified subject matter experts
