-
Notifications
You must be signed in to change notification settings - Fork 2
/
MobilePlan.cpp
78 lines (68 loc) · 1.62 KB
/
MobilePlan.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#include <iostream>
#include<string>
#include <iomanip>
using namespace std;
int main()
{
/*
* Declare Plan A Variables
* Example:
float planACost = 2999;
float planAMins = ;
float planAData = ;
float planAaddMinsCost = ;
float planAaddDataCost = ;
*/
/*
* Declare Plan B Variables
* Example:
float planBCost = ;
float planBMins = ;
float planBData = ;
float planBaddMinsCost = ;
float planBaddDataCost = ;
*/
/*
* Declare variables for Plan C
*/
/*
* Declare variables for
* Customer Name
* Minutes used
* Data used
* the Plan type
*/
/*
* Write cout, cin and getline() statements to receive all the input:
* cout << "enter name " << endl;
* cout << "Enter plan (A,B,C)" << endl;
* cout << "Enter minutes used " << endl;
* cout << "Enter data used (in Gb) " << endl;
*/
/*
* Workout Plan A Cost.
* Pseudocode:
* ExtraMinutes = MinutesUsed - TotalPlanAMinutes.
* If
there are ExtraMinutes
* then
the cost of ExtraMinutes multiplied with the ExtraMinutes is added to The TotalPlanACost
* ExtraData = DataUsed - TotalPlanAData
* If
* there is ExtraData
* then
* the cost of ExtraData multiplied with the ExtraData is added to The TotalPlanACost
*/
/*
* Workout Plan B Cost.
*/
/*
* Print the Bill by displaying the Plan and the Total Cost.
* FOR CODEGRADE Submission, you must be able to complete the following:
Display how much money package A customers would save if they purchased package B or C,
and how much money package B customers would save if they purchased package C
*
* This should be Easy, because you have already calculated the cost for all the Plans.
*/
return 0;
}