Question: 2. Develop a software application implementing a class named Students. Within this class, consider the fields (instance variables): StudentNumber, StudentName, and AverageMark. The program
2. Develop a software application implementing a class named "Students." Within this class, consider the fields (instance variables): StudentNumber, StudentName, and AverageMark. The program must contain a single function labeled "Compute," responsible for evaluating whether the AverageMark is greater than 80. If so, the function should yield the output "One of the top performers,", if not, it should generate the output text "Scope for improvement." The software must integrate a parameterized constructor as well as a destructor. The next step involves the instantiation of an object, wherein the attribute values are derived from user inputs through a prompt. Ultimately, the "Compute" method should be invoked to yield the fitting text, based upon the input values supplied by the user. 2. Develop a software application implementing a class named "Students." Within this class, consider the fields (instance variables): StudentNumber, StudentName, and AverageMark. The program must contain a single function labeled "Compute," responsible for evaluating whether the AverageMark is greater than 80. If so, the function should yield the output "One of the top performers,", if not, it should generate the output text "Scope for improvement." The software must integrate a parameterized constructor as well as a destructor. The next step involves the instantiation of an object, wherein the attribute values are derived from user inputs through a prompt. Ultimately, the "Compute" method should be invoked to yield the fitting text, based upon the input values supplied by the user.
Step by Step Solution
There are 3 Steps involved in it
The question asks for the development of a software application incorporating a class called Students This class should have three instance variables ... View full answer
Get step-by-step solutions from verified subject matter experts
