Requirements: Write a C++ routine that determines how many minutes of calling ti
ID: 3621466 • Letter: R
Question
Requirements:
Write a C++ routine that determines how many minutes of calling time a customer may use this month without exceeding his/her "quota" of minutes' with appropriate user prompts, calculations, displays to monitor, comments, etc.
The program will read information from an input file named Sell_U_R.dat and will create an output file named Inam_customer.out
Use If structure, Selection Structure, and repetition structure.
Specifications:
* Customers who used in excess of 2,000 minutes during the previous month receive "bonus minutes" this month equivalent to 15% of their total call- time minutes (from the previous month).
* Customers who used between 1,500 and 2,000 minutes (inclusive) during the previous month receive "bonus minutes" this month equivalent to 12% of their total call- time minutes (from the previous month).
* Customers who used more than 500 but less than 1,500 minutes during the previous month receive "bonus minutes" this month equivalent to 10% of their total call- time minutes (from the minutes month).
* Customer who did not use at least 500 "call- time" minutes during the previous month do not qualify for bonus minutes.
* If someone used exactly 500 minutes, the Quota will get double of the Base Plan.
Results:
Based on your calculations from above, how many "quota" minutes will each of the following Southern Sell_U_R customers have for this month?
These are the output:
Customers Base Plan # of Minutes used/Previous Month Quota
C. Moore 1000 1250
Dot Net 2000 2075
Amber Reys 500 758
Knot Wright 500 371
Explanation / Answer
please rate - thanks
your question is very unclear so hopefully this will at least get you started.
if you message me the information needed, I'll fix it tomorrow
Requirements:
Write a C++ routine that determines how many minutes of calling time a customer may use this month without exceeding his/her "quota" of minutes' with appropriate user prompts, calculations, displays to monitor, comments, etc. but input is from a file, output to a file, so no prompts or outpus to the monitor
The program will read information from an input file named Sell_U_R.dat and will create an output file named Inam_customer.out
Use If structure, Selection Structure, and repetition structure.
Specifications:
* Customers who used in excess of 2,000 minutes during the previous month receive "bonus minutes" this month equivalent to 15% of their total call- time minutes (from the previous month).
* Customers who used between 1,500 and 2,000 minutes (inclusive) during the previous month receive "bonus minutes" this month equivalent to 12% of their total call- time minutes (from the previous month).
* Customers who used more than 500 but less than 1,500 minutes during the previous month receive "bonus minutes" this month equivalent to 10% of their total call- time minutes (from the minutes month).
you mention more then 500 and did not use at least 500, where does 500 exactly belong 10% bonus or no bonus
* Customer who did not use at least 500 "call- time" minutes during the previous month do not qualify for bonus minutes.
Results:
Based on your calculations from above, how many "quota" minutes will each of the following Southern Sell_U_R customers have for this month?
if this is input what does it represent. the first line has 3 numbers, the others have 2 numbers and your question only mention previous months data
what gets output? and what is input? I think that covers everything
Customers Base Plan Number of Minutes Quota
Used/Previous Month
C. Moore 1000 1250 1125
Dot Net 2000 2075
Amber Reys 500 758
Knot Wright 500 371
#include <iostream>
#include <fstream>
using namespace std;
int main()
{double previous,bonus,quota;
ifstream in;
ofstream out;
string first,last;
in.open("Sell_U_R.dat");
if(in.fail())
{ cout<<"input file did not open please check it ";
system("pause");
return 1;
}
out.open("Inam_customer.out");
out<<"first last bonus ";
in>>first;
while(in)
{in>>last;
in>>previous;
if(previous>2000)
bonus=previous*.15;
else if(previous>=1500)
bonus=previous*12;
else if(previous>=500)
bonus=previous*.1;
else
bonus=0;
out<<last<<" "<<first<<" "<<bonus<<endl;
in>>first;
}
out.close();
in.close();
system("pause");
return 0;
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.