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
// beginning of loop do { cout << "Indah Parking Lot "<
// 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
Get step-by-step solutions from verified subject matter experts
