Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems An Application Oriented Approach Complete Version

Authors: Michael Kifer, Arthur Bernstein, Richard Lewis

2nd Edition

0321268458, 978-0321268457

More Books

Students also viewed these Databases questions

Question

3. What strategies might you use?

Answered: 1 week ago

Question

3. Is there opportunity to improve current circumstances? How so?

Answered: 1 week ago