CPSC 150 Laboratory Manual. Lab 1 Introduction to Program Creation

Size: px
Start display at page:

Download "CPSC 150 Laboratory Manual. Lab 1 Introduction to Program Creation"

Transcription

1 CPSC 150 Laboratory Manual A Practical Approach to Java, jedit & WebCAT Department of Physics, Computer Science & Engineering Christopher Newport University Lab 1 Introduction to Program Creation Welcome to the laboratory exercises that accompany the lecture course CPSC 150: Computers and Programming I. Although these lab exercises support the material presented in lectures it should not come as a surprise that at times the lab and lecture may cover topics at different times or with a different emphasis. This caveat notwithstanding, lab and lectures should complement each other quite often. In this first lab, we will get acquainted with the software that will support our main goal: creating computer programs using the Java programming language. It is not the intention of this first lab to emphasize java programming; instead you are to take the Java programs provided to you and learn how to use the tools in this lab to create and test programs. If you have questions regarding why a particular program behaves as it does, feel free to ask your lab instructor, but understand that the details of the programs will be addressed in lecture and in following labs.

2 Structure of the Lab Grading: Labs have questions and exercises that you should complete. Pay careful attention to the instructions regarding how the questions are to be graded. In a few cases you will simply show your instructor your work. In other instances, you will use an automated grader to check the correctness of the program. This automated grader is named WebCAT and the process for using WebCAT is included in this lab. The number of questions you answer and the exercises you complete will determine your total grade. Your instructor will give you the grading scale for your particular section. As is the case with most courses, instructors of each section have the latitude to determine the details of their own grading policy, so be sure to ask your instructor for details associated with the grading of each lab. The philosophy of the lab organization is to provide you with an instructor to assist you with the questions you encounter, so that your efforts are more efficient. It is expected that you will consult with other students in the lab to complete your work as the course incorporates a team programming philosophy, encouraging you to work together, but be careful to understand the difference between working together and copying the work of others. WebCAT is integrated into the grading aspects of the course so that your instructor can focus on answering your questions instead of determining the correctness of your programs. Materials: Each lab activity except this first one will require that you come to lab equipped with (a) your class text book, (b) this lab manual (possibly online) and (c) paper and pencil. You will usually need all three, so be sure to bring them each time. Late submissions: Your instructor will determine how and if late lab submissions are allowed, so be sure to check with your instructor. Be aware that these labs are created and ordered to enhance your success in CS150, and late execution of the labs results in a less than optimal learning scenario. Online Content: Your instructor will provide you with the location of online content to support this course, including reference materials including Java source files where applicable, links to relevant online content, instructional videos and the labs themselves.

3 Operating System Essentials 1. Ownership of files The most important concept to grasp from the beginning is how your files will be stored and managed, so let s start with the process of establishing how to log in with your user and password which will be used to manage file ownership. Picture the organization as follows: CS150 Lab PC 1 PC 2 File Server PC 3 As you work on the workstation in the lab, you determine whether the file will be stored on the machine in the lab, or on the file server. There are a few primary reasons that you want to store files on the files server. The images on the lab machines may be reset every time the machine is rebooted. This means that anything you store on this machine will be deleted. You want to be able to access your account files from any machine in the lab and from your dorm room. You want the files password protected and backed up to a secondary storage. Storing the files on the file server provides protection, global access and backup of your files. So store your files on the file server when possible. The name of the file server we will be using is Samba and can be found by clicking on 'Computer' in the Windows start menu, denoted as S:.

4 2. Logging In Be sure to read this entire section before attempting to log in. Your username and password will be provided to you via an from the department system administrator if you do not have an account from a previous course offered by the department. This account is NOT the same account you use to read your cnu.edu ; instead it provides access to the departmental file server. Type your username and password and press the button labeled Log In. If you are unsuccessful in logging in, check for the following: A. Are you using the correct password? (It s not your cnu.edu password!) B. Passwords are case-sensitive. For example, M is different from m. C. CAPS LOCK key should not be pressed in D. NUM LOCK key should not be pressed in E. Capital O looks similar to numeral 0. Are you tapping the correct key? F. Uppercase I looks similar to lower case L and numeral 1 (one). Are you tapping the correct key? If you have not been successful despite after making the above adjustments, see your instructor for assistance in determining your password. In some instances, students will simply need the password reset if it has been forgotten since last using the account, but your first inquiry for assistance should be with your lab instructor. In most cases the solutions is to the department system administrator, and this might take a day or so to get a response. It is possible that the account can be reset while you are in the lab. If after all of these steps you still cannot successfully log in, the instructor will provide a generic username which has no password. There are many situations which might delay your obtaining the proper account information if we do not have correct addresses or the most up-to-date registration. For the purpose of this lab, there is an alternative if you are having problems logging in. Simply read through the lab and use the alternatives

5 3. Accessing Server Storage Once you have logged on with your personal username and password, you will be able to access the file server. On Windows, this will be through a network drive (specifically as drive S:\). On Mac OSX, this will be your home directory. If you had to log in with the generic username, you will NOT have access to this server resource until your login problems are resolved, but you can still store your work on the c: drive or Mac Desktop and complete this lab. It is important that you read over this section and then revisit the section after you get your username and password. Graded Activities for Lab 1 The activities for lab are varied in nature. For the most part, you will perform an activity and show your instructor for approval. When the instructor verifies the correct

6 completion of that lab activity he/she will sign the grade sheet (at the end of this file), so have a copy of that sheet ready for your instructor s signature. Submit the signed sheet to your instructor when you are finished. The boxes in the margin on the left are an indication of the activities that will be graded and that correspond to the same questions on the grade sheet. Most of the subsequent labs will not utilize this manual grading process. The last question will be graded in a different manner and will be typical of the manner in which many of the lab exercises will be evaluated. Programs will most often be evaluated using the automatic grader, WebCAT. Details on the use of WebCAT are included in the lab, so be sure when you reach that point that you know how to verify successful completion of the activity as the WebCAT activities are not graded on the grade sheet.

