Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help C++ please. You will do a computer program that will ask the user to enter the size of a list. The size of

Please help C++ please.

image text in transcribed

You will do a computer program that will ask the user to enter the size of a list. The size of the list will go from 1 to the size entered by the user. Your program will implement the sieve algorithm to create a list of prime numbers from 1 to size of list. The size of the list cannot be less than 2 . Each step of the list algorithm should be printed to the screen like the documentation. No boxes or strike throughs are needed. However, the composite numbers must be kept and shown that they have been eliminated. The loops used must stop when the square root of the max number has been reached. What I would like to see from you all first: 1. A well-planned approach to solving this problem. Show or indicate to the instructor that you understand the algorithm and know what will be needed to solve this program or project. 2. The project broken into smaller pieces and indicate to the instructor which piece should be solved first. 3. Then write the code, test each piece, and get it working, BEFORE starting on the next piece of the project. 4. Combine the pieces and then get the function working completely. Test the program with larger lists that the example and verify that you have the expected output

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_2

Step: 3

blur-text-image_3

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

Multidimensional Array Data Management In Databases

Authors: Florin Rusu

1st Edition

1638281483, 978-1638281481

More Books

Students also viewed these Databases questions