Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

python Exercises 2: Given the following class hierarchy, where a game and an Application are specialization (sub-types) of a Software Software Knowing that All software

python
image text in transcribed
Exercises 2: Given the following class hierarchy, where a game and an Application are specialization (sub-types) of a Software Software Knowing that All software has a name. This is a string All software has a price. This is a float. Games have a number of available Downloadable content (DLC). You can assume that each DLC costs 5 JD. Applications have a license_price. This value is a float. To calculate the price of each software: Games: Game price +(Number of DLCS5) Application: Application price + License price You need to do the following: Write these three classes in Python including the constructors and the methods that are necessary to calculate the price to be paid for each software. write a main function that will: prompts the user to enter the number of software that the user wants to purchase for each software, prompt the user to enter: Software type (Game or Application) Software Name Software Price DLC Amount (if the software is a game) License price (if the software is an application) Calculate the total price for these software

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

Introductory Relational Database Design For Business With Microsoft Access

Authors: Jonathan Eckstein, Bonnie R. Schultz

1st Edition

1119329418, 978-1119329411

More Books

Students also viewed these Databases questions

Question

Know how to prepare for an interview prior to an applicants arrival

Answered: 1 week ago