Question: I do not know where this coding is error # include int main( ) { // variable declarations char ans; int type, hour; float pay,

I do not know where this coding is error

# include int main( ) { // variable declarations char ans; int type, hour; float pay, total_income;

// beginning of loop do { cout << "Indah Parking Lot "<> type; cout <<" please key-in number of hour"; cin>>hour;

// calculation section if (type == 1) pay = 3+ hour*1.0; else if (type == 2) pay = 4+ hour*1.5; else if (type ==3) pay = 5+ hour*2.0; cout <<"Please key-in y to continue and n to stop"; } while (ans =='y');

// Printing of Receipt cout << "Indah Parking Lot"<

//calculation of total income total_income = total_income +pay; cout <<"Total income for today RM :"<

return 0; }// end program

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!