7 Creating Programs using jedit If you are doing this on your own computer as opposed to the lab machines, see the instructions in the Appendix for setting up your computer before proceeding. 1. Text editors versus Word One of the core activities in programming is learning to use software tools for creating programs. You are likely familiar with using tools like Microsoft Word, but may or may not be familiar with a text editor such as the one you will use in this lab, jedit. Programs like Word store characters called control characters that define special formatting characteristics like list numbering, font styles and sizes, columns and figures as you see in this lab document. The programming that you will be doing requires the creation of text files which do not contain these control characters. If you try to open a Word document in a text editor like Windows notepad, you will easily see the characters which define the Word document formatting details. VIDEO A short video, Text file vs Word, explaining the issue is available at the web site. Setting up TextEdit for MacOSX: The TextEdit app can be used to edit formatted documents like Word, or it can be used as a plain text editor (i.e., no formatting, just text). You will set TextEdit to work by default as a plain text editor. Launch the TextEdit app. It is in the /Applications folder. Pull down the File menu and select New. Notice that a text window opens. At the top of that window is a formatting bar. Now pull down the TextEdit menu and select Preferences. At the top of the Preferences dialog box that appears, there are two tabs, New Document and Open and Save. New Document is selected by default. Click on the Plain Text radio button just below the tabs. Now select the tab Open and Save. Check the Ignore rich text commands in RTF files. The box for the HTML files should also be checked. Close the Preferences dialog box (click the red sphere at the left of the title bar). What did you just do? You turned TextEdit into a plain text editor. To see this, create another new file. Note that the text window that appears has NO formatting bar.

8 2. Using jedit to create a Java program. One could use Notepad (Windows) or TextEdit(Mac) to create Java programs, but there is a better program that can be used on either OS, is free to download, and is specifically tuned to create Java programs. Notepad/TextEdit is a reasonable alternative until you get jedit installed, but the rest of the lab refers to jedit. If you do not yet have jedit, just use the appropriate text editor for your OS. jedit is an application written in Java that will make it easier for you to create a Java program. There is a video on the course website to explain how to download and install jedit on your personal computer. VIDEO Watch the video Jedit Step 1. After you have watched the movie, create your first program named HelloWorld.java. The program should look like the following: public class HelloWorld { public static void main(string args[]) { System.out.println( HelloWorld ); } } Be sure to name it properly. The name of the file should be exactly HelloWorld.java where the use of the proper case is critical (i.e. helloworld.java will not work). If you have to use Notepad, when saving the file, put the entire name of the file in quotes or notepad will put.txt on the end of the file name, which is not compatible with Java. When saving the file, be very careful to observe where the file is saved. Windows users should store files on the S: drive, if possible. If you had to log in with the generic password, store the file on the C: drive in the Documents area. If you are still uncomfortable with directories, review the video and ask your instructor for help. Question 1 When you have completed the creation of HelloWorld.java and saved it, show your instructor.

9 Compiling and Running Your First Program Your first program will be compiled and executed using a command-line environment. VIDEO Watch the video Command Line Compiling-Running Java. Using Command Prompt in Windows and Mac OSX The command prompt is one of the oldest user interfaces used in computing. Although it is not as intuitive as graphical interfaces, it is not complicated to use either. The commands available for use in a command prompt are numerous and, if used correctly, quite powerful. Watching the video is the most efficient way to get started with this, SO BE SURE TO WATCH IT! The Windows and Mac OSX commands are very similar. In addition, Mac OSX is a UNIX system. If you know Linux, you know Mac OSX (well, almost). In our limited use of the command prompt, you will only use a few commands. Here are a few of the commands with which you should gain some familiarity. These are the only commands that you will need to learn. Task Windows Command Mac OSX Command List contents of current dir Ls directory Duplicate the contents of copy file1 file2 cp file1 file2 file1, naming the copy file2 Delete file1 del file1 rm file1 Changes current directory cd dir1 cd dir1 to the directory dir1 Compile the Java program javac file1.java javac file1.java file1.java Run the Java program file1 java file1 java file1

10 At this point, most students are fine with the process of building the file, but are confused with using the command line, even after watching the video. There are actually two aspects that you must understand. The first regards how to use the command line commands and the video along with some practice will quickly resolve your questions. The second issue is understanding how to use cd to get to the directory where the Java file was saved before compiling it. The second half of the Windows XP Directories video gives some examples of this and would be very helpful if this is still giving you issues. Question 2 Now compile and run your Hello World program. When you have completed the execution of the program, show your instructor. Next create a program named HolaMundo. Modify the HelloWorld program by making the following changes. 1. Change the name of the class to HolaMundo 2. Change the string printed from HelloWorld to HolaMundo 3. Change the name of the file to (what should the name be?) Question 3 Recompile and run the new program and show your instructor. VIDEO A video named Java and Integer Division should be viewed. If you want to run the program yourself, a copy of the code is available at the web site in the file Average3.java. Right-click/Save-As to store it on your account. Then compile and run it. Does this program correctly calculate the average? What major limitation does it have? Let s take a look at another version of this program. Look on the website for Average3Scanner. Compare the two programs. How is this new one different? How does it overcome the limitation of the first one? Try it out. Note that the source code on the web site is actually a.jpg (image) not a text file. You will have to enter the code yourself, as practice in the use of jedit, Javac and Java. Question 4 Recompile and run the program, then show your instructor where you have executed the Average3Scanner Java program. If you don t understand the advantage of having the user type the input, see your instructor and be sure to get some clarity on this before leaving the lab.

11 The last activity is to go through the process of submitting a file to the automated grader (WebCAT) for evaluation. WebCAT will be used extensively in subsequent labs and may be used by your lecturer, so use this activity to gain familiarity. In order to gain the benefit of the automated grader, your programs must adhere closely to the specifications given. Pay close attention to the name of the file expected and the format of the output requested. LAB 1 A Your instructor will set up a username and password, and it will ed to you. The mail should should be received prior to the beginning of class, but if you have registered late or changed sections, see your instructor. WebCAT will be demonstrated in class. Following these instructions, take the HelloWorld.java file and submit it to WebCAT for grading. Upon submission, be sure to follow up and verify that the program ran correctly as this will be your primary mechanism for determining that you have completed lab activities in the future.

12 Student s Name ID Lab 1: Completion Table Question Completed Comments yes no Instructor s signature Grade Don t forget to submit Lab 1 A to WebCAT.

13 Appendix 1. Understanding directories Whether you are using a remote file server or your local machine to store your programs, one needs a basic understanding of the organization of the file system of your OS. There are videos to help explain files and directories, using Windows directories as the point of focus. If you feel that you need further assistance, watch the instructional videos VIDEOS Files and Directories The C: Drive WindowsXpDirectories (pardon the noise that occurs at the beginning.. it will only last about one minute) These are only included as a resource to bring your level of understanding to a minimal level, so use your own discretion to determine what is necessary. Also remember that you have your instructor and student tutors to assist you. Windows VIDEO In the event that you need help with the notion of directories and drives in Windows, there are a number of videos on the course website to assist with this. View the videos depending on your current expertise. They are not lengthy, so if you have questions about whether to view them or not watch them! The important points to remember are: There are two locations where you might try to store files on the lab machines. a. C:\Documents and Settings\<your username>\ (Windows XP) Or b. C:\Users\<your username>\ My Documents\ (Vista and 7) i. This folder is on the local machine and is a less preferable place to save your files. c. S:\Windows\My Documents\ i. This folder is located on the file server (where you want to save your files). The reasons for using the S: drive are explained in the previous section on Ownership of Files. If you logged in with the generic username, you will NOT have access to the S: drive but if you were able to use your personal username, from the My

14 Computer icon you should be able to find drive S:\, your Network Drive, listed below the main computer drives. Everything on this drive is your account, but you should still be careful about how you use this space. Do not delete any of the files that are already in your account. Instead create new directories on this drive for storage and organization of your assignments. The files on the S: drive can only be accessed by you and are accessible from any of our department computers. If it is necessary to use the C: drive location (your account is not yet set up), understand that these files are very frequently deleted and also are readable and writable by anyone who logs on with that username. This is especially problematic if you had to log on as the generic user. Mac OSX Your home directory and all its contents are stored on the file server. If you want to store files on the server, just be sure the files are in your home directory. Most other directories will not be accessible to you, so if you want to store a file locally, your best bet is to use a thumb drive. Using the generic username If you use the generic account, you may need to save your results for subsequent use if you need to work on the lab after class. The simplest solution is to use your account and mail the relevant files to yourself.

15 Appendix 2. Setting up your personal PC Setting up your personal computer The objective in setting up your machine for Java is to download and install two tools: Java development libraries and jedit for writing programs. Installing Java on your computer. There are a number of versions of Java available for download, but as long as you download a reasonably recent version, you should not have any conflict with the course activities. In case you have any questions in regard to this, check with your instructor to be sure that you have a recent version. If you own a Mac, your machine likely already has the updates appropriate for your version of the MacOS. You will still need to do the second step and install jedit. Questions regarding Java and MacOS can generally be answered at the following web site: If you own a PC, a Flash movie is available to guide you though this process. When you access the course web site (available from your instructor) to run the video, you may be asked if you want to install the Flash player, and if so, respond to do that installation also. Watching the video only takes about 5-6 minutes and the actual process of installation of Java takes a little longer. You can actually watch the video, and step through your own installation at the same time, pausing the movie when relevant. The video for Java installation can be found at the course web site and is named VIDEO Setting up Java Installing jedit on your computer. jedit is a powerful text editor that will be used to create Java programs. jedit requires the installation of Java, so be sure you have gone through the previous steps before installing jedit. All users will need to install jedit as it is not a default installation of any operating system. A video to assist with this process is available at the course web site and is named VIDEO Installing Jedit

16 Configuring your computer for Java. In order to properly configure your personal computer for using command-line Java, it is necessary to modify environment variables. Watch the following video for instructions on how to configure environment variables for Java on a PC. VIDEO Environment Variables You only need to perform the above activities once for your machine. These configurations have already been applied to the lab machine, so upon completion of these tasks your machine should perform identically to the lab machines. Transferring files between your personal PC and the file server. At this point, the easiest mechanism for transfer is to use a simple usb memory stick. You can also yourself you lab files.

CPSC150L Lab 0 Lab Set Up

CPSC150L Lab 0 Lab Set Up CPSC150L Lab 0 Lab Set Up Fall 2016 Welcome to the laboratory exercises that accompany the lecture course CPSC 150 Computers and Programming I. These lab exercises are designed to support and complement

More information

Instructions PLEASE READ (notice bold and underlined phrases)

Instructions PLEASE READ (notice bold and underlined phrases) Lab Exercises wk02 Lab Basics First Lab of the course Required Reading Java Foundations - Section 1.1 - The Java Programming Language Instructions PLEASE READ (notice bold and underlined phrases) Lab Exercise

More information

CSC116: Introduction to Computing - Java

CSC116: Introduction to Computing - Java CSC116: Introduction to Computing - Java Course Information Introductions Website Syllabus Computers First Java Program Text Editor Helpful Commands Java Download Intro to CSC116 Instructors Course Instructor:

More information

Instructions. First, download the file

Instructions. First, download the file Instructions First, download the file http://www.cs.mcgill.ca/~cs202/2012-09/web/lectures/dan/unit0/helloworld.java from the course webpage. You can view this file in a program such as notepad (windows),

More information

CSCI 161: Introduction to Programming I Lab 1b: Hello, World (Eclipse, Java)

CSCI 161: Introduction to Programming I Lab 1b: Hello, World (Eclipse, Java) Goals - to learn how to compile and execute a Java program - to modify a program to enhance it Overview This activity will introduce you to the Java programming language. You will type in the Java program

More information

CSC116: Introduction to Computing - Java

CSC116: Introduction to Computing - Java CSC116: Introduction to Computing - Java Intro to CSC116 Course Information Introductions Website Syllabus Computers First Java Program Text Editor Helpful Commands Java Download Course Instructor: Instructors

More information

Department of Computer Science University of Pretoria. Introduction to Computer Science COS 151

Department of Computer Science University of Pretoria. Introduction to Computer Science COS 151 Department of Computer Science University of Pretoria Introduction to Computer Science COS 151 Practical 1 16 February 2018 1 Plagiarism Policy The Department of Computer Science considers plagiarism as

More information

CPS109 Lab 1. i. To become familiar with the Ryerson Computer Science laboratory environment.

CPS109 Lab 1. i. To become familiar with the Ryerson Computer Science laboratory environment. CPS109 Lab 1 Source: Partly from Big Java lab1, by Cay Horstmann. Objective: i. To become familiar with the Ryerson Computer Science laboratory environment. ii. To obtain your login id and to set your

More information

Linux File System and Basic Commands

Linux File System and Basic Commands Linux File System and Basic Commands 0.1 Files, directories, and pwd The GNU/Linux operating system is much different from your typical Microsoft Windows PC, and probably looks different from Apple OS

More information

CSE 101 Introduction to Computers Development / Tutorial / Lab Environment Setup

CSE 101 Introduction to Computers Development / Tutorial / Lab Environment Setup CSE 101 Introduction to Computers Development / Tutorial / Lab Environment Setup Purpose: The purpose of this lab is to setup software that you will be using throughout the term for learning about Python

More information

CSC116: Introduction to Computing - Java

CSC116: Introduction to Computing - Java CSC116: Introduction to Computing - Java Course Information Introductions Website Syllabus Schedule Computing Environment AFS (Andrew File System) Linux/Unix Commands Helpful Tricks Computers First Java

More information

CS Fundamentals of Programming II Fall Very Basic UNIX

CS Fundamentals of Programming II Fall Very Basic UNIX CS 215 - Fundamentals of Programming II Fall 2012 - Very Basic UNIX This handout very briefly describes how to use Unix and how to use the Linux server and client machines in the CS (Project) Lab (KC-265)

More information

Lab 1 1 Due Wed., 2 Sept. 2015

Lab 1 1 Due Wed., 2 Sept. 2015 Lab 1 1 Due Wed., 2 Sept. 2015 CMPSC 112 Introduction to Computer Science II (Fall 2015) Prof. John Wenskovitch http://cs.allegheny.edu/~jwenskovitch/teaching/cmpsc112 Lab 1 - Version Control with Git

More information

You should see something like this, called the prompt :

You should see something like this, called the prompt : CSE 1030 Lab 1 Basic Use of the Command Line PLEASE NOTE this lab will not be graded and does not count towards your final grade. However, all of these techniques are considered testable in a labtest.

More information

ModeChanger

ModeChanger 35020808-02 2015.11 ModeChanger ModeChanger is a software utility that can switch the drive between normal mode and encrypted mode. Operating in encrypted mode will help protect your data. While the drive

More information

Summer Assignment for AP Computer Science. Room 302

Summer Assignment for AP Computer Science. Room 302 Fall 2016 Summer Assignment for AP Computer Science email: hughes.daniel@north-haven.k12.ct.us website: nhhscomputerscience.com APCS is your subsite Mr. Hughes Room 302 Prerequisites: You should have successfully

More information

The Command Shell. Fundamentals of Computer Science

The Command Shell. Fundamentals of Computer Science The Command Shell Fundamentals of Computer Science Outline Starting the Command Shell Locally Remote Host Directory Structure Moving around the directories Displaying File Contents Compiling and Running

More information

CS 177 Recitation. Week 1 Intro to Java

CS 177 Recitation. Week 1 Intro to Java CS 177 Recitation Week 1 Intro to Java Questions? Computers Computers can do really complex stuff. How? By manipulating data according to lists of instructions. Fundamentally, this is all that a computer

More information

Lesson 04: Our First Java Program (W01D4

Lesson 04: Our First Java Program (W01D4 Lesson 04: Our First Java Program (W01D4) Balboa High School Michael Ferraro Lesson 04: Our First Java Program (W01D4 Do Now Start a terminal shell. From there, issue these commands

More information

CS 209 Section 52 Lab 1-A: Getting Started with NetBeans Instructor: J.G. Neal Objectives: Lab Instructions: Log in Create folder CS209

CS 209 Section 52 Lab 1-A: Getting Started with NetBeans Instructor: J.G. Neal Objectives: Lab Instructions: Log in Create folder CS209 CS 209 Section 52 Lab 1-A: Getting Started with NetBeans Instructor: J.G. Neal Objectives: 1. To create a project in NetBeans. 2. To create, edit, compile, and run a Java program using NetBeans. 3. To

More information

Semester 2, 2018: Lab 1

Semester 2, 2018: Lab 1 Semester 2, 2018: Lab 1 S2 2018 Lab 1 This lab has two parts. Part A is intended to help you familiarise yourself with the computing environment found on the CSIT lab computers which you will be using

More information

Cmpt 101 Lab 1 - Outline

Cmpt 101 Lab 1 - Outline Cmpt 101 Lab 1 - Outline Instructions: Work through this outline completely once directed to by your Lab Instructor and fill in the Lab 1 Worksheet as indicated. Contents PART 1: GETTING STARTED... 2 PART

More information

Chapter 2. Editing And Compiling

Chapter 2. Editing And Compiling Chapter 2. Editing And Compiling Now that the main concepts of programming have been explained, it's time to actually do some programming. In order for you to "edit" and "compile" a program, you'll need

More information

3 CREATING YOUR FIRST JAVA APPLICATION (USING WINDOWS)

3 CREATING YOUR FIRST JAVA APPLICATION (USING WINDOWS) GETTING STARTED: YOUR FIRST JAVA APPLICATION 15 3 CREATING YOUR FIRST JAVA APPLICATION (USING WINDOWS) GETTING STARTED: YOUR FIRST JAVA APPLICATION Checklist: The most recent version of Java SE Development

More information

When you first launch CrushFTP you may be notified that port 21 is locked. You will be prompted to fix this.

When you first launch CrushFTP you may be notified that port 21 is locked. You will be prompted to fix this. This is a quick start guide. Its intent is to help you get up and running with as little configuration as possible. This walk through should take less than 10 minutes until you are able to login with your

More information

C02: Overview of Software Development and Java

C02: Overview of Software Development and Java CISC 3120 C02: Overview of Software Development and Java Hui Chen Department of Computer & Information Science CUNY Brooklyn College 08/31/2017 CUNY Brooklyn College 1 Outline Recap and issues Brief introduction

More information

CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 3: SEP. 13TH INSTRUCTOR: JIAYIN WANG

CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 3: SEP. 13TH INSTRUCTOR: JIAYIN WANG CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 3: SEP. 13TH INSTRUCTOR: JIAYIN WANG 1 Notice Reading Assignment Chapter 1: Introduction to Java Programming Homework 1 It is due this coming Sunday

More information

Getting started with UNIX/Linux for G51PRG and G51CSA

Getting started with UNIX/Linux for G51PRG and G51CSA Getting started with UNIX/Linux for G51PRG and G51CSA David F. Brailsford Steven R. Bagley 1. Introduction These first exercises are very simple and are primarily to get you used to the systems we shall

More information

CS 215 Fundamentals of Programming II Spring 2019 Very Basic UNIX

CS 215 Fundamentals of Programming II Spring 2019 Very Basic UNIX CS 215 Fundamentals of Programming II Spring 2019 Very Basic UNIX This handout very briefly describes how to use Unix and how to use the Linux server and client machines in the EECS labs that dual boot

More information

Securexam Mac User Guide

Securexam Mac User Guide Securexam Mac User Guide Unlike previous versions, Securexam for Mac now functions much like the PC version where it integrates with PlanetSSI to retrieve a user s exams and licenses via the web and upon

More information

Getting Started with Python and the PyCharm IDE

Getting Started with Python and the PyCharm IDE New York University School of Continuing and Professional Studies Division of Programs in Information Technology Getting Started with Python and the PyCharm IDE Please note that if you already know how

More information

Refresher workshop in programming for polytechnic graduates General Java Program Compilation Guide

Refresher workshop in programming for polytechnic graduates General Java Program Compilation Guide Refresher workshop in programming for polytechnic graduates General Java Program Compilation Guide Overview Welcome to this refresher workshop! This document will serve as a self-guided explanation to

More information

Students Guide to Desire2Learn

Students Guide to Desire2Learn Students Guide to Desire2Learn Created By: Justin Poggemann Updated by Kimberly Ross on June 1 st 2008 Desire2Learn Table of Contents: System Requirements How to get to Desire2Learn Log-On Procedures Secure/Non

More information

ASSIGNMENT 5 Objects, Files, and More Garage Management

ASSIGNMENT 5 Objects, Files, and More Garage Management ASSIGNMENT 5 Objects, Files, and More Garage Management COMP-202B, Winter 2010, All Sections Due: Wednesday, April 14, 2009 (23:55) You MUST do this assignment individually and, unless otherwise specified,

More information

RWT Network System Installation Guide

RWT Network System Installation Guide RWT Network System Installation Guide Copyright 2003, Talking Fingers, Inc. Page 1 of 48 This document is Copyright 2003 by Talking Fingers, Inc. All rights are reserved. This document may not be copied

More information

ENCM 339 Fall 2017: Editing and Running Programs in the Lab

ENCM 339 Fall 2017: Editing and Running Programs in the Lab page 1 of 8 ENCM 339 Fall 2017: Editing and Running Programs in the Lab Steve Norman Department of Electrical & Computer Engineering University of Calgary September 2017 Introduction This document is a

More information

Lab 1 Introduction to UNIX and C

Lab 1 Introduction to UNIX and C Name: Lab 1 Introduction to UNIX and C This first lab is meant to be an introduction to computer environments we will be using this term. You must have a Pitt username to complete this lab. The doc is

More information

CS 201 Software Development Methods Spring Tutorial #1. Eclipse

CS 201 Software Development Methods Spring Tutorial #1. Eclipse CS 201 Software Development Methods Spring 2005 Tutorial #1 Eclipse Written by Matthew Spear and Joseph Calandrino Edited by Christopher Milner and Benjamin Taitelbaum ECLIPSE 3.0 DEVELOPING A SIMPLE PROGRAM

More information

CSCI 161: Introduction to Programming I Lab 1a: Programming Environment: Linux and Eclipse

CSCI 161: Introduction to Programming I Lab 1a: Programming Environment: Linux and Eclipse CSCI 161: Introduction to Programming I Lab 1a: Programming Environment: Linux and Eclipse Goals - to become acquainted with the Linux/Gnome environment Overview For this lab, you will login to a workstation

More information

Lab 1 Introduction to UNIX and C

Lab 1 Introduction to UNIX and C Name: Lab 1 Introduction to UNIX and C This first lab is meant to be an introduction to computer environments we will be using this term. You must have a Pitt username to complete this lab. NOTE: Text

More information

CS 2400 Laboratory Assignment #1: Exercises in Compilation and the UNIX Programming Environment (100 pts.)

CS 2400 Laboratory Assignment #1: Exercises in Compilation and the UNIX Programming Environment (100 pts.) 1 Introduction 1 CS 2400 Laboratory Assignment #1: Exercises in Compilation and the UNIX Programming Environment (100 pts.) This laboratory is intended to give you some brief experience using the editing/compiling/file

More information

ASSIGNMENT 5 Objects, Files, and a Music Player

ASSIGNMENT 5 Objects, Files, and a Music Player ASSIGNMENT 5 Objects, Files, and a Music Player COMP-202A, Fall 2009, All Sections Due: Thursday, December 3, 2009 (23:55) You MUST do this assignment individually and, unless otherwise specified, you

More information

Project 1. Java Control Structures 1/17/2014. Project 1 and Java Intro. Project 1 (2) To familiarize with

Project 1. Java Control Structures 1/17/2014. Project 1 and Java Intro. Project 1 (2) To familiarize with Project 1 and Java Intro Sharma Chakravarthy Information Technology Laboratory (IT Lab) Computer Science and Engineering Department The University of Texas at Arlington, Arlington, TX 76019 Email: sharma@cse.uta.edu

More information

ECE297 Quick Start Guide Wiki

ECE297 Quick Start Guide Wiki ECE297 Quick Start Guide Wiki Problems are solved not by giving new information, but by arranging what we have always known." Ludwig Wittgenstein 1 Intro: The ECE297 Wiki Welcome to the ECE297 wiki. A

More information

CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 2: SEP. 8TH INSTRUCTOR: JIAYIN WANG

CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 2: SEP. 8TH INSTRUCTOR: JIAYIN WANG CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 2: SEP. 8TH INSTRUCTOR: JIAYIN WANG 1 Notice Class Website http://www.cs.umb.edu/~jane/cs114/ Reading Assignment Chapter 1: Introduction to Java Programming

More information

STA 303 / 1002 Using SAS on CQUEST

STA 303 / 1002 Using SAS on CQUEST STA 303 / 1002 Using SAS on CQUEST A review of the nuts and bolts A.L. Gibbs January 2012 Some Basics of CQUEST If you don t already have a CQUEST account, go to www.cquest.utoronto.ca and request one.

More information

Linux Operating System Environment Computadors Grau en Ciència i Enginyeria de Dades Q2

Linux Operating System Environment Computadors Grau en Ciència i Enginyeria de Dades Q2 Linux Operating System Environment Computadors Grau en Ciència i Enginyeria de Dades 2017-2018 Q2 Facultat d Informàtica de Barcelona This first lab session is focused on getting experience in working

More information

CS 112: Intro to Comp Prog

CS 112: Intro to Comp Prog CS 112: Intro to Comp Prog Importing modules Branching Loops Program Planning Arithmetic Program Lab Assignment #2 Upcoming Assignment #1 Solution CODE: # lab1.py # Student Name: John Noname # Assignment:

More information

Software and Documentation

Software and Documentation CS2100 Computer Organisation Lab #5: Exploring QtSpim (27 th February and 2 nd March 2017) [ This document is available on IVLE and module website http://www.comp.nus.edu.sg/~cs2100 ] Name: Matric. No.:

More information

EECS 1710 SETTING UP A VIRTUAL MACHINE (for EECS labs)

EECS 1710 SETTING UP A VIRTUAL MACHINE (for EECS labs) EECS 1710 SETTING UP A VIRTUAL MACHINE (for EECS labs) In this tutorial, we will work through the process of setting up a virtual machine on your home desktop/laptop, that reflects the working environment

More information

CS10001: Computer Literacy Lab Assignment #4

CS10001: Computer Literacy Lab Assignment #4 CS10001: Computer Literacy Lab Assignment #4 Lab Policies: Lab attendance is mandatory. You are given the opportunity to use the university s resources to start and complete the assignment during the lab

More information

Getting Started with UNIX

Getting Started with UNIX Getting Started with UNIX What is UNIX? Boston University Information Services & Technology Course Number: 4000 Course Instructor: Kenny Burns Operating System Interface between a user and the computer

More information

Code Ninjas: Introduction to Computer Science. Macomb Science Olympiad Presented by Swati Dharia

Code Ninjas: Introduction to Computer Science. Macomb Science Olympiad Presented by Swati Dharia Code Ninjas: Introduction to Computer Science Macomb Science Olympiad Presented by Swati Dharia Intro to Java Programming The three basic steps required to get a simple program running. As with any application,

More information

Eclipse Environment Setup

Eclipse Environment Setup Eclipse Environment Setup Adapted from a document from Jeffrey Miller and the CS201 team by Shiyuan Sheng. Introduction This lab document will go over the steps to install and set up Eclipse, which is

More information

Getting Started with Command Prompts

Getting Started with Command Prompts Getting Started with Command Prompts Updated December, 2017 Some courses such as Java Programming will ask the student to perform tasks from a command prompt (Windows) or Terminal window (Mac OS). Many

More information

Flash Video Encoder CS3 Fetch Microsoft Office 2004 (Excel, imovie. Powerpoint, Word, Entourage) itunes

Flash Video Encoder CS3 Fetch Microsoft Office 2004 (Excel, imovie. Powerpoint, Word, Entourage) itunes Welcome This is a small packet of information concerning some of the simpler uses of technology in the department, how to transfer files, change your password, that sort of thing. In this department, we

More information

Clean Up Team Lab 10 Points. Cisco Switch Lab I Individual Lab 25 Points

Clean Up Team Lab 10 Points. Cisco Switch Lab I Individual Lab 25 Points All of the work in this project is my own! I have not left copies of my code in public folders on university computers. I have not given any of this project to others. I will not give any portion of this

More information

2 Getting Started. Getting Started (v1.8.6) 3/5/2007

2 Getting Started. Getting Started (v1.8.6) 3/5/2007 2 Getting Started Java will be used in the examples in this section; however, the information applies to all supported languages for which you have installed a compiler (e.g., Ada, C, C++, Java) unless

More information

Once you have installed MobaXterm, open MobaXterm. Go to Sessions -> New Session, and click on the SSH icon.

Once you have installed MobaXterm, open MobaXterm. Go to Sessions -> New Session, and click on the SSH icon. Lab 1 In order to get credit for the lab, you need to be checked off by the end of lab. For nonzero labs, you can earn a maximum of 3 points for lab work completed outside of lab time, but you must finish

More information

Guided Tour (Version 3.3) By Steven Castellucci as Modified by Brandon Haworth

Guided Tour (Version 3.3) By Steven Castellucci as Modified by Brandon Haworth Guided Tour (Version 3.3) By Steven Castellucci as Modified by Brandon Haworth This document was inspired by the Guided Tour written by Professor H. Roumani. His version of the tour can be accessed at

More information

A Linux Virtual Machine for CS-2011 Projects

A Linux Virtual Machine for CS-2011 Projects CS-2011, Machine Organization and Assembly Language, D-term 2013 A Linux Virtual Machine for CS-2011 Projects Hugh C. Lauer Adjunct Professor Worcester Polytechnic Institute As an alternative to working

More information

Laboratory Exercise #0

Laboratory Exercise #0 Laboratory Exercise #0 This assignment focuses on the mechanics of installing and using Python. The deadline for Mimir submission is 11:59 PM on Monday, January 8. 1. Complete the steps given below to

More information

Welcome to Mac OS X, the world s most advanced operating system. This book helps you start using Mac OS X. First install the software, then discover h

Welcome to Mac OS X, the world s most advanced operating system. This book helps you start using Mac OS X. First install the software, then discover h Welcome to Mac OS X Welcome to Mac OS X, the world s most advanced operating system. This book helps you start using Mac OS X. First install the software, then discover how easy it is to use. 2 Installing

More information

CS1110 Lab 1 (Jan 27-28, 2015)

CS1110 Lab 1 (Jan 27-28, 2015) CS1110 Lab 1 (Jan 27-28, 2015) First Name: Last Name: NetID: Completing this lab assignment is very important and you must have a CS 1110 course consultant tell CMS that you did the work. (Correctness

More information

Chapter 1 An Introduction to C++, Unix, SSH and Komodo Edit

Chapter 1 An Introduction to C++, Unix, SSH and Komodo Edit Chapter 1 An Introduction to C++, Unix, SSH and Komodo Edit Contents 1 An Introduction to C++, Unix, SSH and Komodo Edit 1.1 Introduction 1.2 The C++ Language 1.2.1 A Brief Introduction 1.2.1.1 Recommended

More information

ADOBE DREAMWEAVER CS4 BASICS

ADOBE DREAMWEAVER CS4 BASICS ADOBE DREAMWEAVER CS4 BASICS Dreamweaver CS4 2 This tutorial focuses on the basic steps involved in creating an attractive, functional website. In using this tutorial you will learn to design a site layout,

More information

Getting Started in Your Blackboard 5 Course

Getting Started in Your Blackboard 5 Course Getting Started in Your Blackboard 5 Course Course Name: Course ID: Instructor: URL: http://hofstra.blackboard.com Username: Password: This course will be using Web-based software, which integrates course

More information

These two items are all you'll need to write your first application reading instructions in English.

These two items are all you'll need to write your first application reading instructions in English. IFRN Instituto Federal de Educação, Ciência e Tecnologia do RN Curso de Tecnologia em Análise e Desenvolvimento de Sistemas Disciplina: Inglês Técnico Professor: Sandro Luis de Sousa Aluno(a) Turma: Data:

More information

Batch Watermark Creator Software

Batch Watermark Creator Software PhotoX Batch Watermark Creator Software PhotoX helps you to add watermark stamp to your photos in a batch. The watermark can be generated from text or from an image. PhotoX also provides other tools likes

More information

Moodle FAQ. How do I login to Moodle?

Moodle FAQ. How do I login to Moodle? Moodle FAQ How do I login to Moodle? Why can't I login to Moodle? What do I need to use Moodle? How do I allow cookies for Moodle? How do I allow pop-ups for Moodle? How do I enable JavaScript? How do

More information

ITI1120 Fall Lab 0 Introduction to the Lab Environment

ITI1120 Fall Lab 0 Introduction to the Lab Environment 1 Objectives ITI1120 Fall 2012 - Lab 0 Introduction to the Lab Environment Getting familiar to the lab environment o EECS Computer Accounts o Logging In and Logging Out o Notable Features o E-Mail o Virtual

More information

Getting Started (1.8.7) 9/2/2009

Getting Started (1.8.7) 9/2/2009 2 Getting Started For the examples in this section, Microsoft Windows and Java will be used. However, much of the information applies to other operating systems and supported languages for which you have

More information

Creating Pages with the CivicPlus System

Creating Pages with the CivicPlus System Creating Pages with the CivicPlus System Getting Started...2 Logging into the Administration Side...2 Icon Glossary...3 Mouse Over Menus...4 Description of Menu Options...4 Creating a Page...5 Menu Item

More information

Cisco Switch Lab II (1-3 Persons) Individual/Team Lab 35 Points

Cisco Switch Lab II (1-3 Persons) Individual/Team Lab 35 Points All of the work in this project is my own! I have not left copies of my code in public folders on university computers. I have not given any of this project to others. I will not give any portion of this

More information

Class 1: Homework. Intro to Computer Science CSCI-UA.0101 New York University Courant Institute of Mathematical Sciences Fall 2017

Class 1: Homework. Intro to Computer Science CSCI-UA.0101 New York University Courant Institute of Mathematical Sciences Fall 2017 Intro to Computer Science CSCI-UA.0101 New York University Courant Institute of Mathematical Sciences Fall 2017 1 1. Please obtain a copy of Introduction to Java Programming, 11th (or 10th) Edition, Brief

More information

You will need to download the Java software development kit from

You will need to download the Java software development kit from Obtaining/Setting Up an Account For the Computer Labs you should use the same login as your Blackboard and MyCSUDH accounts. If anyone is unable to log into the systems, please go to the Welch Hall Open

More information

Use the Apple menu to change settings, get Mac OS X software, open recent items, and restart or shut down your computer.

Use the Apple menu to change settings, get Mac OS X software, open recent items, and restart or shut down your computer. Welcome to Mac OS X Aqua makes using your Mac easier than ever. Its color, depth, and motion guide you through your tasks, while the Finder and Dock provide easy access to your computer and network. Aqua

More information

Get JAVA. I will just tell you what I did (on January 10, 2017). I went to:

Get JAVA. I will just tell you what I did (on January 10, 2017). I went to: Get JAVA To compile programs you need the JDK (Java Development Kit). To RUN programs you need the JRE (Java Runtime Environment). This download will get BOTH of them, so that you will be able to both

More information

2013 EDITION. V-Camp Student. Guide. INTERACTIVE GUIDE Use the buttons shown below to navigate throughout this interactive PDF BACK

2013 EDITION. V-Camp Student. Guide. INTERACTIVE GUIDE Use the buttons shown below to navigate throughout this interactive PDF BACK V-Camp Student Guide INTERACTIVE GUIDE Use the buttons shown below to navigate throughout this interactive PDF BACK 03 EDITION V-Camp Student Guide Table of Contents Unit : Table of Contents...iii How

More information

Why Operating Systems? Topic 3. Operating Systems. Why Operating Systems? Why Operating Systems?

Why Operating Systems? Topic 3. Operating Systems. Why Operating Systems? Why Operating Systems? Topic 3 Why Operating Systems? Operating Systems Abstracting away from the Nuts and Bolts Early computers had no operating system. Programmers were responsible for: telling the computer when to load and

More information

CSCI 201 Lab 1 Environment Setup

CSCI 201 Lab 1 Environment Setup CSCI 201 Lab 1 Environment Setup "The journey of a thousand miles begins with one step." - Lao Tzu Introduction This lab document will go over the steps to install and set up Eclipse, which is a Java integrated

More information

Preferences & Notifications Statistics Glossary Interpreting the Similarity Report

Preferences & Notifications Statistics Glossary Interpreting the Similarity Report Guides.turnitin.com Setting up Your Turnitin Account Setting up Your Turnitin Instructor Account (New Workflow) Logging In Resetting Your Password The Instructor Homepage Joining an Account Information

More information

Website Development Komodo Editor and HTML Intro

Website Development Komodo Editor and HTML Intro Website Development Komodo Editor and HTML Intro Introduction In this Lecture and Tour we will cover: o Use of the editor that will be used for the Website Development and Javascript Programming sections

More information

ACADEMIC TECHNOLOGY SUPPORT

ACADEMIC TECHNOLOGY SUPPORT ACADEMIC TECHNOLOGY SUPPORT D2L : Introduction A Guide for Instructors ats@etsu.edu 439-8611 www.etsu.edu/ats Table of Contents Introduction...1 Objectives... 1 Logging In to D2L...1 My Home... 2 The Minibar...

More information

SECTION 1 INTRODUCTION

SECTION 1 INTRODUCTION SECTION 1 INTRODUCTION This user s guide accompanies a test generator program called ExamView Pro an application that enables you to quickly create printed tests, Internet tests, and computer (LAN-based)

More information

Tips from the experts: How to waste a lot of time on this assignment

Tips from the experts: How to waste a lot of time on this assignment Com S 227 Spring 2018 Assignment 1 100 points Due Date: Friday, September 14, 11:59 pm (midnight) Late deadline (25% penalty): Monday, September 17, 11:59 pm General information This assignment is to be

More information

Week 2: Data and Output

Week 2: Data and Output CS 170 Java Programming 1 Week 2: Data and Output Learning to speak Java Types, Values and Variables Output Objects and Methods What s the Plan? Topic I: A little review IPO, hardware, software and Java

More information

Prometheus V4.0. Table of Contents. Prometheus Student Help Guide 1. Introduction...2. Outside a Course...5. Outline...7. Testing...8. Grade Book...

Prometheus V4.0. Table of Contents. Prometheus Student Help Guide 1. Introduction...2. Outside a Course...5. Outline...7. Testing...8. Grade Book... Prometheus Student Help Guide 1 Prometheus V4.0 Table of Contents Introduction...2 Outside a Course...5 Outline...7 Testing...8 Grade Book...9 Files...10 Messages...12 Discussions...14 WebEQ...16 Files

More information

This is a combination of a programming assignment and ungraded exercises

This is a combination of a programming assignment and ungraded exercises CSE 11 Winter 2017 Programming Assignment #1 Covers Chapters: ZY 1-3 START EARLY! 100 Pts Due: 25 JAN 2017 at 11:59pm (2359) This is a combination of a programming assignment and ungraded exercises Exercises

More information

CS 1110 SPRING 2016: GETTING STARTED (Jan 27-28) First Name: Last Name: NetID:

CS 1110 SPRING 2016: GETTING STARTED (Jan 27-28)   First Name: Last Name: NetID: CS 1110 SPRING 2016: GETTING STARTED (Jan 27-28) http://www.cs.cornell.edu/courses/cs1110/2016sp/labs/lab01/lab01.pdf First Name: Last Name: NetID: Goals. Learning a computer language is a lot like learning

More information

CMSC 201 Spring 2017 Lab 01 Hello World

CMSC 201 Spring 2017 Lab 01 Hello World CMSC 201 Spring 2017 Lab 01 Hello World Assignment: Lab 01 Hello World Due Date: Sunday, February 5th by 8:59:59 PM Value: 10 points At UMBC, our General Lab (GL) system is designed to grant students the

More information

Getting Started with. Contents. Getting Started ! System Requirements... Before You Register # Registering for Your Course...

Getting Started with. Contents. Getting Started ! System Requirements... Before You Register # Registering for Your Course... MySpanishLab_booklet.qxd 6/13/07 5:59 AM Page 1 Getting Started with Contents Getting Started... 2! System Requirements... 3 @ Before You Register... 4 # Registering for Your Course... 4 $ Enrolling in

More information

1 Build Your First App. The way to get started is to quit talking and begin doing. Walt Disney

1 Build Your First App. The way to get started is to quit talking and begin doing. Walt Disney 1 Build Your First App The way to get started is to quit talking and begin doing. Walt Disney Copyright 2015 AppCoda Limited All rights reserved. Please do not distribute or share without permission. No

More information

ASSIGNMENT 5 Data Structures, Files, Exceptions, and To-Do Lists

ASSIGNMENT 5 Data Structures, Files, Exceptions, and To-Do Lists ASSIGNMENT 5 Data Structures, Files, Exceptions, and To-Do Lists COMP-202B, Winter 2009, All Sections Due: Tuesday, April 14, 2009 (23:55) You MUST do this assignment individually and, unless otherwise

More information

Chapter 4 The Companion Website A Unique Online Study Resource 4.1 Locating Companion Web sites

Chapter 4 The Companion Website A Unique Online Study Resource 4.1 Locating Companion Web sites Chapter 4 The Companion Website A Unique Online Study Resource As a student, you are no doubt familiar with the various supplements produced in conjunction with your textbooks. From videotapes to workbooks,

More information

Read Naturally SE Software Guide. Version 2.0

Read Naturally SE Software Guide. Version 2.0 Read Naturally SE Software Guide Version 2.0 Under the terms of the Read Naturally Software Edition License Agreement, you have permission to use only the levels you purchased with the number of users

More information

Computer Hardware. Java Software Solutions Lewis & Loftus. Key Hardware Components 12/17/2013

Computer Hardware. Java Software Solutions Lewis & Loftus. Key Hardware Components 12/17/2013 Java Software Solutions Lewis & Loftus Chapter 1 Notes Computer Hardware Key Hardware Components CPU central processing unit Input / Output devices Main memory (RAM) Secondary storage devices: Hard drive

More information

FirstClass and the NLC Intranet. Version 12

FirstClass and the NLC Intranet. Version 12 FirstClass and the NLC Intranet Version 12 Date Modified 15/06/2016 Use of the FirstClass E-mail system Introduction Please read the following in conjunction with the Internet and E-mail Policies issued

More information

SmartCVS Tutorial. Starting the putty Client and Setting Your CVS Password

SmartCVS Tutorial. Starting the putty Client and Setting Your CVS Password SmartCVS Tutorial Starting the putty Client and Setting Your CVS Password 1. Open the CSstick folder. You should see an icon or a filename for putty. Depending on your computer s configuration, it might

More information

Contents. Signing In... 3 Answering Your Personal Security Question... 4 Forgetting Your Password... 4 Exploring the Learning Center Interface...

Contents. Signing In... 3 Answering Your Personal Security Question... 4 Forgetting Your Password... 4 Exploring the Learning Center Interface... User Guide Contents Logging On... Signing In... Answering Your Personal Security Question... 4 Forgetting Your Password... 4 Exploring the Learning Center Interface... 5 Understanding Icons... 5 Understanding

More information