Create a small Java program that uses all of these concepts. This program should
ID: 3639988 • Letter: C
Question
Create a small Java program that uses all of these concepts. This program should prompt the user for an integer number and then declare an array of floating point numbers of that size the user specified. Your program should then fill in this array with random floating point numbers in the range of 0 to 100. Finally, your program should display the percentage of numbers within the array that are greater than or equal to 70. As an example of how this could be used, imagine that a class of students have taken a test and the instructor wants to know how many passed (where the random numbers represent the student grades).Explanation / Answer
Here ya go! **************************** Test.java ************************** import java.util.*; public class Test { public static void main(String [] args) { Scanner input = new Scanner(System.in); Random rng = new Random(); System.out.print("How many numbers? "); int num = input.nextInt(); float[] arr = new float[num]; for(int i=0; iRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.