Question: / / Program Pressure prints an appropriate message based on a / / pressure reading input from the keyboard #include using namespace std; int main

// Program Pressure prints an appropriate message based on a
// pressure reading input from the keyboard
#include
using namespace std;
int main()
{
int pressure;
cout << "Enter an integer pressure reading."
<<" Press return. "<< endl;
cin >> pressure;
/* FILL IN Statement(s)*/
return 0;
}
Exercise 4.
Insert a statement that writes the following warning to the screen if the pressure reading is greater than
100.
Warning!! Pressure reading above danger limit.
Run your program using the following values as input: 5,75,99,100,110,195. Show the statement you
added and results for the input values in the report.
Exercise 5.
Change the program in Exercise 4 so that the warning message will be displayed for pressure greater than
100, otherwise the following message will be displayed:
Everything seems normal.
Run your program using the values in Exercise 4. Show the statements you added and the results for the
input values in the report.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!