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.
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started