User Profile
Collapse
-
and maybe sprinkle some if else statements in there to show an error message if user enters a wrong amount of days? -
-
No error, no bad output, after the user enters a number it just sits there....Leave a comment:
-
Yes sir, I tried using this as the while loop and it compiles but it wont execute
while( loopCounter <= days && loopCounter <= maxDays) { }
I cant figure out what I am missing here....Leave a comment:
-
Could you explain the parameters of the while loop, Im not understanding how you run up to the users input to a maximum of 40?...Leave a comment:
-
Stuck on While Loop
I am working on a class assignment called Pennies for Pay
the object of the program is to receive input for number of days worked.
This should be > 0 and <= 40.
An example output is below and you will notice, the pay doubles each day.
Pay: $.01 on day 1. Total Salary $.01
Pay: $.02 on day 2. Total Salary $.03
Pay: $.04 on day 3. Total Salary $.07
Pay: $.08 on day 4. Total Salary...
No activity results to display
Show More
Leave a comment: