Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

/ / 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

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

Database Concepts

Authors: David Kroenke, David J. Auer

3rd Edition

0131986252, 978-0131986251

More Books

Students also viewed these Databases questions

Question

What are three industries that have joint products?

Answered: 1 week ago