Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Develop a console application in c# that contains all the following classes. Each of the following classes should be fully implemented. In the Tester class

Develop a console application in c# that contains all the following classes. image text in transcribedEach of the following classes should be fully implemented.

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.

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

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

More Books

Students also viewed these Databases questions

Question

What about leadership lessons from particularly good or bad bosses?

Answered: 1 week ago

Question

How would you assess the value of an approach like this?

Answered: 1 week ago

Question

When would you use one approach, and when would you use another?

Answered: 1 week ago