Question: Write a program that uses one dimensional array to store the highest temperatures for each month of the year. The program should output the highest

Write a program that uses one dimensional array to store the highest temperatures for each month of the year. The program should output the highest temperature of the year with name of the month..

This is for Java. I know how to Declare the String for the Months, but it is the rest I am getting stuck on.

public class App { public static String months[]; public static void main ( String[] args ) { months = new String[ 13 ]; months[ 0 ] = null; months[ 1 ] = "January"; months[ 2 ] = "February"; months[ 3 ] = "March"; months[ 4 ] = "April"; months[ 5 ] = "May"; months[ 6 ] = "June"; months[ 7 ] = "July"; months[ 8 ] = "August"; months[ 9 ] = "September"; months[ 10 ] = "October"; months[ 11 ] = "November"; months[ 12 ] = "December";

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!