Question: Write the C + + program according to following scenario: Write a C + + program that will have a user defined data type Student.
Write the program according to following scenario:
Write a C program that will have a user defined data type Student. Follow the given
details and use structure to create it
The Student structure includes the attributes id name, cgpa, numberOfCreditsCompleted
Implement the following methods within the struct
setData for setting all the student information and display for displaying the student details.
Additionally, include one operational method called getScholarshipPercent, this function
is used to check whether the student is applicable for scholarship or not. The student is
eligible for a scholarship if their cgpa is greater than or equal to and their
numberOfCredits exceeds The student is eligible for a scholarship if their cgpa
is greater than or equal to and their numberOfCredits exceeds Otherwise, the
percentage is The percentage of the scholarship is returned by the function.
In main function create an instance of Student structure and use setData to initialize the
information about the student. After that Check whether the student is applicable for
scholarship or not. Finally, print the information by using display function.
Do the same thing using class Student
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
