CIS355A iLab 1 ShowEscapeSequences Circle and PracticeArithmeticOperators Programs

$ 15

CIS355A iLab 1 ShowEscapeSequences Circle and PracticeArithmeticOperators Programs

In this lab you will learn how to use the Java Software Development Kit (SDK) with the Eclipse programming tool. In addition, you will create three simple Java programs.

Deliverables
Program files for each of the following three programs.
1. ShowEscapeSequences.java
2. Circle.java
3. PracticeArithmeticOperators.java
At the beginning of ALL your programs, put a comment box that includes the program name, your name, and a brief description of the program.

iLAB STEPS
STEP 1: ShowEscapeSequences (10 points)
Write a Java program named ShowEscapeSequences.java that displays the following.
I really like
CIS355A
          “Business Application Programming with Lab using JAVA”

STEP 2: Circle (15 points)
Write an application called Circle.java that inputs from the user the radius of a circle as an integer and prints the circle’s diameter, circumference, and area. Use the example program and GUI technique message dialog box shown in the Week 1 Lecture.
Use the following formulas.
diameter = 2 * radius
circumference = 2 * Math.PI * radius
area = Math.PI * radius * radius
Use the predefined constant Math.PI for your calculation. This constant is more precise than the value 3.14159. Class Math is defined in the java.lang package so you do not need to import it.

STEP 3: PracticeArithmeticOperators (15 points)
Write an application called PracticeArithmeticOperators.java that asks the user to enter two numbers. The program is to convert these numbers from String to type int and then print in a tabular format the sum, the difference, the product, and the quotient of the two numbers entered. Use the example program shown in the Week 1 Lecture. For example, if the user enters 25 and 5, the following should be displayed.
Operation Result
25 + 5 30
25 – 5 20
25 * 5 125
25 / 5 5

81 in stock

SKU: CIS355ILAB1 Category:

Description

CIS355A iLab 1 ShowEscapeSequences Circle and PracticeArithmeticOperators Programs

In this lab you will learn how to use the Java Software Development Kit (SDK) with the Eclipse programming tool. In addition, you will create three simple Java programs.

Deliverables
Program files for each of the following three programs.
1. ShowEscapeSequences.java
2. Circle.java
3. PracticeArithmeticOperators.java
At the beginning of ALL your programs, put a comment box that includes the program name, your name, and a brief description of the program.

iLAB STEPS
STEP 1: ShowEscapeSequences (10 points)
Write a Java program named ShowEscapeSequences.java that displays the following.
I really like
CIS355A
          “Business Application Programming with Lab using JAVA”

STEP 2: Circle (15 points)
Write an application called Circle.java that inputs from the user the radius of a circle as an integer and prints the circle’s diameter, circumference, and area. Use the example program and GUI technique message dialog box shown in the Week 1 Lecture.
Use the following formulas.
diameter = 2 * radius
circumference = 2 * Math.PI * radius
area = Math.PI * radius * radius
Use the predefined constant Math.PI for your calculation. This constant is more precise than the value 3.14159. Class Math is defined in the java.lang package so you do not need to import it.

STEP 3: PracticeArithmeticOperators (15 points)
Write an application called PracticeArithmeticOperators.java that asks the user to enter two numbers. The program is to convert these numbers from String to type int and then print in a tabular format the sum, the difference, the product, and the quotient of the two numbers entered. Use the example program shown in the Week 1 Lecture. For example, if the user enters 25 and 5, the following should be displayed.
Operation Result
25 + 5 30
25 – 5 20
25 * 5 125
25 / 5 5

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.