Write a snippet code to solve the following. Assume that you have an array of integers call
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a snippet code to solve the following.
Assume that you have an array of integers call arr. ( no need to declare it or fill it up, assume it is already there). And, arr is of size SIZE.
You will read one number int num from the user.
You will count how many times num is found in the array
AND
You will count how many numbers are larger than num.
Please label your output properly. Example: "num was found x times and there are ____ numbers larger than num"
Do not worry if you miss any semi-colons but please indent so your code is easy to read.
To save time, you may use SOP instead of System.out.println.
Related Book For
Fundamentals of Financial Management
ISBN: 978-0324597707
12th edition
Authors: Eugene F. Brigham, Joel F. Houston
Posted Date: