arrays in c++
View Single Post
To execute inputting in a 1 dimensional array using recursion, and check if the input already occurs.
To implement counting and displaying of the prime numbers and numbers with
Procedure:Write this program in C++
variable of array composed of 10 elements and initialize all the contents into zero.
Ask for 10 inputs in which each input
<65000, then check the occurences of
in the array, if it already occurs, do not place it in the array, hence ask for another input on that same index location.
When all the 10 elements of the array are already filled with 10 values for each index, Implement the screen 1 below.
On Option 1, count and display all the prime numbers contained in the array. Goto # 7 if the user would still like to continue.
On Option 2, count and display all the numbers contained in the array with the factor
that you'll input, wherein 2<
65000. Goto # 7 if the user would still like to continue.
If neither 1, nor 2 is pressed, repeat procedure 3.
Prompt the user with (Y/y or press any key to exit) if s/he would like to continue or not.
Screen # 1:
1. Count and display the number of prime numbers
2. Count and display the number of with
Enter and option (either 1 or 2):
help me please!!!!!