Answer to Question #233027 in Python for Assignment

Question #233027
Write a python program that asks the user to give a movie’s budget and its total
domestic and international collection. Then your program should calculate the profit of
the movie. Then print the information according to the provided chart below.
Profit = domestic + international - budget

Profit Information to be printed
•No profit Super flop movie!!
•Less than 500000 (5 lakh) Flop movie!
Waste of money. Waste of time.
•Greater than 5 lakh and
less than 20 lakh Average movie
•Above 20 lakh Success!!
•Above 30 lakh Super Hit!!!

Sample Input 1:
50000
1000000
800000
Sample Output 1:
Profit: 1750000
Average movie
1
Expert's answer
2021-09-04T00:41:27-0400
budget = eval(input('Enter budget here: '))
i_proc = eval(input('Enter international collection here: '))
d_proc = eval(input('Enter domestic collection here: '))
profit = i_proc + d_proc - budget
print(profit)
if profit <= 0:
  print('Super flop movie!! ')
elif profit < 500000:
  print('Flop movie!Waste of money. Waste of time. ')
elif 500000 <= profit < 2000000:
  print('Average movie ')
elif 2000000 <= profit < 3000000:
  print('Success!! ')
else:
  print(' Super Hit!!! ')

Enter budget here: 50000
Enter international collection here: 1000000 
Enter domestic collection here: 800000 
1750000
Average movie

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS