You need to write a java program, create a main method, and implement the following: Create...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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+ 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+
Expert Answer:
Posted Date:
Students also viewed these programming questions
-
CANMNMM January of this year. (a) Each item will be held in a record. Describe all the data structures that must refer to these records to implement the required functionality. Describe all the...
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
Determine A in the indicated figures. Fig. 2.40 (a) A 84 (a) 40 B
-
In Exercise 48, you could have checked for a difference in the chances of survival for men and women using two-proportion Z procedures. In Exercise 48 a) Find the z-value for this approach. b) Show...
-
Critically evaluate the judgments made by Grace as the senior by using the KPMG Professional Judgment Framework?
-
Under which of the following conditions would it be inappropriate for a potentially responsible party to capitalize toxic waste cleanup costs? a. The costs relate to a long existing disposal site. b....
-
Journal entries for inventories and accounts payable On December 31, 2006, the Merchandise Inventories account of the Japanese electronics firm Fujitsu Limited (Fujitsu) had a balance of 408,710...
-
Company XYZ is a wholesale club chain store, such as Costco or Sam's Club. You, as a data analyst, are asked to perform the following data clean up, data transformation, and data calculation tasks in...
-
Assume that X is a Poisson random variable with ? = 6. Calculate the following probabilities. a. P(X = 4) b. P(X = 5) c. P(X ? 1)
-
Required Information [The following information applies to the questions displayed below.] Vitamix reports the following information for its year ended December 31: Cash sales Sales on credit General...
-
Superior Inc. exchanged equipment for three forklifts. The original cost of the equipment was $96,180 and had accumulated depreciation on the date of the exchange of $87,020. The fair value of the...
-
According to Paul Krugman, by each country, specializing in products for which it posses comparative advantage, countries could produce more in total and exchange products for goods that were cheaper...
-
A store purchased 100 notebooks at a price of $4.00 each. It sold 40 notebooks at the regular selling price, 40 at a markdown price of $8.00, and the remaining at cost. a. What was the regular...
-
Northwest Fur Company started 2024 with $106,000 of Inventory on hand. During 2024, $550,000 in Inventory was purchased on account with credit terms of 2/ "/45 All discounts were taken. Purchases...
-
What is the difference between corporate strategy and functional strategy?
-
Assume that a trial balance is prepared with an account balance of $21,360 listed as $21,630 and an account balance of $1,500 listed as $15,000. Identify the transposition and the slide.
-
Figure 1.76 shows a uniform rigid bar of mass \(m\) that is pivoted at point \(O\) and connected by springs of stiffnesses \(k_{1}\) and \(k_{2}\). Considering a small angular displacement \(\theta\)...
-
Figure 1.75 shows a system in which the mass \(m\) is directly connected to the springs with stiffnesses \(k_{1}\) and \(k_{2}\) while the spring with stiffness \(k_{3}\) or \(k_{4}\) comes into...
-
Figure 1.77 shows a U-tube manometer open at both ends and containing a column of liquid mercury of length \(l\) and specific weight \(\gamma\). Considering a small displacement \(x\) of the...
Study smarter with the SolutionInn App