Question: 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
python Exercises 2: Given the following class hierarchy, where a game and

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!