Write a program that prompts the user to input a positive integer. He should then output a message indicating whether the number is a prime number.Note: an even number is prime if it is 2.

computer science

Description

Write a program that prompts the user to input a positive integer. He should then output a message indicating whether the number is a prime number.Note: an even number is prime if it is 2. An odd integer is prime if it is not divisible by any odd integer less than or equal to the square root of the number. Assignment Requirements: Start by analyzing the problem; use an IPO chart and pseudocode (or flowchart) to brainstorm the logic prior to start coding. Using Visual Studio code and test your program according to your pseudocode solution. Once you are satisfied with your program outcome, open a Word document and insert a cover page, include your design IPO chart, pseudocode or flowchart, C++ source code, and print screenshots of the DOS command dialog window showing your test results. Be sure to test the program at least two times to insure the program executes properly.. Insure that your C++ source code is fully documented by including source code comments. Include a “flower box”, i.e


Related Questions in computer science category


Disclaimer
The ready solutions purchased from Library are already used solutions. Please do not submit them directly as it may lead to plagiarism. Once paid, the solution file download link will be sent to your provided email. Please either use them for learning purpose or re-write them in your own language. In case if you haven't get the email, do let us know via chat support.