CHALLENGE 5.2.3: All values fit a category? ACTIVITY 406568.2561122.qx3zqy7 Jump to level 1 Declare a Boolean variable n

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

CHALLENGE 5.2.3: All values fit a category? ACTIVITY 406568.2561122.qx3zqy7 Jump to level 1 Declare a Boolean variable n

Post by answerhappygod »

Challenge 5 2 3 All Values Fit A Category Activity 406568 2561122 Qx3zqy7 Jump To Level 1 Declare A Boolean Variable N 1
Challenge 5 2 3 All Values Fit A Category Activity 406568 2561122 Qx3zqy7 Jump To Level 1 Declare A Boolean Variable N 1 (80.91 KiB) Viewed 36 times
CHALLENGE 5.2.3: All values fit a category? ACTIVITY 406568.2561122.qx3zqy7 Jump to level 1 Declare a Boolean variable named allMatch. Read in an input value for variable numInput. Then, read numinput integers from input, and output "All match" if all of the integers are in the range -10000 to -9000 inclusive. Otherwise, output "Value(s) out of range". Ex: If the input is 2-9500-8970, the output is: Value(s) out of range 1 #include <iostream> 2 using namespace std; 4 int main() { 5 int numInput; 6 7 9 10 11 12 13 14 15 16 17 /* Additional variable declarations go here */ /* Your code goes here */ if (allMatch) { cout << "All match" << endl; } else { cout << "Value(s) out of range" << endl; } 1 2 1 2
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply