Generation

generate functionFri, 10 Feb 2023

*******REXY PARKING RATE******* First 2 Hours: RM 5.00 Office Hour Rate (8 am – 5 pm): RM 4 per hour After Office Hour Rate (6 pm – 8 am): RM 7 per hour Saturday, Sunday, Public Holiday: RM 5 per hour (Flat Rate) 30% Discount (10 pm to 2 am) - ELIGIBLE FOR CAR THAT PARK MORE THAN 3 HOURS / FOR 5 HOURS AND MORE (SATURDAY, SUNDAY, AND PUBLIC HOLIDAY NOT APPLICABLE) PLUS 30% DISCOUNT WHEN CUSTOMER PARK FOR 5 DAYS AND MORE (ELIGIBLE FROM MONDAY TO SUNDAY)

#include <iostream> #include <stdio.h> #include <math.h> using namespace std; int main() { int day,hour,min; float total = 0; char type; cout<<"enter the day (1-7) : "; cin>>day; while(day<1 || day>7) { cout<<"INVALID DAY! please enter the correct day (1-7) : "; cin>>day; } cout<<"enter the hour : "; cin>>hour; while(hour<0 || hour>24) { cout<<"INVALID HOUR! please enter the correct hour (1-24) : "; cin>>hour; } cout<<"enter the minutes : "; cin>>min; while(min<0 || min>60) { cout<<"INVALID MINUTE! please enter the correct minutes (0-60

Want to kickstart your project?Use the new AI Studio to create your code