Write a program that calculates and prints the bill for a mobile company. The company
offers two types of service: regular and premium.
1. Regular service: SR 10.00 for service, the first 20 minutes are free. Charges for over
20 minutes are SR 0.20 per minute.
2. Premium service: SR 25.00 for service, in addition it calculates the bill based on
For calls made from 6:00 p.m. to 1:00 a.m., the first 60 minutes are free;
charges for over 60 minutes are SR 0.05 per minute. Otherwise, the charges
are SR 0.10 per minute.
In main function, your program should prompt the user to enter a service code (R for regular
or P for premium) and any information needed to calculate the bill.
Write two overloaded functions calculateBill() , that will calculate the bill based on the
service selected . For Regular service it will receive number of minutes the service was used,
for Premium service it will receive number of minutes the service was used and the time it
was used at (entered as integer number). Your program should output the total bill.
اللي يعرف له يساعدني :(