The Eco-Marathon is an annual competition sponsored by Shell Oil, in which parti
ID: 1845013 • Letter: T
Question
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, Holland, Japan, and the United State.
A world record was set in the Eco-Marathon by French team in 2003 called Microjoule with a performance of 10,705 miles per galon.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.
Explanation / Answer
den=2986.69; %density of ehonol n gm/gal
milage=10705; %milage in mile/gal
fuel=input('Enter the fuel in gms:');
distance=fuel*milage/den;
fprintf('distance can travel in is %i miles ',distance)
%OutPut.....
Enter the fuel in gms:100
distance can travel in is 3.584235e+002 miles
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.