subject

Write a program that allows users to enter a series of numbers and displays frequency of each number. Implement the following: 1. The user can enter a maximum of 20 numbers or enter-1 to end the series 2. Only numbers between 0..9 is allowed (or -1 ); if the user enters a number outside the valid input, inform the user and ask them to enter a valid number 3. Display the frequency of each number in the output. If the user input is 0,0,1,2,2,4,5,8,8,8,9,9, -1 the output will be:

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:30
Ou listened to a song on your computer. did you use hardware or software?
Answers: 2
question
Computers and Technology, 23.06.2019 07:10
If you want to import a picture into a dtp application, what must you do first? draw an image frame. import text. open the folder containing the file. select get image… from the windows menu.
Answers: 2
question
Computers and Technology, 23.06.2019 15:30
The processing of data in a computer involves the interplay between its various hardware components.
Answers: 1
question
Computers and Technology, 24.06.2019 11:20
Print "censored" if userinput contains the word "darn", else print userinput. end with newline. ex: if userinput is "that darn cat.", then output is: censoredex: if userinput is "dang, that was scary! ", then output is: dang, that was scary! note: if the submitted code has an out-of-range access, the system will stop running the code after a few seconds, and report "program end never reached." the system doesn't print the test case that caused the reported message.#include #include using namespace std; int main() {string userinput; getline(cin, userinput); int ispresent = userinput.find("darn"); if (ispresent > 0){cout < < "censored" < < endl; /* your solution goes here */return 0; }
Answers: 3
You know the right answer?
Write a program that allows users to enter a series of numbers and displays frequency of each number...
Questions
question
Mathematics, 26.06.2019 17:30
Questions on the website: 13722363