Thread: Assignment 5
View Single Post
Assignment 5
Old
Mauricio
Member
 
Status: Offline
Posts: 14
Join Date: Aug 2016
Default Assignment 5 - 10-04-2016, 12:03 PM

Even though assignment five is about decision making, it actually helped to clarify more about variables, what they are and how to store them. I understand what a variable is but I was still somewhat confused about how it got its value after you set up the variable, although in this case the variable seem more like a constant because the exact number you had to enter in order for the bouncer to let you in was twenty-one, but I get it now, you create the variable and the value is assigned to that variable when the user enters a number. Making decisions with the If/Else statements will help to cut down on the amount of code that would be required otherwise. This will also be of helpful if you have to make changes to a program by making it easier to read through the code and be able to find any issues faster.
   
Reply With Quote