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

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

Secrets Of Analytical Leaders Insights From Information Insiders

Authors: Wayne Eckerson

1st Edition

1935504347, 9781935504344

More Books

Students also viewed these Databases questions