Question: C++ Write your code and submit your entire Visual Studio project folders in one zipped folder. The zipped folder should be named as LastName_FirstName_Chapter 17_Assignment
C++

Write your code and submit your entire Visual Studio project folders in one zipped folder. The zipped folder should be named as LastName_FirstName_Chapter 17_Assignment Program 1 A prime number is a positive integer that is greater than 1, and it has no divisors other than 1 and itself. A composite number is any positive integer that is greater than 1 and it is not prime. Write a program that prompts the user to enter a positive integer greater than 1. The program should work like this: 1) After the user entered the input, display all of the prime numbers that are less than or equal to the number that was entered by the user. 2) Use a vector and populate it with all of the integers from 2, up through the number the user entered. 3) Use the for each function of the Standard Template Library to step through the vector. The for_each function should pass each vector element to a function object that displays the element (if it is a prime number) 4) Name your cpp file as Program 1.cpp 5) Submit a screenshot of your result console window
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
