Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A temperature control system outputs a control signal to a fan that is proportional to the error from a setpoint (SP) temperature value. The output

  1. A temperature control system outputs a control signal to a fan that is proportional to the error from a setpoint (SP) temperature value. The output function is:

Output = (Temp SP + 0.75)*0.01 volts (temperature in degrees F)

However, the fan never turns on until the temperature exceeds the setpoint by at least one degree, and then does not turn off again until the temperature falls at least 0.5 degrees below the setpoint.

Write the code for a console program (in either Python or C#, preferably C#) that will simulate the control system. Get the setpoint from the user. Then repeatedly ask the user to enter the current temperature, each time outputting the resulting voltage output until the user enters a blank line or other non-numeric value to end the simulation.

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_2

Step: 3

blur-text-image_3

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

MFDBS 91 3rd Symposium On Mathematical Fundamentals Of Database And Knowledge Base Systems Rostock Germany May 6 9 1991

Authors: Bernhard Thalheim ,Janos Demetrovics ,Hans-Detlef Gerhardt

1991st Edition

3540540091, 978-3540540090

More Books

Students also viewed these Databases questions