Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MATLAB Loop Question: Q3. For small engines (2 cycle engines) you need to mix fuel & gas with certain ratio (50 gas: 1 oil). If

MATLAB Loop Question: image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems An Application Oriented Approach Complete Version

Authors: Michael Kifer, Arthur Bernstein, Richard Lewis

2nd Edition

0321268458, 978-0321268457

More Books

Students also viewed these Databases questions

Question

40. Which RAID levels offer the best performance?

Answered: 1 week ago

Question

Summarize the prevalence of unions.

Answered: 1 week ago