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 Learning Approach (4th Edition)
- A Water Balloon Battle. You are launching water balloons at a rival team using a large slingshot. The other team is set up on the opposite side of a flat-topped building that is 30.0 ft tall and 50.0 ft wide. Your reconnaissance team has reported that the opposition is set up 10.0 m from the wall of the building. Your balloon launcher is calibrated for launch speeds that can reach as high as 90 mph at angles between 0 and 85.0° from the horizontal. Since a direct shot is not possible (the opposing team is on the opposite side of the building), you plan to splash the other team by making a balloon explode on the ground near them. If your launcher is located 55.0 m from the building (opposite side as the opposing team), what should your launch velocity be ((a) magnitude and (b) direction) to land a balloon 5.0 meters beyond the opposing team with maximum impact (i.e. maximum vertical speed)? (a) Number (b) Number IN IN Units Unitsarrow_forward2. There were 42 mangoes in each crate. 12 such crates of mangoes were delivered to a factory. 4 mangoes were rotten and had to be thrown away. The remaining mangoes were packed into boxes of 10 mangoes each. Write a numerical expression in MATLAB syntax to represent this situation and then find how many boxes of mangoes were there? OFocus 4:20 AM 28°C Mostly clear 3/26/2022 LG CVENUENS THANOS BOBBLEHEAD AMANLANTE A ON CABIA ANn POCKET YOP! AVENGES KEYCHAIN INFINITY WAR Handy Fan THANOS BOBBLE HEAD IGENA ERANLIA P COs CA ANarrow_forwardYou own a wheat warehouse with a capacity of 20,000bushels. At the beginning of month 1, you have 6,000 bushels of wheat. Each month, wheat can be bought and sold at theprice per 1000 bushels given in Table 46.The sequence of events during each month is as follows:a You observe your initial stock of wheat.b You can sell any amount of wheat up to your initialstock at the current month’s selling price.c You can buy (at the current month’s buying price) asmuch wheat as you want, subject to the warehouse sizelimitation.Your goal is to formulate an LP that can be used to determine how to maximize the profit earned over the next 10monthsarrow_forward
- Mechanical Engineering The following table shows the kinetic energy and potential energy according to the speed of an object descending along a frictionless rain surface. What is the potential energy when the speed is 3/2v ? (It satisfies energy conservation) velocity kinetic energy 1500J potential energy V 3/2 * v 2v 1. 1400 J 2. 1000 J 3. 800 J 4. 600 J Please solve step by step. Thanks in advance! 1600 Jarrow_forwardPart A The a – s graph for a rocket moving along a straight track has been experimentally determined. The rocket starts at s = 0 when v = 0. (Figure 1) Determine its speed when it is at s = 85 ft Express your answer to three significant figures and include the appropriate units. HA ? Value Units v = Submit Request Answer Part B Determine its speed when it is at s = 150 ft. Use Simpson's rule with n = 100. Express your answer to three significant figures and include the appropriate units. HA Figure v = Value Units a (ft/s?) Submit Request Answer < Return to Assignment Provide Feedback a = 5 + 6(y5 - 10)3 s (ft) 100 P Pearsonarrow_forwardPlease provide equations that you are using so I can follow along and learn how to do this and include conversions and units. In Jamestown, NY, a coal power plan consumes coal at a rate of 80 tons/hr. When coal burns, it generates approximately 30,000 kJ for every kg of coal burned. The cooling course for the plant is the nearby Chadakoin River nearby and, by code, the power plant cannot reject more than 13.19 x 109 MJ into the river annually. Determine the maximum average power output of this plant and it's maximum thermal efficiency. To check your work, enter the efficiency, as a decimal, in the box provided.arrow_forward
- .com question/22816263 rch for an answer to any question... it works For parents For teachers Honor code 16 nours agO• Chemistry Hign Scnoo1 You are currently in a stable orbit 9000 km (1km=1000m) from the center of planet Proxima Centauri B. According to the calculations done by NASA, Planet Proxima Centauri B has a mass of approximately 7.6x10^24kg. Based on fuel consumption and expected material aboard the ship, your colony ship lander has a mass of approximately 1.1x10^5 kg. 1. Using Newton's Law of Universal Gravitation, determine what the force of gravity on your ship at that orbit be using the early measurements 2.Using Newton's second law determine the acceleration of your lander due to gravity 3.Upon arrival, you measure the actual force of gravity to be 6x10^5 N,which ic difforent from vourcalclated vauein cuection 1 ldentify 2cnocific e to searcharrow_forward-) Prof. K. took a Tesla Model S for a test drive. The car weighs 4,500 lb and can accelerate from 0 to 60 mph in 2.27 seconds. The car has a 581 kW battery pack. Help Prof. K. determine the efficiency of the vehicle [Ans. to Check 55.5%]. Note: The equation we learned in class P = F v ONLY APPLIES if velocity is constant. Use the steps below to guide your thought process. Develop a symbolic relationship for the force required to move the car forward. Compute the work done by the car (in Ib-ft). Calculate the power required to do this work (in kW). 2) After playing a game of pinball, you decide to do some calculations on the launching P Type here to search 9:09 AM 33°F Mostly sunny 3/7/2022 Esc DII PrtScn FB Home F9 End F10 PgUp PgDn Del F4 F12arrow_forwardAs we explained in earlier chapters, the air resistance to the motion of a vehicle is something important that engineers investigate. The drag force acting on a car is determined experimentally by placing the car in a wind tunnel. The air speed inside the tunnel is changed, and the drag force acting on the car is measured. For a given car, the experimental data generally is represented by a single coefficient that is called drag coefficient. It is defined by the following relationship: F, where air resistance for a car that has a listed C, = drag coefficient (unitless) measured drag force (N) drag coefficient of 0.4 and width of 190 cm and height of 145 cm. Vary the air speed in the range of 15 m/sarrow_forwardNewton’s 2nd Law Lab (Modeling friendly lab) Go to the PhET simulation Forces & Motion. https://phet.colorado.edu/sims/html/forcesandmotionbasics/latest/forcesandmotionbasics_en.html Select “Acceleration” Click to show Forces, Sum of Forces, Values, Mass, and Acceleration. There are two experiments for this activity – make sure you include both. Experiment #1: Acceleration vs. Force In this lab you will determine the relationship between acceleration and net force. Choose a mass at the beginning, and keep it constant for this entire experiment. Set the friction to zero. This will make your Applied Force equal to the net force. Record data for five different values of Applied Force. Graph Acceleration vs. Net Force. Graph this in Google sheets(you want a line graph - it should only have one line). Make sure that Applied Force information is used as the x value Make sure that Acceleration information is used as the y value Add a trendline – see what fits best –…arrow_forwardA certain type of ship has two tanks in its engine. Each tank contains a different type of fuel. when the engine turns on, the same amount of energy is transferred out of both fuels. why did fuel 1 change pahse, but fuel 2 stayed the same. what happened to molecules of both fuelsarrow_forwardPlease provide equations that you are using so I can follow along and learn how to do this. In Jamestown, NY, a coal power plan consumes coal at a rate of 80 tons/hr. When coal burns, it generates approximately 30,000 kJ for every kg of coal burned. The cooling course for the plant is the nearby Chadakoin River nearby and, by code, the power plant cannot reject more than 13.19 x 109 MJ into the river annually. Determine the maximum average power output of this plant and it's maximum thermal efficiency. To check your work, enter the efficiency, as a decimal, in the box provided.arrow_forwardarrow_back_iosSEE MORE QUESTIONSarrow_forward_ios
- 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