Concept explainers
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.
Want to see the full answer?
Check out a sample textbook solutionChapter 18 Solutions
Thinking Like an Engineer: An Active Approach, Student Value Edition Plus MyLab Engineering with Pearson eText - Access Card Package (4th Edition)
- Important instruction: These questions use the last three-digit value (L3D) of individual student matrix numbers. For example, if the matrix number is CD180264 then the L3D value is 264 (since the last three digits is 264). Some data require multiplication of the L3D value, for example, 10(L3D) means 10 x L3D subject name is INDUSTRIAL ENGINEERINGarrow_forwardHi, I need help with the first part of the problem below because I'm very confused about how P1 and P2 should be calculated. If you look at my notes to solve the problem there is already a formula in place as I always thought the Patm should also be multiplied by the Area in the numerator, but it's not if I look at this specific tutorial solution given by my course but it's not explained why. I have done a while ago a very similar problem with using that formula in my notes and it gave me the right results, but it's not working for this one. Could you please help me understand why as I have a test coming soon? Figure Q3 (see image attached) shows a cylinder and pistonenclosing air, the movement of the pistonbeing restrained by a compression spring ofstiffness 20 kN/m. The air is heated andexpands, the piston moving 0.3 m. Thefree length of the spring is 1.0 m.Calculate the work done by the air duringthe process.If the pressure , volume and internal energyof air are related by the…arrow_forwardHi. I am trying to practice this problem using a checker online, but everytime I recalculate my answer it always says it's incorrect. So far I have calculated and tried to input the following values: 0.0342 m3/s, 0.0358 m3/s, 0.04277 m3/s, and 0.0555 m3/s but it always keeps saying they are incorrect. Please help show me the correct steps on how to get the correct answer as I am trying to learn this process. Thank you!arrow_forward
- after solving, pls explain why u got the answer really need an explanation thank u so much pls explain in sentences. will ratearrow_forwardCompletely solve and box the final answer. Write legibly 7. Calculate the specific heat of a substance in BTU/lbm-ºR if 17.8 pounds can raise its temperature from 71.4 ºF to 118.5ºF in a period of 1.12 minutes. The computed amount of heat applied to it is 4.79 HP.arrow_forwardHi. I am trying to practice this problem using a checker online, but everytime I recalculate my answer it always says it's incorrect. So far I have calculated and tried to input the following values: 1 hp, 1.01 hp, and 0.8 hp but it always keeps saying they are incorrect. Am I missing a sign change? (Should the answer be negative?) Or am I solving this incorrectly and getting the wrong value each time? Please help show me the correct steps on how to get the correct answer as I am trying to learn this process. Thank you!arrow_forward
- please make your handwriting clear and please please please make sure your answer is correct and solve it step by step and don't forget FBD and everything relation on the question Please dont take the answer from anywepsite thank you very mucharrow_forwardPlease include a kinamatic diagram (for velocity) Please DO NOT solve this using velocity analysis (cartesian vector analysis). I would like it to be solved using scalar method. We dont use 3D in this course. We only use scalar analysis for the relative velocity equation as requested in the question (writing the x and y components of the equation and solving the equations for the unknowns). Below I have attached a sample question with solution in order to get an idea on how to use the scalar method to solve my question. I would like question this to be solved in a similar way. Thank you for your understanding. If you can solve it as soon as possible that would be great and I will give you a thumps up and positive feedback :)arrow_forwardPLEASE SHOW SOLUION STEP BY STEP WITH UNITS. PLEASE ANSWER IT IN 30 MINS. TOPIC: THERMODYNAMICS - PROCESSES OF GASESarrow_forward
- Briefly explain each of the following block (one sentence or less)a) G96 S200 M03b) G00G42X20.0Z2.0c) G92 X59.0 Z-50.0 R-2.5 F0.25 d) G72 P10 Q20 U1.0 W0.5 F0.2arrow_forwardHello pls solve it fast and correctly, you can verify the answer by looking at the third answer which is correct so u can verify and pls do all the three parts and fast I'll ratearrow_forward71.7 is being marked wrong in McGraw Hill homework. I thought I had done it right with putting 86.03 but that is wrong also. I'm not trying to just find the answer, trying to find how to do this. Could there be a different number than 71.7? Where does the μk=0.20 come into the equation?arrow_forward
- Elements Of ElectromagneticsMechanical EngineeringISBN:9780190698614Author:Sadiku, Matthew N. O.Publisher:Oxford University PressMechanics of Materials (10th Edition)Mechanical EngineeringISBN:9780134319650Author:Russell C. HibbelerPublisher:PEARSONThermodynamics: An Engineering ApproachMechanical EngineeringISBN:9781259822674Author:Yunus A. Cengel Dr., Michael A. BolesPublisher:McGraw-Hill Education
- Control Systems EngineeringMechanical EngineeringISBN:9781118170519Author:Norman S. NisePublisher:WILEYMechanics of Materials (MindTap Course List)Mechanical EngineeringISBN:9781337093347Author:Barry J. Goodno, James M. GerePublisher:Cengage LearningEngineering Mechanics: StaticsMechanical EngineeringISBN:9781118807330Author:James L. Meriam, L. G. Kraige, J. N. BoltonPublisher:WILEY