Question: Code in C++ Problem-3 (6 points): Write a complete CH+ program that prompts the user to enter an integer number and reads that number from

Code in C++
Code in C++ Problem-3 (6 points): Write a complete CH+ program that

Problem-3 (6 points): Write a complete CH+ program that prompts the user to enter an integer number and reads that number from the keyboard. - If the entered number is negative, your program should print the following message: "The program doesn't accept negative numbers" and stop the execution. - If the entered number is positive and less or equal 100 (between 0 to 100), the program should check and display whether the number is divisible by 4 or not. Also, your program must display quotient and remainder. - If the entered number is greater than 100 , your program should print square root of the given number. Here is a sample run: 1) Enter an integer number to see if the given number is divisible by 4 or not: 16 The program does not accept negative numbers 2) Enter an integer number to see if the given number is divisible by 4 or not: 16 The given number (16) is divisible by 4 Quotient: 4 and Remainder: 3) Enter an integer number to see if the given number is divisible by 4 or not: 15 The given number (15) is not divisible by 4 Quotient: 3 and Remainder: 3 4) Enter an integer number to see if the given number is divisible by 4 or not: 121 The entered number is greater than 100 and square root of the number is 11

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!