Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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 Mike

Explanation / 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) {cout