CSC201: C Programming Language Additional Exercises Friday, Oct 10th 2014 Exercise #2 ____________________________________________________________________ Implement the following decision table using a nested if statement. Assume that the grade point average is within the range 0.0 through 4.0. Grade Point Average (GPA) Transcript Message Failed semester registration suspended 0.0 0.99 – – 1.0 1.99 On probation for next semester – 2.0 2.99 (no message) – for semester 3.0 3.49 – Dean’s list 3.5 4.00 Highest honors for semester – Implement the following decision table using a multiple-alternative if statement Assume that the wind speed is given as an integer. (if…else if…else….). Wind Speed (mph) Category Below 25 Not a strong wind 25 38 Strong wind – 39 54 Gale – Whole gale 55 72 – Above 72 hurricane
CSC201: C Programming Language Additional Exercises Friday, Oct 10th 2014 Exercise #2 ____________________________________________________________________ Implement the following decision table using a nested if statement. Assume that the grade point average is within the range 0.0 through 4.0. Grade Point Average (GPA) Transcript Message 0.0 – 0.99 Failed semester – registration suspended 1.0 – 1.99 On probation for next semester 2.0 – 2.99 (no message) 3.0 – 3.49 Dean’s list for semester 3.5 – 4.00 Highest honors for semester Implement the following decision table using a multiple-alternative if statement (if…else if…else….). Assume that the wind speed is given as an integer. Wind Speed (mph) Category Below 25 Not a strong wind 25 – 38 Strong wind 39 – 54 Gale 55 – 72 Whole gale Above 72 hurricane
exercises_1.docx