$29
Outcomes:
• Use a contemporary programming language and programming environment.
• Write, compile, edit, and debug simple Java programs.
• Write Java programs that use primitive numeric data types and calculations.
• Format and comment source code that adheres to a given set of formatting guidelines.
• Use a zip compression tool to combine multiple files.
Requirements: You will write four separate Java programs
1. Create a folder on your computer named program2. All four of your source code files should be created in this folder.
2. (5 points) Write a program that prints the following:
/\__/\
| |
( o o ) ( Hello, )
\ / ( I love )
\ @/ <..( Java )
U (programming.)
3. (5 points) Write a program that prints the following drawing:
+
/ \
/ \
'-+-+-'
| "-" |
| | | |
'''''''
4. (5 points) Write a program that prints a three-column list of your favorite movies. In the first column, print the movie title; in the second column, print its release date; and in the third column, print its main actor/actress.
5. (5 points) Write a program that prompts the user for a side length and then prints
1. The area and circumference of a square with that side length
2. The volume and surface area of a box with that side length
6. (5 points) Verify that your source code meets appropriate style guidelines, including comments (include name, date, section of CSE 174, and description) as well as any other guidelines described in the style guidelines document referenced earlier in this assignment.
5. (5 points) Follow these steps to submit your work:
1. Make sure the program2 folder contains the source code files (.java) for all four of your programs. It is OK if the folder also contains other files.
2. Compress the program2 folder to create a zip file. Name the zip file program2.zip (Canvas might rename the file when you upload it. That's OK.)
3. Submit only the zip file to the Canvas website.
Note: If you submit your work and decide to modify one of your programs, you need to resubmit a new zip file containing all four source code files (even if you only modified one of them). Do not rename your source code files. Do not rename the zip file. Canvas may add a number to the name of your zip file. That is fine. But you should keep all source code filenames the same as described above.