Maurice Tutor

(5)

$15/per page/Negotiable

About Maurice Tutor

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Algebra,Applied Sciences See all
Algebra,Applied Sciences,Biology,Calculus,Chemistry,Economics,English,Essay writing,Geography,Geology,Health & Medical,Physics,Science Hide all
Teaching Since: May 2017
Last Sign in: 305 Weeks Ago, 4 Days Ago
Questions Answered: 66690
Tutorials Posted: 66688

Education

  • MCS,PHD
    Argosy University/ Phoniex University/
    Nov-2005 - Oct-2011

Experience

  • Professor
    Phoniex University
    Oct-2001 - Nov-2016

Category > Computer Science Posted 16 Jul 2017 My Price 7.00

positive divisors

Write an entire C++ program that reads a positive integer entered by an interactive user and then prints out
all the positive divisors of that integer in a column and in decreasing order. The program should allow the user
to repeat this process as many times as the user likes. Initially, the program should inform the user about how
the program will behave. Then the program should prompt the user for each integer that the user wishes to
enter.
The program may be terminated in any of two ways. One way is to have the program halt if the user
enters an integer that"s negative or zero. In this case the user should be reminded with each prompt that the
program can be terminated in that way. Alternatively, after an integer has been entered and the divisors have
been printed, the program can ask the user whether he/she wishes to enter another integer. 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.
This program is designed to exhibit the positive divisors of
positive integers supplied by you. The program will repeatedly
prompt you to enter a positive integer. Each time you enter a
positive integer, the program will print all the divisors of
your
integer in a column and in decreasing order.
Please enter a positive integer: 36
36
18
12
9
6
4
3
2
1
Would you like to see the divisors of another integer (Y/N)? y
Please enter a positive integer: -44
-44 is not a positive integer.
Please enter a positive integer: 0
0 is not a positive integer.
Please enter a positive integer: 109
109
1
Would you like to see the divisors of another integer (Y/N)? m
Please respond with Y (or y) for yes and N (or n) for no.

Would you like to see the divisors of another integer (Y/N)? n

Answers

(5)
Status NEW Posted 16 Jul 2017 04:07 PM My Price 7.00

Hel-----------lo -----------Sir-----------/Ma-----------dam----------- Â----------- Th-----------ank----------- Yo-----------u f-----------or -----------usi-----------ng -----------our----------- we-----------bsi-----------te -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill-----------

Not Rated(0)