Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Define a class Candidate in C++ with the following specification : [Delhi, 2015] Private Mumbers: A data members Rno (Registration Number) type long A data

image text in transcribed

Define a class Candidate in C++ with the following specification : [Delhi, 2015] Private Mumbers: A data members Rno (Registration Number) type long A data member Cname of type string A data members Agg_marks (Aggregate Marks) of type float A data members Grade of type char A member function setGrade() to find the grade as per the aggregate marks obtained by the student. Equivalent aggregate marks range and the respective grade as shown below. Aggregate Marks Grade > = 80 A Less than 80 and > = 65 B Less than 65 and > = 50 C Less than 50 D Public members: A constructor to assign default values to data members: Rno = 0, Cname N.A, Age_marks = 0.0 A function Getdata () to allow users to enter values for Rno. Cname, Agg_marks and call function setGrade () to find the grade. A function dispResult () to allow user to view the content of all the data members

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Evaluate each of the following. 18 (3 + 6) 2

Answered: 1 week ago

Question

Conduct a cost-benefit analysis for a training program.

Answered: 1 week ago

Question

Ty e2y Evaluate the integral dy

Answered: 1 week ago

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago