Successfully reported this slideshow.

Cis 355 i lab 1 of 6

233 views

Published on

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.

Published in: Technology, News & Politics
  • Be the first to comment

  • Be the first to like this

Cis 355 i lab 1 of 6

  1. 1. SOLUTIONJUG.COMCIS/355 iLab 1 of 6 - Enviornment SetupCLICK HERE TO GET THE SOLUTION !!!!!!!!Scenario and SummaryIn this lab you will learn how to use the Java Software Development Kit (SDK) with the Eclipseprogramming tool. In addition, you will create three simple Java programs.DeliverablesProgram files for each of the following three programs.1. ShowEscapeSequences.java2. Circle.java3. PracticeArithmeticOperators.javaAt the beginning of ALL your programs, put a comment box that includes the program name, yourname, and a brief description of the program.Example:/***********************************************************************Program Name: ProgramName.javaProgrammers Name: Student NameProgram 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 asevidence of success.3. In addition to the program source code files and byte code files, put all your program sourcecode 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 sendsubfolders within your zipped folder. Place ALL of the .java and .class files for the week intothe one zipped folder. The zip folder should be named:CIS355A_YourLastName_iLab_Week1, and this zip folder will contain all the weeklyprogramming assignments.
  2. 2. i L A B S T E P SEnvironment Setup (required, but not graded)The iLab has all the software that you will need for this course, but many students prefer todownload and install the software on their own computers. If you choose to do this, you will need todownload and install the following:Java Standard Edition: You must install version 5 or later. This is also called Java SE, Java 5SE, JDK 5.x, or JSDK 5.x. This must be installed first. You can download Java free of chargefromhttp://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 WindowsNotepad or another programming editor. If you decide to use Eclipse, it must beinstalled after you install the JDK.Running Eclipse: This tutorial shows you how to use Eclipse that you just installed. If you areusing 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 likeCIS355A"Business Application Programming with Lab using JAVA"Grading RubricShowEscapeSequences Points DescriptionStandard header included 1Must contain programs name, studentname, and description of the programProgram compiles 2 Program does not have any errorProgram executes 2 Program runs without any errorOutput is displayed in 3separate lines2 Output must contain three separate linesEscape sequence was used inthe program3Escape sequence must be used for newline, tab, and double quotesSubtotal 10STEP 2: Circle (15 points)Write an application called Circle.java that inputs from the user the radius of a circle as an integerand prints the circle’s diameter, circumference, and area. Use the example program and GUItechnique message dialog box shown in the Week 1 Lecture.Use the following formulas.diameter = 2 * radiuscircumference = 2 * Math.PI * radiusarea = Math.PI * radius * radius
  3. 3. Use the predefined constant Math.PI for your calculation. This constant is more precise than thevalue 3.14159. Class Math is defined in the java.lang package so you do not need to import it.Grading RubricCircle Points DescriptionStandard headerincluded2Must contain program’s name, student name, and description ofthe programProgram compiles 2 Program does not have any errorProgram executes 2 Program runs without any errorOutput is displayed in aGUI3 Output is displayed in a GUI message dialog boxAll 3 results displaycorrectly3Output contains the correct results of diameter, circumferenceand area of the circleMath.PI variable isused3 Must use Math.PI on the formulasSubtotal 15STEP 3: PracticeArithmeticOperators (15 points)Write an application called PracticeArithmeticOperators.java that asks the user to enter twonumbers. The program is to convert these numbers from String to type int and then print in atabular 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 Result25 + 5 3025 – 5 2025 * 5 12525 / 5 5Grading RubricPracticeArithmeticOperators Points DescriptionStandard header included 2Must contain program’s name, studentname, and description of the programProgram compiles 2 Program does not have any errorProgram executes 2 Program runs without any errorAll 4 operations display correctresults4Program contains the four operations:sum, difference, product, and quotientand correct resultsOutput is displayed in a tabularformat5Operation and results are in a tabularformatSubtotal 15CLICK HERE TO GET THE SOLUTION !!!!!!!!

×