Question # 1: showChar Method
Write a method named showChar. The method should accept two arguments: a reference to
a String object and an integer. The integer argument is a character position within the
String, with the first character being at position 0. When the method executes, it should
display the character at that character position. Here is an example of a call to the method:
showChar(“New York”, 2);
In this call, the method will display the character w because it is in position 2. Demonstrate
the method in a complete program.
Question # 2: Test Average and Grade
Write a program that asks the user to enter five test scores. The program should display
a letter grade for each score and the average test score. Write the following methods in
the program:
calcAverage—This method should accept five test scores as arguments and return the
average of the scores.
determineGrade—This method should accept a test score as an argument and return a
letter grade for the score, based on the following grading scale:
Score Letter Grade
90–100 A
80–89 B
70–79 C
60–69 D
Below 60 F
Submit your java code (.java files) – You can either zip them all up or submit them individually
Take a screenshot of the file’s code and output, put it in a Word document with your name on it
Place this order or similar order and get an amazing discount. USE Discount code “GET20” for 20% discount