Quick Print – Computer Sir Ki Class


Lost your password?

Don't have an account ?
Register (It's FREE) ×

Solved Problem Solved Problem#CPP#2781

Problem Statement - Collect student details to structure and update selectively

Write a program to collect follow entry about an student in a structure type c++ data structure.
integer – rollno, char array – name, float – marks and char passfail. Declare a global instance of this structure and then collect the rollno,name and marks in the main routine. Within the main routine update the value of passfail as ‘Y’ or ‘N’ if the marks are more than or equal to 33.0 . Finally it should report as per following example.

R.No. Name Marks Status
22       Vijay  45         Pass



Run Output

roll no:22

R.No. Name Marks Status
22 Vijay 45 Pass