Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

use C# SLOVE THE PROJECT Instructions Create a class for Book it must have appropriate properties and at least one constructor. o All properties must

image text in transcribed

use C# SLOVE THE PROJECT

Instructions

Create a class for Book it must have appropriate properties and at least one constructor. o All properties must be manually implemented with corresponding instance variables, get/set accessors, etc.

The property for the publication year must check to see if the value for the year being set is valid. If it is not valid, it must use the default value specified in the description.

Create one class for the Library System o It should have at least one constructor o It should have an array of books. o Create a DisplayHeader() method that clears the console and writes the title of the application at the top. o Create an AddBook() method that asks the user for information on one book and adds it to the array of books. o Create a DisplayBookList() method that loops through the array and displays a list of the books and their publication year. o Have a LoadLibrarySystem() method that asks the users how many books are needed and calls all the other methods as appropriate in the proper sequence.

You are free to have more classes, e.g. menuing classes, etc.

Follow principles of object-oriented design your program shouldnt just work it should work by properly utilizing properties, accessors, constructors, preserving encapsulation by making public only that which absolutely must be public, re-using methods as necessary, and using instance methods/variables/properties. o Nothing but the main method should be static.

Your program should use all proper programming conventions, minimize redundancy, be neatly organized in its source code, look clean and be easily readable. o Variable declarations should be grouped neatly at the top, followed by all the properties, constructors, and then finally followed by all the methods. o Organize methods by name in ascending alphabetical order.

Your assignment will be graded all these criteria and not just basic working functionality.

file:///G:/Fal12014 CIS345/Assignments/Assignment6/LibrarySystem/bin/Debug/LibrarySystem.EXE ow nany new boo o you want to add to t rary ter Book title: Fellowship of the Ring ter Book Year 1954 itle 'Fellowship of the Ring' added to the library ter Book title: The Tuo Towers ter Book Year: 1955 itle 'The Two Towers'added to the library ter Book title Return of the King nter Book Year: 1955 itle 'Return of the King' added to the library. ter Book title: Harry Potter and the Order of the Phoenix ter Book Year: 2003 itle 'Harry Potter and the Order of the Phoenix' added to the library ter Book titleHarry Potter and the Half-Blood Prince ter Book Year 2105 itle 'Harry Potter and the Half-Blood Prince' added to the library dding books conplete Press enter to continue Set accessor modifies bad values file:///G:/Fal12014 CIS345/As /LibrarySyst /LibrarySystem.EXE ew rary Systen Title Year 1954 1955 1955 2003 1900 ellowship of the Ring he Two Towers turn of the King arry Potter and the Order of the Phoenix arry Potter and the Half-Blood Prince ress Enter to continue

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

Database Marketing The New Profit Frontier

Authors: Ed Burnett

1st Edition

0964535629, 978-0964535626

More Books

Students also viewed these Databases questions

Question

2. How were various roles filled?

Answered: 1 week ago