/*
* 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."