subject
Computers and Technology, 05.02.2021 21:20 mem8163

Given a HashMap pre-filled with student names as keys and grades as values, complete main() by reading in the name of a student, outputting their original grade, and then reading in and outputting their new grade. Ex: If the input is:Quincy Wraight73.1the output is:Quincy Wraight's original grade: 65.4Quincy Wraight's new grade: 73.1GIVEN TEMPLATES StudentGrades. javaimport java. util. Scanner;import java. util. HashMap;public class StudentGrades {public static void main (String[] args) {Scanner scnr = new Scanner(System. in);String studentName;double studentGrade; HashMap studentGrades = new HashMap(); // Students's grades (pre-entered)studentGrades. put("Harry Rawlins", 84.3);studentGrades. put("Stephanie Kong", 91.0);studentGrades. put("Shailen Tennyson", 78.6);studentGrades. put("Quincy Wraight", 65.4);studentGrades. put("Janine Antinori", 98.2); // TODO: Read in new grade for a student, output initial// grade, replace with new grade in HashMap,// output new grade }}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 16:00
Speed is how fast an object moves a certain distance within a length of time. how is speed calculated? a) distance/time b) time/distance c) velocity/time d) distance x time
Answers: 1
question
Computers and Technology, 22.06.2019 22:00
What is a distinguishing feature of today’s graphic application software?) graphic applications are used today on a variety of devices, including touch-screen kiosks and mobile phones.
Answers: 3
question
Computers and Technology, 23.06.2019 00:00
Which is the correct sequence of steps to set up a document in landscape orientation? a. select page setup from the file menu. then click the margins tab and select landscape. b. select page setup from the edit menu. then click the margins tab and select landscape. c. select page setup from the insert menu. then click the margins tab and select landscape. d. select page setup from the format menu. then click the margins tab and select landscape
Answers: 1
question
Computers and Technology, 23.06.2019 19:00
Write a program that displays the following menu: geometry calculator 1. calculate the area of a circle 2. calculate the area of a rectangle 3. calculate the area of a triangle 4. quit enter your choice (1-4): if the user enters 1, the program should ask for the radius of the circle and then display its area. use the following formula: area = ď€(the square of r) use 3.14159 for ď€ and the radius of the circle for r. if the user enters 2, the program should ask for the length and width of the rectangle and then display the rectangle’s area. use the following formula: area = length * width if the user enters 3, the program should ask for the length of the triangle’s base and its height, and then display its area. use the following formula: area = base * height * .5 if the user enters 4, the program should end. input validation: display an error message if the user enters a number outside the range of 1 through 4 when selecting an item from the menu. do not accept negative values for the circle’s radius, the rectangle’s length or width, or the triangle’s base or height. note: if the user enters an improper menu choice (1-4), the program prints "the valid choices are 1 through 4. run the program again and select one of those." if the user enters a negative radius, the program prints "the radius can not be less than zero." if the user enters a negative value for height or base, the program prints "only enter positive values for base and height."
Answers: 1
You know the right answer?
Given a HashMap pre-filled with student names as keys and grades as values, complete main() by readi...
Questions
question
Mathematics, 22.08.2019 00:00
question
Social Studies, 22.08.2019 00:00
question
Computers and Technology, 22.08.2019 00:00
question
Mathematics, 22.08.2019 00:00
Questions on the website: 13722367