Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please code in python and in a coding environment. please follow the directions. I will give you an up-vote. Thanks you are helping a lot.

please code in python and in a coding environment. please follow the directions. I will give you an up-vote. Thanks you are helping a lot.
image text in transcribed
image text in transcribed
student ID Naine melt reatianshp as shown in the UML design as follow: Fis. 1 Each dass needs to be soved in an individual module with the same name as the class. All instance attributes are private data and need a setter and a getter for each attribute. Each class needs a paramererized constructor in which each parameter with a default value. The _str_method is optonal (depending on how you will present instance object's information). m fiulisher class, the 'authors' attribute stores all authors relsted to that publisher and the data is menoged by the createAuthorlisti). The books' attribute stores all books published by the publisher, and the dats is managed by the createBooklisal) method. The 'sales' records books and their sold quantitites, and the docal sala is manazed br the createlalestist) method. The calculateSales () method and it will also cakculate the parment for all sold books' price) based on the sale list the publisher has, Wa book has more than one authors, those profithor. The publisher will give 20% if the sales to authors. In Book class, the 'price' is the sale price for profits will be evenly distributed to the authors of that book. mavhane single author or multiple authors. The book. The 'authors' are the authors for that book, it The Tuthor list may be updated if new authors need to be In Author class, the income' attribute stores the payment from the publisher, the default income is 0. When the publisher caiculate the sales, it will pass the payment for each author of sold books. One author list for the publisher. And then tester the classes. First create a publisher object. Then create an from the aithor ist, if there is new then, create a book list for the creabe apdate the author list). Then create a sale-list for the pubWaher (books should be selected from the existed book list). Display the publisher's sales and the income for authors. Sobmissian requiremente: 1. Add documentation and comments (following the programming template used in this course) 2. Aftach testing run data. 3. Upload all your modules to the midterm dropbox in Canvas (source code is required, not zipped) 4. Stay with Arademic Initegrify rules. 5. Return this papenvork with your name to the professor when you finish. Sample Data: Note: The sample data are provided to you just for your convenience in testing. You are not required ed to test all the information listed in the table. You can randomly pick books for the. book_list and author_list (for example 2 books will be enough for the testing) Publisher name: Pearson

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

Business Process Driven Database Design With Oracle PL SQL

Authors: Rajeev Kaula

1st Edition

1795532386, 978-1795532389

More Books

Students also viewed these Databases questions

Question

8.3 What are sustainable products?

Answered: 1 week ago