Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4.3.4: While loops with numbers. Read integers from input until an integer is read that is not in the range -40 to 35, both exclusive.

4.3.4: While loops with numbers.

Read integers from input until an integer is read that is not in the range -40 to 35, both exclusive. For each integer read that is in the given range, output the integer followed by " is accepted". Then, output the integer read that causes the reading to stop followed by " is rejected". End each output with a newline.

Ex: If the input is -36 -30 -50 -33 -32 -37 -34, then the output is:

-36 is accepted

-30 is accepted

-50 is rejected

#include using namespace std;

int main() { int inputData;

/* Your code goes here */

return 0; }

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 Management Databases And Organizations

Authors: Richard T. Watson

6th Edition

1943153035, 978-1943153039

More Books

Students also viewed these Databases questions

Question

Have issues been prioritized?

Answered: 1 week ago