Java程序辅导

C C++ Java Python Processing编程在线培训 程序编写 软件开发 视频讲解

客服在线QQ:2653320439 微信:ittutor Email:itutor@qq.com
wx: cjtutor
QQ: 2653320439
Chapter 2 
Lab 1 
Declaring and Using a Variable Pages 59 - 60 
Trying to Use an Uninitialized Variable Page 61 
Adding a Named Constant to a Program Pages 61 – 62 
Working with Integers Pages 64 – 67 
Using the char Data Type Page 75 
 
Instructions: 
 
This lab is made up of multiple assignments from the book.  Make the following changes to 
the instructions shown in your text book: 
 
Declaring and Using a Variable 
Page 59 – Step 1 
 Name your class DataDemo_YourInitials ( For example Joe Bob would name his class 
DataDemo_JB ) 
 
Trying to Use an Uninitialized Variable 
Page 61 – Step 2 
 To view error messages using Eclipse just take your mouse and hover over the error 
icon in the left margin of your source code 
 
 
Working with Integers 
Page 64 – Step 1 
 Name your class IntegerDemo_YourInitials  
 
Working with the char Data Type 
Page 75 – Step 1 
 Name your class CharDemo_YourInitials  
Turn in the files DataDemo_YourInitials.java, IntegerDemo_YourInitials.java, and 
CharDemo_YourInitials.java 
 
Grading: 
 
2 – General, compiles, comments, proper indentation, etc 
2 – DataDemo_YourInitials.java 
2 – IntegerDemo_YourInitials.java 
2 – CharDemo_YourInitials.java