InLab05 - In-Lab Assignment #5: Arrays (Ch...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 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 3to 39. Store them in an array using a loop, .length, and Math.pow()....
View Full Document

Ask a homework question - tutors are online