Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You need to write a java program, create a main method, and implement the following: Create an array of String type named letterGrades to

You need to write a java program, create a main method, and implement the following: Create an array of String type named letterGrades to store 5 course letter grades, each grade is a String type value such as A, A+, A-, B, B+, B-, C, C+, C, D, D+, D-, F. Create a second array of int type named credits to store 5 course credits, each credit is an integer value between 1 and 5. (5 points) Ask the user to enter 5 lines of inputs, each line containing an integer value for course credits and a String for letter grade, and store them in the arrays defined in the previous steps. The user inputs are like the following: 2 B 3 A+ 1 C 4 8+ 3 D (5 points) Create a third array of double type named scale4Grades and initialize it with values mapped from the array letterGrades using the following table: Grade A+ 4.0 Scale 4.0 4.0 A- 3.7 B+

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

More Books

Students also viewed these Programming questions

Question

Determine A in the indicated figures. Fig. 2.40 (a) A 84 (a) 40 B

Answered: 1 week ago