Homework 2
Introduction to Computer Programming

Due the 3rd week of the semester (see the course calendar) 15 minutes before the end of your laboratory section.

• Read Chapter 2 and 3 in An Introduction to Programming Using Java.
• Answer the following questions. Follow the general homework directions.
• Use the Beanshell template for the written portion of the program. Turn in all files associated with the solution of the programming problems. Use the following Beanshell comments. Your programs will be graded using the Beanshell rubric.
• (79% max) H1.3 (H = Homework, 1 = Chapter 1, and .1 = first problem)
• (89% max) 79% problems and H2.2
• (100% max) 89% problems and H2.A: Assume there are two integers ($x$ and $y$) in the bsh workspace. Print out the values of $x$ and $y$. Calculate the quotent of $x/y$. Calculate the remainder of $x/y$ without using the Java modulus operator. Calculate the decimal value of $x/y$. Round $x/y$ to the nearest integer.
• Complete Homework 2 Effort survey on D2L.