Question: Implement a simple C + + program for managing students in a programming competition using classes. You need to develop the following files: Student class:
Implement a simple program for managing students in a programming competition using
classes. You need to develop the following files:
Student class: To represent each student with a name and competition grade.
Competition class. To manage the list of students add remove, update, display:
A menudriven interface to interact with the user
Organize the code into the following files:
student.h Header file
student.cpp Source file
main.cpp Driver program for the menu
Tips:
Student Class:
Represents a student with a name and a grade.
Includes getter and setter methods for accessing and modifying these values.
Competition Class:
Manages a collection of students using a std: vector:
Provides functions to add, remove, update, display students, and output the class roster.
Menu:
A simple menudriven interface in main cpp allows the user to interact with the program.
Options include adding, removing, updating student grades and displaying the roster or
students above a certain grade.
Sample Output:
PROGRAMMING COMPETITION MENU
a Add a student
d Remove a student
u Update student competition grade
r Output students above a competition grade
Output class roster
q Quit
Choose an option: a
Enter student name: Bakhita
Enter student grade:
Student Bakhita added with grade
PROGRAMMING COMPETIIION MENU
Choose an option: o
Class roster:
Bakhita
Implement a simple program for managing students in a programming competition using
classes. You need to develop the following files:
Student class: To represent each student with a name and competition grade.
Competition class To manage the list of students add remove, update, display
A menudriven interface to interact with the user
Organize the code into the following files:
student.h Header file
student.cpp Source file
main.cpp Driver program for the menu
Tips:
Student Class:
Represents a student with a name and a grade
Includes getter and setter methods for accessing and modifying these values.
Competition Class:
Manages a collection of students using a std vector.
Provides functions to add remove, update display students, and output the class roster.
Menu:
A simple menudriven interface in main cpp allows the user to interact with the program.
Options include adding, removing, updating student grades, and displaying the roster or
students above a certain grade.
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
