The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 5 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Question 1:Write the header and signature for the following function. Also write the two forms of its prototype.
Â
double Print_Message(double balance, double limit)
{
     if (limit > 0)
     {
           cout<<"Your Balance is $"<<balance<<endl;
           cout<<"Your have money. Proceed with your transaction\n";
     }
     else
     {
           cout<<"Your Balance is $"<<balance<<endl;
           cout<<"Your transaction has been cancelled\n";
     }
Â
     return balance
}
int main()
{
     double balance = 99.99, limit = 2000.22;
Â
     cout<<"Balacne and Limt have the following values before Print_Message is called"<<endl;
     cout<<"balance= "<<balance<<" and limit = "<<limt<<endl;
     Print_Message(balance, limit);
     cout<<"a and b have the following values after swap is called"<<endl;
     cout<<"Balance = "<<balance<<" and Limit = "<<limit<<endl;
     return 0;
----------- He-----------llo----------- Si-----------r/M-----------ada-----------m -----------Â ----------- Â ----------- Â----------- -----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------acq-----------uis-----------iti-----------on -----------of -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------. P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e