100%(1)1 out of 1 people found this document helpful
This preview shows page 1 - 3 out of 6 pages.
ICT167 Assignment 1 1 Semester 2, 2019 MURDOCH UNIVERSITY ICT167 Principles of Computer Science Semester 2, 2019 Assignment 1 (worth 20% of unit assessment) Due Date: midnight, Friday 13 September 2019 All Students: Submit the Assignment via LMS by the due date. Late penalty: 10% per day penalty for delayed submissions unless prior extension of deadline is obtained from the unit coordinator. You should keep a copy of your work. Your submission must include a completed assignment cover sheet. An electronic copy of the assignment cover sheet is available at the unit LMS site. This assignment consists of two questions. All questions are worth equal marks. Read and understand the information at -technologies/What-you-need-to-know/ References: You will need to familiar yourself with materials covered in Topics 1 to 4 for this assignment. Question 1. Consider a class Book that contains information about a Book. The class should has the following attributes: •The title of the book •The author of the book •Year of publication (e.g. 2001) •The number of people that have rated this book as a 1 (Terrible) •The number of people that have rated this book as a 2 (Bad) •The number of people that have rated this book as a 3 (OK) •The number of people that have rated this book as a 4 (Good) •The number of people that have rated this book as a 5 (Great) Implement the class with accessors and mutatorsfor the title of the book, author of the book and year of publication. Write a method addRatingthat takes an integer as an input parameter. The method
ICT167 Assignment 1 2 Semester 2, 2019 The program should also include a method (eg, StudentInfo( )) to output your student details (name, student number, mode of enrolment (i.e., internal or external), tutor name, tutorial attendance day and time) at the start of program results.