Write a script that does the following: 1- Ask the user for a numerical input (‘Please Enter a Number: ‘), then generate a random vector contains real numbers were the number of elements equal to the input and make the random numbers fixed from. For example, if the user enters 5, the code will generate a vector with 5 elements. Then fix the numbers by multiplying it from 100. 2- Make a loop to run through the vector and finds all the numbers between 60 – 80 and its places and prints them out. For Example, ‘The number is 64 its place is 4’.

/*
* Code written in java
* Just copy and paste the code to run
*/
import java.util.Random;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int size;
System.out.print(“Enter the number of elements : “);
size = sc.nextInt();
//create a vector of real numbers of size entered by user
double[] a = new double[size];
//now populate the vector with random real numbers in the range 0-1
Random rand = new Random();
for(int i=0; i= 60 && a[i]
 
“Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!”

What Students Are Saying About Us

.......... Customer ID: 12*** | Rating: ⭐⭐⭐⭐⭐
"Honestly, I was afraid to send my paper to you, but splendidwritings.com proved they are a trustworthy service. My essay was done in less than a day, and I received a brilliant piece. I didn’t even believe it was my essay at first 🙂 Great job, thank you!"

.......... Customer ID: 14***| Rating: ⭐⭐⭐⭐⭐
"The company has some nice prices and good content. I ordered a term paper here and got a very good one. I'll keep ordering from this website."

"Order a Custom Paper on Similar Assignment! No Plagiarism! Enjoy 20% Discount"