Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

c++ help:

Status
Not open for further replies.

rsisal

Programmer
Jul 19, 2000
3
0
0
US
I can't get this program to execute correctly. Please help<br><br><br>//Description:&nbsp;&nbsp;This program will use an if, switch and value returning<br>//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function to calculate and print a salesperson name and bonus amount.<br><br>#include&lt;iostream.h&gt;<br><br>int scoreBonus(int Bonus);&nbsp;&nbsp;//function's prototype<br>int numberswitch(int Sales, int Bonus);&nbsp;&nbsp;//function's prototype<br><br>int main()<br>{<br>&nbsp;int Sales;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//local to this block only<br>&nbsp;int Bonus;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//local to this block only<br>&nbsp;char Name[15];<br>&nbsp;cout&lt;&lt;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top