reset password
Author Message
David
Posts: 8
Posted 19:12 Feb 18, 2018 |

For the fourth problem do we need to use an exit code? Do we have to use the switch statements for the homework? 

Last edited by David at 14:12 Feb 19, 2018.
aetame
Posts: 4
Posted 16:42 Feb 19, 2018 |

You will need to create a condition that tests whether or not the integer the user entered was eight digits; if they did not enter an eight digit number your program should display an error message and you will need an exit statement with a "1" in the parenthesis to signify that there was an error.

I do not believe that we have to use switch statements in the homework but I recommend doing all the homework problems with if/else statements and then going back and changing them to switch statements to help grasp the concept of switch statements. 

Good luck :)