COMP5212: Object Oriented Programming - Attributes and Operations - IT Assessment Answer

Download Solution Order New Solution
Subject Code: COMP5212

IT Assessment Answer(Machine Learning)

Task: Question 1: Create a new console application which includes the Book class, with its attributes and operations as shown in the UML class diagram below:

Book

- title: string - author: string

- publisher: string

+ GetTitle(): string

+ SetTitle(tle: string)

+ GetAuthor(): string

+ SetAuthor(au: string)

+ GetPublisher(): string

+ SetPublisher(pub: string)

Your program should create a new book object, obtain the title, author and publisher from the user, which are then assigned to the object’s fields using the appropriate methods. The program should then display the book information as shown in the sample below, by calling the appropriate methods. Question 2  Redesign the UML class diagram for the Book Class (in question 1) as follows:
  • Replace all of the Get and Set methods with; three auto-implemented properties

  • Add two Constructors:

    • A parameterless

    • A parameterised - which has 3 parameters

Question 3 Create a completely new console application which also includes a Book class that matches the updated UML class diagram created above in question 2. Question 4 Create a new console application which includes the Employee class, with its attributes and operations as shown in the UML class diagram below: Your program should obtain the first and last name from the user in order to create a record for a single employee. You will also prompt the user to enter the year they started working for the company.Computer Science Assignment Question 5 Extend the Console application in the previous question (Question 4) as follows (DO NOT create a new Console application):
  • Ask the user if they want to add another employee (y/n should be their options), use a local char variable here and remember their input could be in upper or lowercase, so ensure your code can cope with either.
  • If they enter in ‘y’ - the user should then be able to enter in the data for a new employee record and then have the correct information displayed back to them.
  • If they enter in ‘n’ – the program will display exit message, then exit.
  • The Employee class MUST NOT be changed for this extension, only the Main method.
This Computer Science Assessment has been solved by our IT experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.