Question: Create a matrix that records taking three trips in your car where each trip has a row name of the destination. The columns of the
Create a matrix that records taking three trips in your car where each trip has a row name of the destination. The columns of the matrix should indicate the miles you drove, the number of gallons of gas you used and the cost of gas per gallon. Label these appropriately. Enter some numbers that you feel are reasonable for each of the three trips. Now calculate:
- the cost of each trip
- the total distance for the three trips
- the average distance on the three trips
- the average cost per gallon of gas for the three trips
- the cost per mile for the three trips
- convert the miles in your matrix to kilometers (1 mile = 1.67 kilometers) using matrix multiplication (Hint: build a matrix that only changes the miles column)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
