#include #include using namespace std; int main() { //step 0: declare some variables string package; //stores which plan user is using double hours; double moneyOwed; //We're going to compute this value //step 1.1: Ask user for the plan cout << "Please enter your plan: (basic, gold, or platinum)" << endl; cin >> package; //step 1.2: ask user for their hours cout << "Please enter your hours: " << endl; cin >> hours; //step 2: Figure out the bill (from plan and hours) if (package == "basic") { //compute a basic billing if (hours <= 10) { moneyOwed = 9.95; } else { moneyOwed = 9.95 + 2 * (hours - 10); } } else if (package == "gold") { //compute a gold billing.. } else if (package == "platinum") { //compute a premium billing.. } else { //uh oh, stupid user typed in an invalid plann... cout << "Your phone is now cancelled." << endl; moneyOwed = 999999; } //step 3: Tell user the bill. cout << "You owed " << moneyOwed << " dollars!" << endl; return 0; }