Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Having some trouble with this python question. An answer would be greatly appreciated. days_since_release = 14 original_price = 60 greatest_hits = True #You may modify

Having some trouble with this python question. An answer would be greatly appreciated.

days_since_release = 14 original_price = 60 greatest_hits = True

#You may modify the lines of code above, but don't move them! #When you Submit your code, we'll change these lines to #assign different values to the variables.

#Write a conditional that determines the price of a #newly-released game, movie, or album based on the time since #it was released. # #Assume that a new release loses $2 off its price for every #full week since it was released. So, two full weeks (14 days) #after a $60 game is released, it will cost $56. # #However, if the release is considered a "greatest hit", it #loses value half as fast: after two weeks, it will be $58 #instead of $56. # #No release will ever fall to below $20, however, no matter #how fast it loses value or whether it's the greatest hit. # #Add some code below to print the current price of the release. #For example, with the values above, it would print $58.

#Add your code here! Make sure to print the dollar sign, too.

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

Database And Expert Systems Applications Dexa 2023 Workshops 34th International Conference Dexa 2023 Penang Malaysia August 28 30 2023 Proceedings

Authors: Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil ,Bernhard Moser ,Atif Mashkoor ,Johannes Sametinger ,Maqbool Khan

1st Edition

ISBN: 303139688X, 978-3031396885

More Books

Students also viewed these Databases questions

Question

1. Answer the question, What is human resource management?

Answered: 1 week ago