In-Lab Assignment #5: Arrays (Ch 6)Instructions:Select any problems for a maximum of 10 points (no extra credit). Collaboration is permitted. Students present during lab have until midnight tomorrow to submit their files. Submit your .java files as instructed by your TA.1.(4 pts) Write a program to display the Fall semester holiday schedule. Create three arrays to contain the data in the table below and display the data using a loop as shown on the right. Your loop should use .length to determine how many lines to print.MonthDayHolidayOutput93Labor Day9/3:Labor Day10/22: Fall Break10/23: Fall Break11/22: Thanksgiving11/23: Thanksgiving1022Fall Break1023Fall Break1122Thanksgiving1123Thanksgiving2.(6 pts) Write a program that lets the user guess a power of 3. Your algorithm should work as follows:a.The first ten powers of 3 are 30to 39. Store them in an array using a loop, .length, and Math.pow(). The index number of each element should be the exponent of the value. For example, 39should have an array index of 9.
This is the end of the preview.
access the rest of the document.