Print This Page
iLab 1 of 6: Environment Setup
Connect to the iLab here.
Submit your assignment to the Dropbox located on the silver tab at the top of this page.
(See Syllabus Due Dates for Assignments & Exams for due dates.)
i L A B O V E R V I E W
Scenario and Summary
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.
Example:
/***********************************************************************
Program Name: ProgramName.java
Programmer’s Name: Student Name
Program Description: Describe here what this program will do
***********************************************************************/
How to submit your assignment:
1. The programs MUST have the same names as the assignment title (ShowEscapeSequences, Circle, and PracticeArithmeticOperators).
2. Each Java source file (*.java) must include a corresponding class file (*.class) program as evidence of success.
3. In addition to the program source code files and byte code files, put all your program source code files and screen shots of your program output files into a Word document.
4. You must use a zipped folder to send your weekly assignment to the Dropbox. Do not send subfolders within your zipped folder. Place ALL of the .java and .class files for the week into the one zipped folder. The zip folder should be named: CIS355A_YourLastName_iLab_Week1, and this zip folder will contain all the weekly programming assignments.
i L A B S T E P S
Environment Setup (required, but not graded)
The iLab has all the software that you will need for this course, but many students prefer to download and install the software on their own computers. If you choose to do this, you will need to download and install the following:
• Java Standard Edition: You must install version 5 or later. This is also called Java SE, Java 5 SE, JDK 5.x, or JSDK 5.x. This must be installed first. You can download Java free of charge fromhttp://www.oracle.com/technetwork/java/index.html.
You should also review the following tutorials.
• Eclipse Installation: Eclipse is a programming editor. If you prefer, you can use Windows Notepad or another programming editor. If you decide to use Eclipse, it must be installed after you install the JDK.
• Running Eclipse: This tutorial shows you how to use Eclipse that you just installed. If you are using Eclipse under Citrix, you must choose the F: directory as your workspace directory.
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”
Grading Rubric
ShowEscapeSequences Points Description
Standard header included 1 Must contain program’s name, student name, and description of the program
Program compiles 2 Program does not have any error
Program executes 2 Program runs without any error
Output is displayed in 3 separate lines 2 Output must contain three separate lines
Escape sequence was used in the program 3 Escape sequence must be used for new line, tab, and double quotes
Subtotal 10
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.
Grading Rubric
Circle Points Description
Standard header included 2 Must contain program’s name, student name, and description of the program
Program compiles 2 Program does not have any error
Program executes 2 Program runs without any error
Output is displayed in a GUI 3 Output is displayed in a GUI message dialog box
All 3 results display correctly 3 Output contains the correct results of diameter, circumference and area of the circle
Math.PI variable is used 3 Must use Math.PI on the formulas
Subtotal 15
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
Grading Rubric
PracticeArithmeticOperators Points Description
Standard header included 2 Must contain program’s name, student name, and description of the program
Program compiles 2 Program does not have any error
Program executes 2 Program runs without any error
All 4 operations display correct results 4 Program contains the four operations: sum, difference, product, and quotient and correct results
Output is displayed in a tabular format 5 Operation and results are in a tabular format
Subtotal 15
* You can also use 2CO option if you want to purchase through Credit Cards/Paypal but make sure you put the correct billing information otherwise you wont be able to receive any download link.
* Your paypal has to be pre-loaded in order to complete the purchase or otherwise please discuss it with us at [email protected].
* As soon as the payment is received, download link of the solution will automatically be sent to the address used in selected payment method.
* Please check your junk mails as the download link email might go there and please be patient for the download link email. Sometimes, due to server congestion, you may receive download link with a delay.
* All the contents are compressed in one zip folder.
* In case if you get stuck at any point during the payment process, please immediately contact us at [email protected] and we will fix it with you.
* We try our best to reach back to you on immediate basis. However, please wait for atleast 8 hours for a response from our side. Afterall, we are humans.
* Comments/Feedbacks are truely welcomed and there might be some incentives for you for the next lab/quiz/assignment.
* In case of any query, please donot hesitate to contact us at [email protected].
* MOST IMPORTANT Please use the tutorials as a guide and they need NOT to be used for any submission. Just take help from the material.
******************************************** Good Luck ***************************************************
Any personal information received will only be used to fill your order. We will not sell or redistribute your information to anyone.
We will try our best to resolve the issue and if still persists we can discuss for a refund in case its required.