Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are part of HR IT department and your Team lead has asked you to create an application using the steps described within Requirements section

You are part of HR IT department and your Team lead has asked you to create an application using the steps described within Requirements section below. program needs to be done in C++.

image text in transcribed

image text in transcribedimage text in transcribedimage text in transcribed

Documentation Requirements (10 Points) Ensure that your project compiles without any errors and each n every section is well documented using block comments, in-line comments, and @param tags (wherever applicable). Note: if the project compiles with any error at all, submission will be completely rejected hence earning O score towards this project. 1. Create a new class named Student by using the details provided in the following UML diagram (add member variables and functions): Student - Studentld: int - Name: string - FullTime: bool - Courselist : vector - JoinCourses(Courses: vector): string + Student () + Student (Id: int, FName: string, FTime: bool) + Student (Id: int, FName: string, FTime: bool, Courses: vector) + Displayinfo() : void + DisplayFullTimeStatus(): void + DisplayCourses (): void + Update FullTimeStatus (): void + UpdateCourses (Course ToAdd: string): void + WriteStudentInfoToFile (outFile: ofstream&): void 2. Instantiate 3 students using the following attributes: Student Id 1 2 3 Full Name John Doe Tom Seth Jane King Full Time ? Yes No Yes Courses Java, C++ PHP, Networking Hint: 3rd line above should be using the constructor that does not require Course information to be provided. 3. Implement DisplayInfo() method to return Student info in the following format: Hello, I am John Doe, my Id is: 1, I am a Full time student, and I am enrolled in Java, C# courses. 4. Display student info for all 3 student objects created in previous step by calling Displayinfo() method. 5. Implement and Call DisplayFullTimeStatus() method on all 3 student objects to display the info in the format: Hello, I am John Doe, my ld is: 2 and I am a Part time student. 6. Implement and Call DisplayCourses() method on all 3 student objects to display the info in the format: Hello, I am John Doe, my Id is: 1 and I am enrolled in Java, C# courses. Note: If no courses found (example student with Id = 3, it should display message like: Hello, I am John Doe, my Id is: 3 and I am NOT enrolled in any course yet. 7. Implement and Call Update FullTimeStatus() method to update the status. For the student with Id=2, update the status to Full time and then call DisplayFullTimeStatus() method for this student to display updated status. 8. For the student with Id=3, call Update Courses() method twice, by passing 1 new course name in each call, to update the course list. Here is an example: S3.UpdateCourses("Project Management"); Note: Check existing list before adding, there should not be a duplicate entry. 9. Then call DisplayCourses() method for this student to display updated course list. 10. Finally, for all 3 students, call Write StudentInfoToFile() method and write the student info (all attributes on a single line by appending them and separating using a pipe sign like: 1 John Doe Full Time |Java, C++ into a file named: Student Records.txt (create the file if it does not exist, append to the file if it exists)

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

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

4th Edition

0805360476, 978-0805360479

More Books

Students also viewed these Databases questions

Question

LO10.2 List the conditions required for purely competitive markets.

Answered: 1 week ago