Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

NEED THE SOLUTION IN C# ONLY!!!! Develop a console application that contains all the following classes. Each of the following classes should be fully implemented.

NEED THE SOLUTION IN C# ONLY!!!!

Develop a console application that contains all the following classes. Each of the following classes should be fully implemented. Please pay attention to all the small details given in the class diagram.

In the Tester class (not shown in the class diagram), do the following in the Main method:

1. Add at least 5 students to the University

2. Add at least 2 instructors to the University

3. Add at least 2 courses to the university

4. Print the university name

5. Print the total number of persons in the university

6. Print a list of students in the university showing their id, name, and major

7. Print a list of instructors in the university showing their id, name, and course

8. Print the total number of courses in the university

9. Print a list of courses in the university showing their number and name

10. Find a person by id

11. Remove a person by id

12. Print a list of all people to check if the person was deleted.

.image text in transcribed

University Person Student -people: List=Person> -name:string -courses: List Course> -name:string -id:int -major string -courses:List +Person(id:int, name:string +Student(id:int, name:string, major:string) +University(name:string) +GetName().string +AddCourse(course:Course):void +AddPerson(person:Person) void +Getid:int +GetCourses():List +GetPeople():List A +GetMajor():string +GetNumPeople():int +AddCourse(course:Course):void +GetNumCourses():int +GetCourses(:List Course instructor +GetName():string -name:string -course: Course +FindPerson(id:int):Person +RemovePerson(id:int):boolean -number:int +Instructor(id:int, name:string) 1 +Course(number:int, name:string) +SetCourse(course:Course):void +GetName:string +GetCourse:Course +GetNumber(int

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

Knowledge Discovery In Databases

Authors: Gregory Piatetsky-Shapiro, William Frawley

1st Edition

ISBN: 0262660709, 978-0262660709

More Books

Students also viewed these Databases questions

Question

Describe the role of the stakeholder, and list several examples.

Answered: 1 week ago

Question

Question Can plan participants borrow from a VEBA?

Answered: 1 week ago

Question

Question What is an educational benefit trust and how is it used?

Answered: 1 week ago