does anyone know how to solve the following questions?
1 - An Internet service provider has three different subscription packages for its customers:
Package A: For $9.95 per month 10 hours of access are provided. Additional hours are $2.00 per hour.
Package B: For $14.95 per month 20 hours of access are provided. Additional hours are $1.00 per hour.
Package C: For $19.95 per month unlimited access is provided.
Write a program that calculates a customer’s monthly bill. It should input customer name, which package the customer has purchased, and how many hours were used. It should then create a bill that includes the input information and the total amount due. The bill should be written to a file.
Input Validation: Be sure the user only selects package A, B, or C. Also, the number of hours used in a month cannot exceed 744.
2- Long-Distance Calls
A long-distance carrier charges the following rates for telephone calls between the United States and Mexico:
Write a program that asks for the starting time and the number of minutes of the call, and displays the charges. The program should ask for the time to be entered as a floating-point number in the form HH.MM. For example, 07:00 hours will be entered as 07.00, and 16:28 hours will be entered as 16.28.
Input Validation: The program should not accept times that are greater than 23:59.
Also, no number whose last two digits are greater than 59 should be accepted.
Hint: Assuming num is a floating-point variable, the following expression will give you its fractional part:
num - static_cast<int> (num)
Someone can help if you get stuck on the assignment. Just post your code here (or in the Beginners section) and let us know where you're having a problem.
On the right side of the post there's a <> button - if you highlight your code and click on that button, that'll format your code for the forum to make it easier for people to read.