START LAB 5 - PowerPoint PPT Presentation

1 / 16
About This Presentation
Title:

START LAB 5

Description:

We will configure Xwin32 as follows: Start - All Programs - XWin32 5.1 - X-Config ... public static void main(String[] args) throws IOException //CODE. Lab 5. start ... – PowerPoint PPT presentation

Number of Views:36
Avg rating:3.0/5.0
Slides: 17
Provided by: michell246
Category:
Tags: lab | start | ioexception | javac

less

Transcript and Presenter's Notes

Title: START LAB 5


1
START LAB 5
  • Open or Print a copy of Lab 5 from
  • personal.utulsa.edu/james-childress
  • We will configure Xwin32 as follows

2
Start -gt All Programs -gt XWin32 5.1 -gt X-Config
Select button labeled Wizard.
3
Choose XDMCP
Click Next
4
Select Query
Click Next
5
Enter Host as login.ens.utulsa.edu
Click Next
6
Enter Name of Session as Unix
Click Finish
7
Start -gt All Programs -gt XWin32 5.1 -gt X-Win32
8
X Icon
This places the X icon in the lower right of your
screen in the tool bar. Click on the X icon one
time only.
9
Click on the X icon one time only
Select Unix
10
(No Transcript)
11
Linux Desktop
Double-click Home to view lab folders. Right
click to create a lab5 folder. Double click on
lab5 folder.
12
Red Hat Programming - Nedit
13
Open Terminal
To be able to enter the compile and run command
(javac and java), you need a session prompt.
Right click on desktop and select Open Terminal.
14
Lab 5 Continued
  • // your name
  • // Lab 5
  • // Section
  • // Lab Instr Hepner / Johnson
  • import java.io.
  • public class lab5
  • public static void main(String args) throws
    IOException
  • //CODE

15
Lab 5
Declare the variables int count 0 int sum
0 double average int min int max
//While Loop Syntax while(boolean expression) //
Header line // body of the code
F
Ask for the first input number
Assign min and max num
  • Increase the count by 1
  • Find out the minimum
  • of min and num
  • Find out the maximum
  • of max and num
  • Calculate sum

while (num ! -999)
Ask for the next number
T
F
if (count 0)
print a message saying no numbers were entered
T
F
print the results
16
SCRIPT INSTRUCTIONS
  • script script.lab5
  • cat lab5.java
  • javac lab5.java
  • java lab5
  • Run the test case
  • exit // Dont forget to
    exit ?
  • lp d l2 script.lab5
Write a Comment
User Comments (0)
About PowerShow.com