Answer to Question #48978 in Java | JSP | JSF for nada

Question #48978
Write a java program to execute the following operations: 1- Create two arrays as follows: String season[]={"Summer","Winter","Autumn","Spring"} Floattemp[]={26.8f,44.6f,12.9f,10.4f,50.1f,45.0f,33.7f,39.0f}; 2- By using (for loop) and ( if statement) check each temperature in temp[] array as the following condition:  If season=Summer and temp>40 print the following message: Ex: " 45.0 is the temperature in summer season"  If season=Winter and temp<20 print the following message: Ex: " 12.9 is the temperature in winter season"  If season=Autumn and temp>20 and temp<30 print the following message: Ex: " 26.8 is the temperature in Autumn season"  If season=Spring and temp>30 and temp<40 print the following message: Ex: " 33.7 is the temperature in spring season"
Expert's answer

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 first!

Leave a comment

Ask Your question

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS
paypal