Revision Programs

Set 2

Result Problems

1.

  1. Input name of a student and two marks. Marks are out of 40 for each subject. Find percentage of total and print it along with name.

2.1.

  1. Input name and two marks. Marks are out of 40 for each subject. Find percentage of total.
    If percentage is 40 or above print "Admission is granted" along with name.
    Otherwise nothing to be done.

2.2.

  1. Input two marks of a student. Marks are in 40 each. Find percentage of total.
    If percentage is 40 or above print "Admission is granted".
    Otherwise print "No Admission."

2.3.

  1. Input percentage of marks. Print result.
    percentage 80 or above : Distinction. 60 or above : First class.
    percentage 50 or above : Second class. 40 or above : Third class.
    Others : Failed

2.4.

  1. Input percentage of marks and syllabus. Print result.
    ExcellentGoodSatisfactory
    ICSE (I)Mark: >=75Mark: >=50 Below 50
    CBSE (C) Mark: >=80Mark: >=60 Below 60
    Others Wrong choice

2.5.

  1. Write a menu driven program:
    1) Input average, print "Passed" or "Failed". Pass mark is 40 or above.
    2) Input percentage, print "Admission granted" or "No admission". Admission percentage is 80 or above.

3.1.

  1. Input name and percentage of marks of n students. Print "Admission granted" or "No admission" with name. Admission mark is 80 or above. Also find total number of students who got admission.