I am parent trying to help my son in C++. I would lovehelp with the solution to
ID: 3615191 • Letter: I
Question
I am parent trying to help my son in C++. I would lovehelp with the solution to Chap 8 PE 2 so I could try to helphim. This solution has to do with a cell phone company example fromchapter 4 (ex 14). so that all of the name constants are defined in anamespace. Thanks Mike I am parent trying to help my son in C++. I would lovehelp with the solution to Chap 8 PE 2 so I could try to helphim. This solution has to do with a cell phone company example fromchapter 4 (ex 14). so that all of the name constants are defined in anamespace. Thanks MikeExplanation / Answer
please rate - thanks # include using namespace std; namespace constants {int rbase=10; int pbase=25; int rmax=50; int nmax=100; double drate=.2; double nrate=.05; } void getInput(int &,char &); void head(); void doCalc(char ch,double &, double &,double &,double&); void print(int,char,double,double,double,double); int main () { char ch; int acctNum; double minutesUsed, amountDue, dayMinutes, nightMinutes; head(); getInput(acctNum,ch); doCalc(ch,dayMinutes,nightMinutes,amountDue,minutesUsed); print(acctNum,ch,minutesUsed,dayMinutes,nightMinutes,amountDue); system ("PAUSE"); return 0; } void print(int acctNum,char ch,double minutesUsed,doubledayMinutes,double nightMinutes,double amountDue) {coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.