Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Combinatorial Testing In Cloud Computing

Authors: Wei-Tek Tsai ,Guanqiu Qi

1st Edition

9811044805, 978-9811044809

More Books

Students also viewed these Programming questions

Question

Write out the first three terms in the expansion (x + y) 12 .

Answered: 1 week ago

Question

What factors contribute most to the comprehension of read text?

Answered: 1 week ago

Question

State the uses of job description.

Answered: 1 week ago

Question

Explain in detail the different methods of performance appraisal .

Answered: 1 week ago