00:01
In this question, we have to write a program in a python language that asks the user to enter the monthly cost for the following expenses occurred from operating their automobile.
00:13
Expenses such as loan payment, insurance, gas, maintenance, etc.
00:19
So coming to the code of this question.
00:24
First, we have to define a function to calculate the monthly cost.
00:29
So def calculate total monthly cost, loan, insurance, gas, maintenance, return, loan, insurance, plus gas, plus maintenance.
00:49
Now coming to the main function of this code.
00:52
Def main now get input for each expense.
00:58
Loan payment is equal to float input enter monthly loan payment.
01:11
Mofor insurance cost is equal to float input enter monthly insurance.
01:27
Now gas cost is equal to float input monthly enter monthly gas cost.
01:44
After that maintenance cost one more input that is maintenance cost.
01:54
So maintenance cost is equal to float input enter monthly maintenance cost.
02:09
Now coming to calculate the total monthly and annual cost.
02:14
So total monthly cost is equal to calculate total monthly cost, loan payment, insurance, insurance cost, gas cost, maintenance cost...