Ensure all class and method names are exactly what I ask for. Create a class called AssignmentThree. Use it for all of this assignment. 1) Look at your last assignment’s Mather class. Create a void method in AssignmentThree that does the same math. The method name is printWidthAndHeightCalculations(int width, int height). The method takes 2 integers – int width and int height. The width and height are not set to any values. The method does the same math and has the same sysout statements. In the main method, you can call printWidthAndHeightCalculations(int width, int height) as many times as you want: printWidthAndHeightCalculations(5, 15); printWidthAndHeightCalculations(25, 13); Use it in your main method at least once. 2) Make a value-returning method in AssignmentThree called getInputCharFromUser(). Similar to Assignment 2 Part 3 and Lab 3 part 2: This method prompts the user for a char. It returns a char. The method itself does not output the input char. The main method will do this. (Like the lab). Use it in your main method only once. Like: char inputChar = getInputCharFromUser(); System.out.println(“Character: “ + inputChar); Part 1 – 4 points Part 2 – 6 points
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here