Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

a. You want to calculate your grade point average (GPA). Create a MatLab program that will take credit hours and grades for each course and

a. You want to calculate your grade point average (GPA). Create a MatLab program that will take credit hours and grades for each course and calculate your GPA for that semester. Assume that you will always have four courses each semester. Your program should:

i. Request that the user input the number of credit hours for a first course, and then the number of grade points earned for that course (A 4, B 3, etc.). Assume no + or - grades exist

ii. Request credit hours and grade points for a second, third, and fourth course

iii. Calculate your GPA, using the following formula: summation of the product of the semester hours and number of points earned divided by the summation of semester hours

iv. Output your semester GPA with descriptive text b. Create a sample run for a student getting an A in a 4 credit course, B in a 3 credit course, C in a 2 credit course, and B in another 4 credit course. The sample run should show both your input and the output

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_2

Step: 3

blur-text-image_3

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

Mobile Usability

Authors: Jakob Nielsen, Raluca Budiu

1st Edition

0133122131, 9780133122138

More Books

Students also viewed these Programming questions