Chat with us, powered by LiveChat computer science | Writedemy

computer science

computer science

Question

1. Create an Interface called ICommon (in a file called Interfaces.cs). ICommon only contains one member.

Ignore the plus sign on the interface in the UML. We all know that Interfaces cannot have access modifiers specified for them.

2. Create a class called Person (in a file called Person.cs) that “must be inherited”. Make the class Public.

Add the attributes and their respective gets/sets defined in the UML. You DO NOT need to add a get/set for the attribute called numberOfPeople. Don’t forget what an underlined attribute or method means! In this case, create a method called GetNumberOfPeople to return the number of people created.

Next, create a “must override” method called GetFullName. Notice it is italicized, that means it has no method body defined in this class.

Lastly, add a 0-Argument constructor to this class. If needed, initialize all attributes to default values, for example, strings to empty quotes, numbers to zeros, and also increment (by one) the numberOfPeople attribute.

3. Create a class called Professor (in a file called Professor.cs) that is derived from Person. Make the class public.

Add the attribute defined in the UML. You DO NOT need to add a get/set for the attribute called numberOfProfessors. Don’t forget what an underlined attribute or method means! In this case, create a method called GetNumberOfProfessors to return the number of Professors created.

Add a method called GetFullName that returns the Professor’s title and name. For example, using my first and last name, it should return, Professor Chris Martin (if that is what the first and last name attributes were set to).

Lastly, add a 0-Argument constructor to this class. If needed, initialize all attributes to default values, for example, strings to empty quotes, numbers to zeros, and also increment (by one) the numberOfProfessors attribute.

4. Create a class called Student (in a file called Student.cs) that is derived from Person. Make the class Public.

Add the attributes and their respective gets/sets defined in the UML. You DO NOT need to add a get/set for the attribute called numberOfStudents. Don’t forget what an underlined attribute or method means! In this case, create a method called GetNumberOfStudents to return the number of Students created.

Add a method called GetFullName that returns the student’s name with appropriate salutation based on the gender attributes (basically Ms. for a female, and Mr. for a male). To make sure that you’re coding to what I am expecting, assume that I am using “F” for female, and “M” for male to represent the Gender of the Student.

For example, a female student should return, Ms. Sally Smith (if that is what the first and last name attributes were set to) and a male student should return Mr. Bob Builder (if that is what the first and last name attributes were set to).

Add a method called CalculateAverage that takes 2 Scores. Refer to UML for naming and data types. Assign the Average to the Average attribute.

Add another method called CalculateAverage that takes 3 Scores. Refer to UML for naming and data types. Assign the Average to the Average attribute.

Lastly, add a 0-Argument constructor to this class. If needed, initialize all attributes to default values, for example, strings to empty quotes, numbers to zeros, and also increment (by one) the numberOfStudents attribute.

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

About Writedemy

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

Hire a tutor today CLICK HERE to make your first order