Question: USING BASIC ARRAYS AND ARRAY FUNCTIONS IN JAVA Ask user for how many courses they are taking. 2.) Create 3 arrays: a. 1 to hold
USING BASIC ARRAYS AND ARRAY FUNCTIONS IN JAVA
Ask user for how many courses they are taking.
2.) Create 3 arrays:
a. 1 to hold course name
b. 1 to hold number of credits for the course
c. 1 to hold course grade (2.67)
3.) Write a loop to read in all the information for each course
4.) Calculate the GPA
When you have completed this, change the program to have a main method and 3 other methods (1 for each steps 1,3 and 4)
| class | credits | grade | quality points | |||
|---|---|---|---|---|---|---|
| csc190 | 4 | 3.33 | 13.32 | |||
| Eng 103 | 3 | 2.67 | 8.01 | |||
| Mat 271 | 4 | 4.00 | 16.00 |
| ||
| PE 211 | 1 | 4.00 | 4.00 | |||
| PHY | 5 | 2.33 | 11.65 | |||
| Total Credits | TOTAL | GPA | ||||
| 17 | 52.98 | 3.12 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
