Problem #2 - Car Expense As a college student, you probably are paying close attention to your budget. For this problem, let us assume that you are working on budgeting and trying to determine the...


Please explain the steps of the coding attached.



Problem #2 - Car Expense<br>As a college student, you probably are paying close attention to your budget. For this problem, let us assume<br>that you are working on budgeting and trying to determine the cost of using your car. The cost of using your<br>car is determined by:<br>• insurance,<br>• maintenance, and<br>• fuel<br>Design a program that will determine how much money you need each month to pay for keeping the car<br>• Your insurance is a constant value and costs $1,600 per year.<br>• Maintenance is determined by the number of miles driven each month at a rate of $0.005 per mile. This<br>means that the miles driven each month should be user input.<br>• Fuel is also determined by the number of miles driven each month. The total cost of fuel is calculated by<br>multiplying the number of miles driven by cost of gasoline divided by your car's fuel efficiency. So.. This<br>means that the price of gas and your car's fuel efficiency are also needed as input.<br>• The output for your algorithm should be the total cost of using your car PER MONTH<br>Some people in your Breakout Room may still be working on Problem #1, so it's okay to

Extracted text: Problem #2 - Car Expense As a college student, you probably are paying close attention to your budget. For this problem, let us assume that you are working on budgeting and trying to determine the cost of using your car. The cost of using your car is determined by: • insurance, • maintenance, and • fuel Design a program that will determine how much money you need each month to pay for keeping the car • Your insurance is a constant value and costs $1,600 per year. • Maintenance is determined by the number of miles driven each month at a rate of $0.005 per mile. This means that the miles driven each month should be user input. • Fuel is also determined by the number of miles driven each month. The total cost of fuel is calculated by multiplying the number of miles driven by cost of gasoline divided by your car's fuel efficiency. So.. This means that the price of gas and your car's fuel efficiency are also needed as input. • The output for your algorithm should be the total cost of using your car PER MONTH Some people in your Breakout Room may still be working on Problem #1, so it's okay to "fly solo" and get started on this part of the lab yourself. As with Problem #1, start by designing and drawing a flowchart for your algorithm first, before writing any code. Here's some sample output. Your output will vary based on your input: RESTART: 7Users/keithbagley/Dropbox/NURTHEASTERN UNIVERSITY, s/lab1/problem2.py How many miles per month do you drive? 100 What is the average price of a gallon of gas? 2.50 How many miles per gallon does your car get on average? 20 Your total expense per month is $146.33 If enough of you are a similar point in the development effort, feel free to talk amongst yourselves about your approach. It's not "cheating" to bounce ideas off of each other as long as you're not copying code.

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here