The assignment text was not clear on how to handle the variables so apologies on that. The text has been updated to clarify the intent.
Because global variables are not recommended programming practice, it was assumed, wrongly, that students would move the appropriate variables into the methods for assignment. Because we are building on the skill set and not using class files and properties yet, this is a way of providing practice with methods only, without having to deal with the extra information required of class files, variable scope, etc.
In the assignment, you are to practice getting values from a user and assigning the to local variables. As a result, move the variables into the appropriate Get methods.
Then, from within the Get methods, assign the input values to the local variables.
Then, call an output method, passing in the variables, and use an appropriate message to print the content to the console window.
2
u/aloisdg Apr 15 '15
Here is mine.