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, 23.06.2019 23:30
A. in packet tracer, only the server-pt device can act as a server. desktop or laptop pcs cannot act as a server. based on your studies so far, explain the client-server model.
Answers: 2
question
Computers and Technology, 24.06.2019 07:30
John recently worked on a project about various programming languages. he learned that though procedural language programs are useful, they have disadvantages too. what is a disadvantage of programs written in procedural languages? a. programs do not represent data complexity. b. programs take more time to execute. c. programs are prone to security threats. d. programs do not interface with multiple platforms.
Answers: 3
question
Computers and Technology, 24.06.2019 16:00
5.a fishing rod is formed from a composite material of 0.5 kg of glass fibers embedded in a matrix of 0.5 kg of epoxy resin. the glass fibers are assumed to be long, continuous and unidirectional. to achieve a greater stiffness it is proposed to use a different composite that is comprised of long continuous carbon fibers that will be embedded in a matrix of 0.5 kg of epoxy resin. if the modulus of elasticity of the carbon fiber composite is 10% greater than the elastic modulus of the glass fiber composite, estimate the mass of carbon fibers that will be used to make the carbon fiber composite. assume the applied tensile stress is parallel to the direction of the long axis of the fibers. the epoxy resin, glass fiber, and carbon fiber have an elastic modulus of 5, 86, and 350 gpa respectively and a density of 1100, 2500, and 1800 respectively.
Answers: 3
question
Computers and Technology, 24.06.2019 23:30
Adrian has decided to subscribe for a new internet connection. he wants a high speed connection so that he can stream video content smoothly. which access technology would you advise adrian against using?
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
Social Studies, 13.10.2019 10:30
question
History, 13.10.2019 10:30
question
Social Studies, 13.10.2019 10:30
Questions on the website: 13722361