Answer to Question #59395 in Java | JSP | JSF for Peter

Question #59395
Class Month has the followin instance variables:

a variable ‘name’ to store name of the month
an int array days can hold 28 30 or 31 values. Days used to store max daily temps
Constructor to specify size array & month name
setDays to specify size of array
setMonth stores name of month in name variable
getMonth to return name of the month
setTemps to allow all temps for that month to be entered into the days array
getTemp returns temp on a specified day

App program:

Creates an array of Month objects called Year & assigns appropriate names & num of days to each month
Create loop in the program to allow the temps for Jan & Feb to be entered
Display temp on 3rd Jan & 15th Feb
Write a method to display the highest temp in the 2 months & date on which it occurred
Find avg temp in a specified month
Find range of temps in a specified month (highest – lowest temp)
Find number of days in a specified month that the temp was higher than a specified value
1
Expert's answer
2016-04-22T09:06:06-0400
The answer to the question is available in the PDF file https://www.assignmentexpert.com/https://www.assignmentexpert.com/homework-answers/programming-answer-59395.pdf

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS