Write a c++ program that asks a user to input for a positive number let’s say N. The program then asks the user for N number of positive integers. The program is to determine the largest value among the numbers and the number of times it occurred.
For example, if the user enters 5, your program should ask 5 numbers, 4 2 5 1 5 and display Highest: 5 and its Occurrence: 2.
Input: 5 Output:
4 2 5 1 5 Highest:5 Occurance: 2
Input: 10 Output:
5 2 15 3 9 15 8 7 3 1 Highest: 15 Occurance: 2
Answers
Answered by
3
Explanation:
Write a c++ program that asks a user to input for a positive number let’s say N. The program then asks the user for N number of positive integers. The program is to determine the largest value among the numbers and the number of times it occurred.
For example, if the user enters 5, your program should ask 5 numbers, 4 2 5 1 5 and display Highest: 5 and its Occurrence: 2.
Input: 5 Output:
4 2 5 1 5 Highest:5 Occurance: 2
Input: 10 Output:
5 2 15 3 9 15 8 7 3 1 Highest: 15
ooops
Answered by
31
Answer:
Rotatory motion: if the body moves about a fixed axis without changing the radius of its motion, it is said to be rotatory motion. Examples: a spinning wheel.
Similar questions
Social Sciences,
2 months ago
Math,
4 months ago
English,
4 months ago
Math,
10 months ago
Math,
10 months ago