226k views
1 vote
Design a program (this means you need to provide the pseudocode and flowchart) that asks the user to enter the monthly costs for the following expenses incurred from operating his or her automobile: loan payment, insurance, gas, oil, tires, and maintenance. The program should then display the total monthly cost of these expenses, and the total annual cost of these expenses

1 Answer

0 votes

Answer:

There isn't an exact answer since it is asking the user for the values. Something like the following should work though.

Step-by-step explanation:

I only have Python Experience, but other programming languages should have similar steps.

You need to create inputs line that asks the user for the values.

Ex: (for python)

loanPayment= int(input("What is your monthly Loan Payment"))

Do this for every aspect. Afterwards do something like:

monthlyCost= loanPayment+insurancePayment+gasPayment+etc.

print ("This is your monthly bill:" ,monthlyCost)

annualCost= monthlyCost*12

print ("This is your annual bill:" , annualCost)

This is the easiest way to do this. If you wanted to take an extra step further you could add limits to the amount inputted.

User Bwakabats
by
4.7k points