[SOLVED] Using C# write a console application with a Book Class

12.00 $

Programming resource
, Digital learning resource
Categories: ,
Practical programming resource
Suitable for guided study and reference
Tutor guidance available when needed

Description

5/5 - (1 vote)
Using C# write a console application with a Book Class that contains:

Four private fields:

a. string title

b. string author

c. double price

d. string isbn

A constructor: public Book(string title, string author, double price, string isbn).

Four public properties with getter/setter for the four fields: Title, Author, Price, and ISBN

A method public string PrintInfomation(), which return the book information in a string with the format of “title written by author is price, with ISBN isbn.” For example, “Pride and Prejudice written by Jane Austen is 5.97 dollars, with ISBN 0141439513”.

In the Main method, use the constructor to create an instance of the Book Class, and initialize. Then call PrintInformation method to display the book information.

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.