question archive Write a program that creates Student Objects using data from the attached “students

Write a program that creates Student Objects using data from the attached “students

Subject:Computer SciencePrice:3.87 Bought8

Write a program that creates Student Objects using data from the attached “students.txt” file. Add code to limit the number of students created to 24.  At a minimum, each Student object should contain the following attributes: 

  • First name (string and const)  - 

  • Last name (string and const)  -

  • Social Security Number (string) – 

  • Four test Grades (array of type double) –

  • Student Average test Grade (double) – 

  • Student Number (int and static) – Initially set to zero. Each time a Student object is created, the Student Number is incremented by one and when destroyed, decremented by one.  

Add member functions to the Student class to: 

  • Function to return the average test Grade of a student: (Sum of Four test grades divided by four).   

  • Getter and Setter Functions for each attribute

  • Function to display associated attributes of the Student

Create a single ClassRoom object with the following attributes  

  • Name of the ClassRoom object (string ) – Choose any name (i.e. CSC134)

  • Count of the number of students in the ClassRoom (int)

  • Dynamic Array of Student Objects (maximum size is 24) – Represented as an array of pointers.

Add member functions to the ClassRoom class to: 

  • ClassRoom Constructor Function – 

  • ClassRoom Destructor Function – 

  • Read the input data file and create the Student objects. – 

  • Sort list of students by student average – 

  • Sort list of students by student last name – 

  • Return the average grade of all students (Sum of Student Average divided by number of students). – 

  • Display a summary of all the students in the ClassRoom object and the associated attributes of each student attributes. – 

  • Return  the count of student objects created – 

Write the main() driver to demonstrate the following: 

  1. Create a ClassRoom Object  

  1. Use the ClassRoom Object to read the Student Objects from the input file ”students.txt” 

  1. Use the ClassRoom Object to sort list of students by student average 

  1. Display the list of students by student average 

  1. Use the ClassRoom Object to sort list of students by student last name 

  1. Display the list of students by student last name 

  1. Use the ClassRoom Object to display the average grade of all students. 

  1. Use the ClassRoom Object to display the number of Student objects created 

NOTE: No global non-constant variables should be used. You can add more data members or member functions for Student and ClassRoom Class Definitions if needed. C++

Option 1

Low Cost Option
Download this past answer in few clicks

3.87 USD

PURCHASE SOLUTION

Option 2

Custom new solution created by our subject matter experts

GET A QUOTE

rated 5 stars

Purchased 8 times

Completion Status 100%

Related Questions