Question

The Eco-Marathon is an annual competition sponsored by Shell Oil, in which participants build special vehicles...

The Eco-Marathon is an annual competition sponsored by Shell Oil, in which participants build special vehicles to achieve the highest possible fuel efficiency. The Eco-Marathon is held around the world with events in the United Kingdom, Finland, France, Holland, Japan, and the United States. A world record was set in the Eco-Marathon by a French team in 2003 called Microjoule with a performance of 10,705 miles per gallon. The Microjoule runs on ethanol. Write a MATLAB program to determine how far the Microjoule will travel in kilometers given a user-specified amount of ethanol, provided in units of grams. For your test case, you may assume that the user provides 100 grams of ethanol.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

% matlab code to find how far did the microjoule drive in kilometers

ethanol_grams = input("Enter ethanol in grams: ");

% specific gravity = .789
ethanol = ethanol_grams/0.789;

% to gallon
oil = ethanol * 264.172 * 10^(-6);

% performance 10,705 miles per gallon
distance = 10705*oil;

% to kilometer
distance = distance * 1.60934;

fprintf("Distance covered by Microjoule: %f kilometers\n",distance);

%{
output:

Enter ethanol in grams: 100
Distance covered by Microjoule: 576.825244 kilometers

%}

Add a comment
Know the answer?
Add Answer to:
The Eco-Marathon is an annual competition sponsored by Shell Oil, in which participants build special vehicles...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • onHeip The Eco-Marathon is an annual competition sponsored by Shell Oil, in which participants build special vehicl...

    onHeip The Eco-Marathon is an annual competition sponsored by Shell Oil, in which participants build special vehicles to achieve the highest possible fuel officiency. The Eco-Marathon is held around the world with events in the United Kindom, Finland, France, Holland, Japan, and the United States A world record was set in Eco-Marathon by a French team in 2003 called Microjoule with a performance of 10,705 miles per gallon Imigall. The Microjoule runs on ethanol. If the cars are given 100...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT