This program takes user input and then uses a loop to print the first three characters of the input. If there are less than three characters it outputs nothing. My Code Model Code Comments Although achieving the same result I quite like a few things about the model code that I don’t have in mine. […]
This program takes user input of a String then calls a method to determine the last character of the String and outputs the result. My Code Model Code Comments Again, the only difference between my code and the model code is the placement of the method.
This program take the user input of a name and then calls a method that returns the first letter of that name to be displayed. My Code Model Code Comments Although my code and the model code are the same, the model code has the method before the main program whereas mine has it afterwards. […]
This program takes a string input and then calls a method to calculate the string length and return it for display. My Code Model Code Comments Both my code and the model code are exactly the same.
This program involves two methods, sum and average. Sum returns the sum of the four numbers and average calculates the average using that sum. My Code Model Code Comments I like my one better than the model code on this one. Maybe not quite as clear but better.