[SOLVED] SOLVED:Bill for a cell phone company

15.99 $

Programming resource
Digital learning resource
Category:
Practical programming resource
Suitable for guided study and reference
Tutor guidance available when needed

Description

5/5 - (1 vote)

Purpose: This program calculates and prints the bill for a cell phone company
Algorithm:
1) Output the menu and let the user to choose Regular or Premium (int)
2) If they choose Regular, let them input the minutes used (int)
3) If they used 200 or less, bill is 20
else, take the extra minutes, multiply by .15, and add to 20 (double)
4) Output the Regular bill (double)
5) If they choose Premium, let them choose when they made the calls (int)
6) Let them input the minutes used (int)
7) If they used 100 or less, bill is 35
else, take the extra minutes, multiply by .10, and add to 35 (double)
8) If they used 300 or less, bill is 35
else, take the extra minutes, multiply by .05, and add to 35 (double)
9) Output the Premium bill (double)

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.