I need C# code for the provided task. Thanks in advance for helping. TASK: Course Title:...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
I need C# code for the provided task. Thanks in advance for helping. TASK: Course Title: Object Oriented Programming 2 (C#) Lab Task -: Developing a basic C# program with Inheritance, Association and Polymorphism. Look at the following class notations and class diagram carefully, and develop the program. BookShop String isbn String book Title String authorName double price int availableQuantity Book Class Diagram void setIsbn(String isbn) void setBook Title(String book Title) void setAuthorName(String authorName) String getlsbn() String getBook Title() String getAuthorName() double getPrice() int getAvailableQuantity() void addQuantity(int amount) void sellQuantity(int amount) void showDetails() Book Book() Book(String isbn, String bookTitle, String authorName, double price, int availableQuantity) void setPrice(double price) void setAvaiable Quantity(int availableQuantity) StoryBook TextBook. StoryBook String category StoryBook() StoryBook(String isbn, String bookTitle, String authorName, double price, int availableQuantity, String category) void setCategory(String category) String getCategory() TextBook int standard TextBook() TextBook(String isbn, String bookTitle, String authorName, double price, int availableQuantity, int standard) void setStandard (int standard) int getStandard() BookShop String name Book books[]//size of array should be 100. BookShop() BookShop(String name) void setName(String name) String getName() boolean insertBook(Book b) boolean removeBook(Book b) void showAllBooks() Book searchBook(String isbn) Start The Start class contains the main method. Inside the main method, create Five objects of StoryBook, Five objects of TextBook and One object of BookShop. Demonstrate all the methods and constructors. I need C# code for the provided task. Thanks in advance for helping. TASK: Course Title: Object Oriented Programming 2 (C#) Lab Task -: Developing a basic C# program with Inheritance, Association and Polymorphism. Look at the following class notations and class diagram carefully, and develop the program. BookShop String isbn String book Title String authorName double price int availableQuantity Book Class Diagram void setIsbn(String isbn) void setBook Title(String book Title) void setAuthorName(String authorName) String getlsbn() String getBook Title() String getAuthorName() double getPrice() int getAvailableQuantity() void addQuantity(int amount) void sellQuantity(int amount) void showDetails() Book Book() Book(String isbn, String bookTitle, String authorName, double price, int availableQuantity) void setPrice(double price) void setAvaiable Quantity(int availableQuantity) StoryBook TextBook. StoryBook String category StoryBook() StoryBook(String isbn, String bookTitle, String authorName, double price, int availableQuantity, String category) void setCategory(String category) String getCategory() TextBook int standard TextBook() TextBook(String isbn, String bookTitle, String authorName, double price, int availableQuantity, int standard) void setStandard (int standard) int getStandard() BookShop String name Book books[]//size of array should be 100. BookShop() BookShop(String name) void setName(String name) String getName() boolean insertBook(Book b) boolean removeBook(Book b) void showAllBooks() Book searchBook(String isbn) Start The Start class contains the main method. Inside the main method, create Five objects of StoryBook, Five objects of TextBook and One object of BookShop. Demonstrate all the methods and constructors.
Expert Answer:
Answer rating: 100% (QA)
This task involves creating a basic C program that demonstrates the principles of inheritance association and polymorphism Based on the class diagram and the description provided well need to define s... View the full answer
Related Book For
Accounting Information Systems
ISBN: 9780132871938
11th Edition
Authors: George H. Bodnar, William S. Hopwood
Posted Date:
Students also viewed these programming questions
-
You work at ABC Stock Brokers Sdn Bhd as a remisier. A wealthy foreign client who is bullish about Malaysian stocks wants to establish an exposure in the local equity market. The FBM KLCI is now at...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Case Study: Quick Fix Dental Practice Technology requirements Application must be built using Visual Studio 2019 or Visual Studio 2017, professional or enterprise. The community edition is not...
-
Stuart and Belinda, who earn good salaries, want to buy a property they can use to live in and operate a bed and breakfast in their retirement. The only funds they have available is their combined...
-
Selected financial data for Shumway Ltd. are shown below. (a) Calculate for each of 2015 and 2014 the (1) Current ratio, (2) Receivables turnover ratio, (3) Inventory turnover ratio . (b) Based on...
-
A proposal is made to use a geothermal supply of hot water to operate a steam turbine, as shown in Fig. P4.125. The high-pressure water at 1.5MPa, 180C is throttled into a flash evaporator chamber,...
-
Conventional financial accounting suggests that environmental permits should be measured by using the historical cost principle. One alternative is that current market prices should be used instead....
-
Og is the leader of the surprisingly mathematically advanced, though technologically run-of-the-mill, Calm Waters caveman tribe. He must decide on the number of stone clubs and stone axes to be...
-
A company provided the following information regarding its only product: Sale price per unit Direct materials used $50 $160,000 Direct labor incurred $185,000 Variable manufacturing overhead $120,000...
-
An investor, wants to know how two portfolios are performing in the market: 7% Y (3%) 12% Probability Market portfolio 0.40 0.20 15% 0.40 Beta factor 10% 18% Portfolio X 1.30 10% 8% 4% 0.75 1 The...
-
A line segment has endpoints A(1,7) and C(5,1). Point B is on the line segment at (3,4). What is the ratio of AB to AC ?
-
PAYROLL Using the data provided, complete the payroll calculations table. Download the deductions table from Accounting Supplemental Material Page. Submit your reconciliation in Accounting Competency...
-
Explain your personal learning goals for this course. Be sure to identify at least two areas in which you feel you would like to deepen your current level of understanding of Leadership and Emerging...
-
Summarize the NY Times article. Do you agree or disagree with the article? How do you feel about inflation? How have you been impacted by inflation?...
-
When examining diffusion out of (or into) a semi-infinite membrane, we applied the assumptions that there is no reaction in the membrane, we are not at steady-state, C is constant in space and time,...
-
Explain how do you plan to apply strategic process in your future professional endeavors?
-
An iron ball 10 cm in diameter weighs 4 kg. Find the weight of an iron shell 5 cm thick whose external diameter is 50 cm.
-
Stephen Schor, an accountant in New York City, advised his client, Andre Romanelli, Inc., to open an account at J. P. Morgan Chase Bank, N.A., to obtain a favorable interest rate on a line of credit....
-
Consider the following numerical input data used in an accounts receivableapplication: Account Invoice Gross Net Number, Number, Amount, Discount, Amount, 4 digits 4 digits 7 digits 5 digits 7 digits...
-
What is a bill of materials? A reorder point? A reorder quantity? A master operations list?
-
What are the objectives of a fixed- asset or investment accounting system?
-
The gross profit ratio is equal to: (a) profit divided by net sales. (b) cost of sales divided by net sales. (c) net sales minus cost of sales, divided by net sales. (d) net sales minus cost of...
-
What inventory cost flow method does Dominos Pizza Enterprises Ltd use for its inventories?
-
Which inventory cost flow method produces the highest profit in a period of rising prices?
Study smarter with the SolutionInn App