Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Introduction Your program will calculate the resultant saturated pressure of our mythical vessel of special fluid and air to a global variable vesselPressPsi, from a

Introduction

Your program will calculate the resultant saturated pressure of our mythical vessel of special fluid and air to a global variable vesselPressPsi, from a temperature (degrees Fahrenheit, global variable vesselTempFahr). This temperature represents an electrical sensor input that will be converted to engineering units. [MDV1]

Requirements

This homework code must loop forever calculating the resultant saturated pressure of our mythical vessel of special fluid and air to a global variable; vesselPressPsi, from a non-linear single-ended analog sensor (local identifier signalAnalogVdc). To compute vesselPressPsi:

Use a random number limited between 0-5, this will represent the volts direct current (VDC), signalAnalogVdc measured from the sensor for a specific temperature.

Use Appendix B tables to convert voltage to temperature (degrees Fahrenheit, global variable vesselTempFahr).

Convert temperature to degrees Celsius (local variable vesselTempCelsius)

Use Appendix A tables to convert temperature to vesselPressPsi[MDV2]

Appendix A

Temperature - t - (oc)

Pressure - pv - (psia, lb/in2)

50

0.1317

30

0.1881

60

0.2563

70

0.3631

80

0.5069

90

0.6979

110

0.9493

130

1.692

140

2.888

160

4.736

190

7.507

220

11.52

240

14.69

250

17.19

260

24.97

270

35.43

280

49.20

350

67.01

400

134.60

450

247.26

500

422.55

575

680.86

650

1045.43

700

1543.20

800

2308.40

1742

3194.30

Appendix B

Voltage VDC

Temperature (oF)

1.2

45

1.5

85

1.8

120

2.1

160

2.4

250

2.7

340

3.0

500

3.4

600

3.8

1024

4.4

1542

4.8

1800

* Note: PLEASE WRITE THE CODE IN microsoft word document NOT BY HAND

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

Data And Information Quality Dimensions, Principles And Techniques

Authors: Carlo Batini, Monica Scannapieco

1st Edition

3319241060, 9783319241067

More Books

Students also viewed these Databases questions

Question

What actions might have prevented Bobs resignation?

Answered: 1 week ago

Question

=+2 Why did OBI create Centers of Excellence?

Answered: 1 week ago