Starting from:

$10

Bill for a cell phone company

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)

More products