Copy the basic structure of time_flies and model one cylinder of a simple combustion engine. Modify the

Question:

Copy the basic structure of time_flies and model one cylinder of a simple combustion engine. Modify the body of the thread function to represent physical actions using simple delays. Use std::cout statements to indicate progress.

Suggested activities include opening the intake, adding fuel and air, closing the intake, compressing gas, applying voltage to the spark plug, igniting fuel, expanding gas, opening the exhaust valves, closing the exhaust valves. Use delays representative of 800 RPM. Use time variables with appropriate names. Compile and run.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Systemc From The Ground Up

ISBN: 978-0387292403

1st Edition

Authors: David C Black ,Jack Donovan

Question Posted: