The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 313 Weeks Ago, 6 Days Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
You are given a partially completed project containing:
3 header files:
Container.h
Student.h
Absent.h
4 C++ files:
Container.cpp
Student.cpp
Absent.cpp
hw09.cpp
Your job is to follow the instructions given in the comments of the hw09.cpp and Student.cpp files to complete the missing parts of the project so that the program executes properly.
Q1: Constructor and Accessor Methods for Student class (5 points)
You will need to write the constructor and accessor methods for the Student class in the Student.cpp file. The program will not compile until this part is completed. The constructor and accessor methods are already declared in the Student.h file. (See Student.cpp file for details).
Q2: Add Absent and Last Absent Methods for Student class (10 points)
You will need to write these methods for the Student class in the Student.cpp file. The program will not compile until this part is completed. These methods are already declared in the Student.h file. (See Student.cpp file for further instructions).
Q3: Add Student Function (5 points)
When inputting a new student, the user is prompted for the student’s name and standard. This function will be used to add a new student to the head of the global linked list of containers. This means that no sorting is needed for this function. You will notice that the Search Student function is called before this function, therefore, you are to assume that the Student that you are looking for is not already on the list. (See hw09.cpp file for further instructions).
Q4: Search Student Function (10 points)
This function is used to check if a Student exists in the global list of Containers. It is called before executing most of the other functionalities of this assignment. In order to find a Student on the list, you will need to check both the name and the standard of the Student. Students on the list may have the same name OR the same standard. Students on the list may not have the same name AND the same standard. (See hw09.cpp file for further instructions).
Q5: Remove Student Function (15 points)
When removing a Student from the list, the user is prompted for the student’s name and standard. You will use these 2 string parameters to search for the Student on the list and remove them. You will need to do so in a way that ensures no memory leaks. You will notice that the Search Student function is called before this function, therefore, you are to assume that the Student that you are looking for is already on the list. (See hw09.cpp file for further instructions).
Q6: Implement cin / cout for the 7 lines in main (5 points)
You will notice that main in hw09.cpp uses printf statements and getchar(). Update these statements to use cin and cout without changing the functionality of the statements.
----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly