![](https://csdnimg.cn/release/download_crawler_static/86034180/bg3.jpg)
Exercise 3: Selection structure
1. Write a C program that accepts a student’s numerical
grade, converts the numerical grade to Passed (grade is
between 60-100), Failed (grade is between 0-59), or
Error (grade is less than 0 or greater than 100).
2. Write a program that asks the user to enter an integer
number, then tells the user whether it is an odd or
even number.
3. Write a program that reads in three integers and then
determines and prints the largest in the group.
Exercise 4: ‘switch’ statement and simple “while”
repetition statement
1. Write a program that reads three integers an abbreviated
date (for example: 26 12 94) and that will print the date
in full; for example: 26th December 1994. The day should
be followed by an appropriate suffix, ‘st’, ‘nd’,
‘rd’ or ‘th’. Use at least one switch statement.
2.Write a C program that uses a while loop to calculate and
print the sum of the even integers from 2 to 30.
3. A large chemical company pays its sales staff on a
commission basis. They receive £200 per week plus 9% of
their gross sales for that week. For example, someone who