Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1)The double variables press_psia andtemp_degrees_C hold the values of 767.3000

ID: 3613399 • Letter: 1

Question

1)The double variables press_psia andtemp_degrees_C hold the values of 767.3000 and 360.0000respectively.

The integer variable time holds 1423.

Write the statements necessary to print the following to the screen(exactly as you see it below). Use conversion specifiers in theoutput statements(s):

when the time is 1423, the reactor temperature is 360.0 degrees andthe reactor pressure is 767.30 psia.
2) Give an example of when you might want to use a castoperator.
1)The double variables press_psia andtemp_degrees_C hold the values of 767.3000 and 360.0000respectively.

The integer variable time holds 1423.

Write the statements necessary to print the following to the screen(exactly as you see it below). Use conversion specifiers in theoutput statements(s):

when the time is 1423, the reactor temperature is 360.0 degrees andthe reactor pressure is 767.30 psia.
2) Give an example of when you might want to use a castoperator.

Explanation / Answer

1) #include #include using namespace std; int main() {     double press_psia = 767.3000;     double temp_degrees_C = 360.0000;     int time = 1423;     cout