Make a program to calculate the bills of the users of a telecom company having three different categories gold, silver and copper categories. Gold category users have to pay ( w+x+y+z)* 1000 , silver cateory users have to pay ( w+x+y+z)*500 for first 200 calls and then additional 1 Rs for each additional call. Copper category users have to pay Rs 5 per call.
1
Expert's answer
2011-11-11T08:27:13-0500
#include <iostream>
using namespace std;
int main() { int cat, w, x, y, z, S, nCall, lp;
while (1){ system("cls"); S = 0; cout << "1. Gold\n"; cout << "2. Silver\n"; cout << "3. Copper\n"; cout << "Select the number of category: "; cin >> cat;
if (cat == 3){ & cout << "How many calls did the user: "; & cin >> nCall; & S = nCall*5; & cout << "User have to pay: " << S; } cout << "\nEnter 1 to continue or 2 to exit: "; cin >> lp; if (lp == 2) & break; }
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment