Question: #include using namespace std; int main () { double price=0, total=0, sum=0; cout while (price != -99) { cout > price; cout > price; }

 #include using namespace std; int main () { double price=0, total=0,

#include

using namespace std;

int main () { double price=0, total=0, sum=0;

cout

while (price != -99) { cout > price; cout > price; }

sum += price; total = 99-sum;

cout

return 0; }

break; - (4 marks) final cliff between sentinel y louter centolled loop Using a sentinel-controlled while loop, ask the user to input the price for items, calculate the total of prices and display the output as follows. **Enter -99 to exit program** Enter first item's price : RM 22.50 Enter next item's price : RM 25.50 Enter next item's price : RM 21.20 Enter next item's price : RM --99 The total price is RM 69.2 (5 marks) RM " lak Cipta Universiti Teknologi MARA CONFIDENTIAL cout

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!