Lab 8 CS100M Spring 2004 Due Friday, April 2, 21:00 pm (9pm, because A4 is due at 23:59pm) We're going to have you practice writing code in Java using (hopefully) very familiar programs. Refer to the Prelims link on the course website to access the following problems and their MATLAB solutions, which will make this lab quite a bit easier. Be sure that your solutions actually work. We expect your code to compile! Unless you prefer to write additional methods, for each task put your solution in entirely in each program's main method. If you cannot remember Java syntax, please refer to the lecture notes or the course textbook. 1) Write a program Task1.java for Problem 2b on CS99's Fall 2002 Prelim 1. 2) Write a program Task2.java for Problem 3 on CS99's Fall 2002 Prelim 1. Be sure to use SavitchIn as you did in Lab 7. Instead of entering floating-point numbers (doubles), use integers. (Skim SavitchIn.java to find a useful method that reads ints.) 3) Write a program Task3.java for Problem 1 on CS99's Fall 2001 Prelim 2. Be sure to prompt the user for an int instead of double, just as you do in Task2. 4) Zip your files together in e8.zip and submit on CMS.