Question: MATLAB Loop Question: Q3. For small engines (2 cycle engines) you need to mix fuel & gas with certain ratio (50 gas: 1 oil). If
Q3. For small engines (2 cycle engines) you need to mix fuel & gas with certain ratio (50 gas: 1 oil). If you fill the gas in gallons and decimal of gallons (e.g. 1.23 gal) and the oil is sold by fluid ounces (fl oz) and you are limited by certain container size to mix the gas and oil (say 1 gal jug). Write a code that asks the user about the ratio (fraction of gas & fraction of oil), the size of the mixing container and outputs the amount of needed gas in gallons and the amount of needed oil in fl oz (1 gal - 128 fl oz) Write a code using for or while loop (use if, break, continue if needed) For a 1 gal jug and 50:1 gassoil ratio you need O.9804 gal of gas and 2.5098 fl oz of oil For a 5 gal jug and 50:1 gas:oil ratio you need 4.9020 gal of gas and 12.5490 fl oz of oil
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
