Question: can someone show me how to solve this? in Java please Q1 (60 marks): Create two arrays as defined below that contain the information on
Q1 (60 marks): Create two arrays as defined below that contain the information on the months of the year: months = {"January", "February", "March","April", "May", "June", "July", "August", "September", "October", "November", "December"} I days OfMonth = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31) Note that the number of days of a month x is saved in same index of x in the array days OfMonth. a. In your main, create a program that asks the user for two integer values between 1 and 12, inclusive. Using the arrays, your program should print out the name of the months and number of days in them corresponding to the numbers the user entered. Your program must REJECT any numbers that's outside this range. b. On a new line, print which month comes before the other. An example printed output for Q1 could be: "Please enter two numbers: 12 3 The months you chose are December which is has 31 days, and March which has 31 days. March comes before December
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
