Question: 12. Write a Java program named RandomNumber that generates 25 random integer numbers (their range must be between 1 and 100 inclusive) and stores them
12. Write a Java program named RandomNumber that generates 25 random integer numbers (their range must be between 1 and 100 inclusive) and stores them in an array The program should find and display how many numbers are between 25 and 75 inclusive. For example, if the random numbers are:965 89 32 54 70 35 36 47 4 19 38 83 15 46 47 46 18 28 41 64 67 20 23 54 Then the program should display: There are 15 numbers between 25 and 75 13. Write a Java program named Bonus that asks the user to enter 10 real numbers and store them in an array. Then it should ask the user to enter an integer number (x) using an appropriate message. Then it should add the value of (x) to each element in the array. Finally, it should print the new elements of the array. The user should enter ten real numbers and the integer number in response to messages. Sample run of the program: Enter 10 real numbers: 5.56-43 10 70 12 -10 11 Enter the bonus amount 10 Array elements after adding the bonus: 15.5 16.0 6.0 13.0 20.0 17.0 10.0 22.0 0.0 21.0 14. Write a Java program named Grade that asks the user to enter 5 marks of a student and store them in an array Then it should compute and display the average mark Then it should find and display the highest mark. Sample run of the program: Enter 5 marks (a mark is between 0 and 100% 85 40 69 39 70 The average mark is: 60.6 The highest mark is: 85.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
