Monday, July 27, 2009

And example of how to writing a c ++ program for a cellular phone billing company?

Um, you should be specific about how you want the program made. I won't do your homework for you, but I will give you some code which may help you design a program yourself.





#include %26lt;iostream.h%26gt;





unsigned int foo;


unsigned int balance;





int main(void)


{


cout %26lt;%26lt; " This is your phone company.\n You bastard! You owe us $5000!\n Pay up NOW!\n Okay, we'll give you a break. You can pay up part of the amount owed for this month\n Enter the number of dollars below\n";


cin %26gt;%26gt; foo;


foo=balance-foo;


if (foo %26lt; balance)


{


cout %26lt;%26lt; "Balance now is:\n"%26lt;%26lt; foo%26lt;%26lt; "\n";


return 0;


}


cout %26lt;%26lt; "Sucker! We robbed you silly!\n";


return 0;


}

And example of how to writing a c ++ program for a cellular phone billing company?
If I knew that I would be working for a cellular phone company.
Reply:we can't be doing your homework for you...

chelsea flower show

No comments:

Post a Comment