Question: Exercise 1: Convert the previous marks-to-grade example into a function that receives the letter mark as a variable and returns the associated number grade. Exercise
Exercise 1: Convert the previous marks-to-grade example into a function that receives the letter mark as a variable and returns the associated number grade. Exercise 2: Modify the function in the previous example to return the Grade Point Average (GPA) based on the mark. Exercise 3: Modify the above function to allow the student to enter the marks for 5 courses and calculate the semester average and GPA. Exercise 4: Which of the following are valid if statements? If invalid write down the reason why it is invalid: if (total 500) if (rate FIVE" if age2.5 if (mark
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
