Answer:
Written in Python:
hours = int(input("Hours: "))
mins = int(input("Minutes: "))
result = hours * 60 + mins
print("Result: "+str(result)+" minutes")
Explanation:
This line prompts user for hours
hours = int(input("Hours: "))
This line prompts user for minutes
mins = int(input("Minutes: "))
This line calculates the required output
result = hours * 60 + mins
This line prints the required output in minutes
print("Result: "+str(result)+" minutes")
Answer:
Task 1: T = c + (2.5n(A/M))+ m(1+r/100)ⁿ
Task 2: In both 5 & 10 years, Car A is more economical
Task 3: Printing returns the answer in a different dialogue box while return displays the answer in the same window.
Explanation:
Task 1:
C = Cost of car
n = Number of years
m = Maintenance Cost
r = Rate
M = Mileage per gallon
A = Annual mileage
T= Total Cost
T = c + (2.5n(A/M))+ m(1+r/100)ⁿ
Task 2
Car A In 5 years; T = 20000+ (2.5*5(15000/25))+1300(1+0.15)⁵= $30115
Car B In 5 years; T = 30000+ (2.5*5(15000/32))+1000(1+0.10)⁵= $37470
Therefore in 5 years, Car A is more economical.
Car A In 10 years; T = 20000+ (2.5*10(15000/25))+1300(1+0.15)¹⁰= $40259.225
Car B In 10 years; T = 30000+ (2.5*10(15000/32))+1000(1+0.10)¹⁰= $ 44312.49
Therefore in 10 years, Car A is still economical.
Task 3: Printing returns the answer in a different dialogue box while return displays the answer in the same window.
I believe that the three procedures are...
1. Sub - Standard sub routine
2. Function - a routine that returns an answer
3. Property - reserved for <span> Class Modules</span>
<span>Hope this helps, please mark brainliest!</span>