Question: For this problem your code should a. Ask a user to enter in their degree name, e.g. biology or math, input it and store in

For this problem your code should

a. Ask a user to enter in their degree name, e.g. biology or math, input it and store in a variable

b. Ask the user the grades they received in their current 4 courses on a scale 0.0 - 4.0, and input them and store them in variables of the appropriate type. (We assume they are taking 4 courses.)

c. Calculate the student's average GPA for the 4 classes

d. Output the column labels on the first line, followed by the degree name and GPA average on the second line. The two columns must be lined up as shown below as shown in the example output below. (You can assume the user enters a degree name of 10 letters or less.)

e. If the student's average GPA >= 2.8 output a message to indicate they are doing well, otherwise output a message indicating they are doing poorly.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!