hey, I just started taking c++ and did the first couple projects ok but this one has me stumped. a large company pays salespeople on a commission basis. The salespeople each receive 200$ per week plus 9% of their gross sales for that week.
Make a program that uses a while statement to input each salespersons gross sale for the last week and calculates and displays that sales persons earnings process one salespersons figures at a time.
Sorry so long any help would be awesome. Thank you
I suggest using do-while loop. In loop you should write 'Please type the gross sale in last week (for exit type negative number)' then read a numbert to float type variable because you can multiple with 1.09 (9 percent) if the typed number isn't negative.
The exiting conditional of while loop is the typed number is't negative.