Question: In C++ please! Write a program that reads up to 25 positive numbers from the user and stores them in an array. The user may

 In C++ please! Write a program that reads up to 25

In C++ please!

Write a program that reads up to 25 positive numbers from the user and stores them in an array. The user may indicate completion by entering a -1. Once the user is finished entering all their numbers your program must search print only the unique numbers the user has entered. It should also print out the number total number of numbers entered along with the number of unique numbers entered. You are not required to use specific functions-however using them wisely will make this assignment MUCH easier Here is a sample of the input and output for your program. The user has entered text in red (bold) and the program has printed out text in black. Enter a number: 6 Enter a number: 17 Enter a number: 5 Enter a number: 8 Enter a number: 5 Enter a number 18 Enter a number: 6 Enter a number: 23 Enter a number:-1 > The numbers you entered were: 6, 17, 5, 8, 5, 18, 6, 23. > The unique numbers are: 6, 17, 5, 8, 18, 23 > You entered 8 numbers, 6 unique. > Have a nice day

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!