Laboratory Exercise 2
Laboratory Exercise 2
Laboratory Exercise 2
Objectives:
Instructions:
1. Write a program to read the age of a candidate and determine whether it is eligible for casting his/her
own vote. Go to the editor
Sample Output :
2. Write a program to find the eligibility of admission for a professional course based on the following
criteria:
Marks in Chem>=50
Sample Output :
-------------------------------------------------------------------------
3. Write a program that determines a student’s grade. The program will read three types of scores (quiz,
mid-term, and final scores) and determine the grade based on the following rules:
-if the average score >= 70% and <90% => grade=B
Sample Output:
Enter Quiz score: 80
----------------------------------------------------
Your Grade is B
4. Write a program to accept the age of a person and categorize the person’s life stage.
Sample Output: