Create a program that will input a positive integer from


Problem

Use pseudocode to design a suitable program to solve it. In your program, make use of subprograms or functions with parameters and arguments. Note: some of the Programming Challenges will require some reworking to be implemented in RAPTOR.

Create a program that will input a positive integer from the user. The program should check to make sure the entry is a positive integer and then check to see if the number is a prime number. A prime number is a number that is divisible only by itself and 1. The first five prime numbers are 2, 3, 5, 7, and 11; you can check this directly from the definition. If the number is prime, the program should display a message to this effect. If the number is not prime, the program should display the number and its factors. For example, if the user enters the number 3, the output should be: The number 3 is a prime number. However, if the user enters the number 6, the output should be: The number 6 is not a prime number. The factors of 6 are: 1, 2, 3, 6.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Create a program that will input a positive integer from
Reference No:- TGS02672936

Expected delivery within 24 Hours