The program should have an array of 12 structures to hold weather data for an entire year. When the program runs, it should ask the user to enter data for each month. The program then should display month-wise min., max. and average temperatures and rainfalls in a table-like format. In addition, it should display average min., average max. and average mean temperature of the entire year. Similarly, it should display average min., average max. and average mean rainfall of the entire year. The following checks should be implemented for valid input. • Temperature range: -70 to +60 C • Rainfall range: 1mm to 25mm • Min. value <= Average value <= Max value
Write a program that uses the following three structures to store the weather data for a particular month:
Write a program that checks how many possible outcomes there can be from numbers 0 to 31 & gives all the possible outcomes
Write a program that checks the top 3 most likely outcome of numbers from 0 to 31
Given an array (myArray), write a JS program to find the index of the first boolean value in myArray using "findIndex()" method. Note: If the value is not present in the array, findIndex() returns "-1".Input :The first line of input will contain an array (myArray).Output:
The output should be a single line containing the index or -1.
input1:[ 'a', true, 'v', 5 ]
output1:1
input2:[ 'Oxygen', 'Nitrogen', 'Carbon', 'Hydrogen' ]
output2:-1