Computers and Technology

Submit your modified spaceneedle, stairs, or book code on hypergrade. we are looking for two things: 1. elimination of the class constant for size, to be replaced with user input for size using a scanner object called console. 2. the restructuring of your code to use method calls with parameters. for example, you might use a method like we discussed in class to produce a specified number of characters: p. s.v. writechars(char ch, int number){ for (int i = 1; i < = number; i++){ system. out. print(ch); { { to produce 10 underscores, the method call would then be writechars ('_', 10); there are no test cases - we just want to look at your code. as with any program, be sure to comment liberally! caution - for some reason, hypergrade objects to the use of more than one scanner object. safe practice, therefore, is to handle all your user inputs using one scanner object, by convention called console, in either your main method or in a separate method designated for user input. the user input(s) can then be passed to other methods as a parameter(s).

answer
Answers: 2

Similar questions

Do you know the correct answer?
Submit your modified spaceneedle, stairs, or book code on hypergrade. we are looking for two things:...

Questions in other subjects:

Konu
Chemistry, 26.09.2021 05:00
Konu
Biology, 26.09.2021 05:00