0% found this document useful (0 votes)
50 views3 pages

Program-3: TASK-WAP To Find Grade of Student. Purpose

This C++ program takes in a student's grade as input and outputs their division based on the following thresholds: grades above 60 are first division, grades from 50 to 60 are second division, grades from 40 to 50 are third division, and grades below 40 mean the student has failed. The program uses if statements to check the grade and print the appropriate division or failure message to the output.

Uploaded by

harry221992
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views3 pages

Program-3: TASK-WAP To Find Grade of Student. Purpose

This C++ program takes in a student's grade as input and outputs their division based on the following thresholds: grades above 60 are first division, grades from 50 to 60 are second division, grades from 40 to 50 are third division, and grades below 40 mean the student has failed. The program uses if statements to check the grade and print the appropriate division or failure message to the output.

Uploaded by

harry221992
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

PROGRAM-3

TASK-WAP to find grade of student.

PURPOSE – By implementing this program we are capable to find grade of a


student under given condition.

60 above-first

50 to 40-second

40 to 50-third

Less than 40-fail

#include<iostream.h>

#include<conio.h>

int main()

float g;

cout<<"enter grade:";

cin>>g;

if(g>60)

cout<<"first devision";
}

if(g<60 & g>=50)

cout<<"second division";

if(g<50 & g>=40)

cout<<"third division";

if(g<40)

cout<<"fail";

getch();

}
OUTPUT-

You might also like