Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please make sure that the code is in C++ and provide a document of the output Thank you ^^ An abundant number is a natural

Please make sure that the code is in C++ and provide a document of the output Thank you ^^

image text in transcribed

An "abundant" number is a natural number the sum of whose proper divisors is greater than the number itself. The "proper" divisors of a number are the factors of the number that are less than the number. A "natural" number is {1,2,3} FOR EXRMPIE : THE NUMBER 8 IS NOT AN ABUNDANT NUMBER The proper divisors of 8 are 1,2 , and 4 The sum of the proper divisors is 1+2+4 or 7 which is less than the number 8 . There are 3 proper divisors for the number 8 THE NUMBER 12 IS AN ABUNDANT NUMBER The proper divisors of 12 are 1,2,3,4, and 6 The sum of the proper divisors is 1+2+3+4+6 or 16 which is greater than the number 12. There are 5 proper divisors for the number 12 Write a program which finds and writes all the abundant numbers which are smaller or equal to the smallest natural number that has exactly six proper divisors. For each of the abundant numbers that it finds, the program output should include: - that particular abundant number, - the list of its proper divisors, - the sum of those divisors, - the total number of proper divisors - the appropriate messages. Finally, print out the natural number that has exactly six proper divisors. As usual, your program must be written in good style and include appropriate documentation. Please submit the .cpp files and the output file for grading

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

Conceptual Database Design An Entity Relationship Approach

Authors: Carol Batini, Stefano Ceri, Shamkant B. Navathe

1st Edition

0805302441, 978-0805302448

More Books

Students also viewed these Databases questions