Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started