Question: Write an entire C + + program that reads an integer of your MATRIC NUMBER entered by an interactive user. Prints out all the NUMBER
Write an entire program that reads an integer of your MATRIC NUMBER entered by an interactive user.
Prints out all the NUMBER entered in the output terminal
From the number you entered, add all the numbers and divide with one of the numbers where that number is from your MATRIC NUMBER.
Note: At this stage, you can either enter the number manually or automatically from the entered number
The program should allow the user to repeat this process as many times as the user likes.
In this case, when the user accidentally enters a zero or negative integer to have its divisors calculated, the program should inform the user that the input is unacceptable and should allow the user to try again and again!
Here is an illustration of how the program and the interactive user might interact.
The user's responses to the program are shown in bold italics.
Please enter your matric number:
Would you like to see the divisors of another integer
Please enter a positive integer:
is not a positive integer.
Please enter a positive integer:
is not a positive integer.
Please enter a positive integer:
The result of addition and division is:
Would you like to see the divisors of another integer YN
Please respond with or for yes and or for no
Would you like to see the divisors of another integer
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
