CST8102 – CST8132 Lab Exercise 1 (Solution)

$ 20.99
Category:

Description

Overview
• This lab exercise has two objectives
• 1) Updating your Java and Eclipse installations to Java 8, update 65, and Eclipse Mars
• 2) Reviewing topics from Introduction to Programming by creating a simple calculator

Tasks 1) Update Java JDK o Using the Windows Control Panel Un-install Java 7, this includes both the JDK and JRE o Locate and Delete your Eclipse folder (Note: This is not the workspace folder)
*** If in doubt make a back up copy of your workspace to a USB drive, or another folder on your hard drive and ask your professor for help***
o Download Java 8 update 65 from this link:
 http://www.oracle.com/technetwork/java/javase/downloads/index.html o Download Java 8 documentation from this link:
 http://www.oracle.com/technetwork/java/javase/downloads/index.html
 (This is the same link, scroll down in the web page just below “Additional Resources” o Download Eclipse Mars from this link:
 http://eclipse.org/downloads/
 Get the “Eclipse IDE for Java Developers” (Not the EE version)

o Install Java 8 o Update your System Environment Path variable for the Java 8 update 65 install.
 JAVA_HOME should be C:Program FilesJavajdk1.8.0_65 o Unzip the documentation
o Unzip the Eclipse folder and move it to a location of your choosing

Be prepared to show start up of Eclipse Mars, as well as use java –version, and javac –version in a console to the lab professor who will verify Java 8 and Eclipse Luna is installed.

2) Create a simple Calculator

Example of using the program, bolded highlighted digits are user input
Please enter an option:
1 Addition
2 Subtraction
3 Multiplication
4 Division
4
Please enter number 1:1
Please enter number 2:2
1.00 / 2.00 is 0.50

Grading
Task Points
javac –version reports Java 1.8 update 65 (or newer)? java –version reports Java 1.8 update 65 (or newer)?
Eclipse Mars installed? 2
2
1
Calculator program compiles and works as expected 5
Total 10

Reviews

There are no reviews yet.

Be the first to review “CST8102 – CST8132 Lab Exercise 1 (Solution)”

Your email address will not be published. Required fields are marked *