Answer to Question #53214 in C++ for Andrea

Question #53214
Write a program that calculates a customer internet monthly bill. It should ask which package the customer has purchased, what month (in terms of numeric), and how many hours were used. It should display the total amount due.
1
Expert's answer
2015-07-07T03:32:51-0400
include <iostream>
using namespace std;


int main(){
int packagePushased;
cout << "Hi! What package did you pushase?\n";
cin >> packagePushased;
cout << "What month? (1-12)\n";
int month;
cin >> month;
cout << "How many hours were used?";
int hours;
cin >> hours;

cout << hours*packagePushased;

system("pause");
return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS