Thinking Like an Engineer: An Active Learning Approach (3rd Edition)
Thinking Like an Engineer: An Active Learning Approach (3rd Edition)
3rd Edition
ISBN: 9780133593211
Author: Elizabeth A. Stephan, David R. Bowman, William J. Park, Benjamin L. Sill, Matthew W. Ohland
Publisher: PEARSON
bartleby

Concept explainers

bartleby

Videos

Textbook Question
Book Icon
Chapter 19, Problem 4RQ

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. Your program should ask for the mass using an input statement and display the distance in a formatted sentence similar to the output that follows. If the user provides a mass less than zero or greater than 500 grams, your program should terminate after displaying an error message using the error function indicating that the provided

mass of ethanol is outside of the desired range of input.

Sample Input/Output (three examples)

Enter mass of ethanol [grams]: -15

Error: Mass must be between 0 and 500 grams

Enter mass of ethanol [grams]: 1000

Error: Mass must be between 0 and 500 grams

Enter mass of ethanol [grams]: l00

The distance the Microjoule traveled is 577 kilometers.

Blurred answer
Students have asked these similar questions
I have a machine theory assignment and I am adding the conditions of this assignment here as a picture. You choose the mechanism and write the necessary solutions for this mechanism.
Q41 (20 Marks) An ideal steam power plant works on regenerative cycle. Some steam (y1) is bled out between first and second stage and another portion (y2) is bled between second and third stages and feed the feed water heaters as shown in the following figures. In terms of enthalpies determine (1) y1 (2) y2 (3)the work at the first turbine (4) the work at the second turbine (5) the work at the third turbine (6) the work at the pump (FP1) (7) the work at the pump (FP2) (8) the work at the pump (CEP) (9) the heat received at the boiler (10) the rejected heat Boiler NY ST1 ST2 ST3 TI 52 Condenser CFWH OFWH 11 www 12 10 CEP FP FP
DONT USE ARTIFICIAL INTELLIGENCE

Chapter 19 Solutions

Thinking Like an Engineer: An Active Learning Approach (3rd Edition)

Knowledge Booster
Background pattern image
Mechanical Engineering
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, mechanical-engineering and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Elements Of Electromagnetics
Mechanical Engineering
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Oxford University Press
Text book image
Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:9780134319650
Author:Russell C. Hibbeler
Publisher:PEARSON
Text book image
Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:9781259822674
Author:Yunus A. Cengel Dr., Michael A. Boles
Publisher:McGraw-Hill Education
Text book image
Control Systems Engineering
Mechanical Engineering
ISBN:9781118170519
Author:Norman S. Nise
Publisher:WILEY
Text book image
Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:9781337093347
Author:Barry J. Goodno, James M. Gere
Publisher:Cengage Learning
Text book image
Engineering Mechanics: Statics
Mechanical Engineering
ISBN:9781118807330
Author:James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:WILEY
Mechanical Calculations; Author: Mometrix Academy;https://www.youtube.com/watch?v=FiQw8fpUHMY;License: Standard youtube license