CSCI S-1 Section 3. Deadlines for Homework 2 Problems 1-8 in Parts C and D – Friday, July 3, 17:00 EST Parts E and F – Tuesday, July 7, 17:00 EST.

Slides:



Advertisements
Similar presentations
Introduction to the Omega Server CSE Overview Intro to Omega Basic Unix Command Files Directories Printing C and C++ compilers GNU Debugger.
Advertisements

ENEE150: Discussion 1 Section 0104 Please Sit Down at a Computer and Login!
1 Introduction to UNIX Ke Liu
NETW-240 Shells Last Update Copyright Kenneth M. Chipps Ph.D. 1.
Dayu Zhang 9/8/2014 Lab02. Example of Commands pwd --- show your current directory This is home of venus, not your home directory Tilde: means you are.
CSCI 1411 FUNDAMENTALS OF COMPUTING LAB Lab Introduction 1 Shane Transue MSCS.
Introducing the Command Line CMSC 121 Introduction to UNIX Much of the material in these slides was taken from Dan Hood’s CMSC 121 Lecture Notes.
How do we make our HelloTester.java program do something? The java in our HelloTester.java file won’t do anything by itself. We need to tell the computer.
Working Environment - - Linux - -.
Java Intro. A First Java Program //The Hello, World! program in Java public class Hello { public static void main(String[] args) { System.out.println("Hello,
CS1020: Intro Workshop. Topics CS1020Intro Workshop Login to UNIX operating system 2. …………………………………… 3. …………………………………… 4. …………………………………… 5. ……………………………………
Dayu Zhang 9/3/2014 Lab01. Lab Instructor: Dayu Zhang Office Hour Mon/Wed 10:40am – 11:10am Room A201 Lab Website
1 Basics of Linux On linux machine: Login at your home directory Open a “shell” or “terminal” or “xterm” workspace (4) On windows machine Intall linux.
Editing Java programs with the BlueJ IDE. Working environments to develop (= write) programs There are 2 ways to develop (write) computer programs: 1.Using.
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
Shorthand operators.
Learning basic Unix command IT 325 operating system.
ITCS 4/5145 Parallel Programming, UNC-Charlotte, B. Wilkinson, 2012, Jan 18, 2012assignprelim.1 Assignment Preliminaries ITCS 4145/5145 Spring 2012.
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction Unix-like system is everywhere Linux Android for smartphones Google Chrome OS for Chromebook Web.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
Java Spring PImage Let’s look at the PImage class in ProcessingPImage –What are the fields (i.e., variables)? –What methods are available? –What.
1 N305 C Programming. 2 Objectives for the Lab ä Learn problem solving strategies ä Achieve intermediate knowledge of C Programming Language ä Gain experience.
1 Editing a C Program 01/16/15. 2 Objective Use Linux to edit, compile and execute a C program.
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
ITCS 4/5010 CUDA Programming, UNC-Charlotte, B. Wilkinson, Dec 28, 2012assignprelim.1 Assignment Preliminaries ITCS 4010/5010 Spring 2013.
ENEE150 – 0202 ANDREW GOFFIN Introduction to ENEE150.
Next Unix Topics Tuesday, 2/11 & 18/2014. Change Password (by 2/14/14) ssh to account on – faclinux.cse.ohio-state.edu – stdlinux.cse.ohio-state.edu passwd.
Introduction to UNIX Road Map: 1. UNIX Structure 2. Components of UNIX 3. Process Structure 4. Shell & Utility Programs 5. Using Files & Directories 6.
Linux Essentials Programming and Data Structures Lab M Tech CS – I 2014 Arijit Bishnu Ansuman Banerjee Debapriyo Majumdar.
Java Commodity Grid (Java CogKit) Java CogKits allow developers to use commodity technologies such as Java or Python in programming the Grid based on Globus.
Mixing integer and floating point numbers in an arithmetic operation.
Basic Unix Commands CGS 3460, Lecture 6 Jan 23, 2006 Zhen Yang.
Unix Environment Input Output 2  List Content (ls) ◦ ls (list current directory) ◦ ls –all (include hidden files/folders)  Make directory (mkdir) ◦
The assignment expressions. The assignment operator in an assignment statement We have seen the assignment statement: Effect: var = expr; Stores the value.
COP3502: Introduction to Computer Science Yashas Shankar Lecture #2.
More on Using onyx 8/28/13. Program 1 Due a week from today. See website for details.
Intro. To Unix commands For those who’ve never used Unix before Quick tutorial to let you move around your Unix Accounts No discussion of inner workings.
CSCI S-1 Section 4. Deadlines for Homework 2 Problems 1-8 in Parts C and D – Friday, July 3, 17:00 EST Parts E and F – Tuesday, July 7, 17:00 EST.
ENEE150: Discussion 1 Section 0104/0105 Please Sit Down at a Computer and Login!
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
Linux Stuff Last Update Copyright 2014 Kenneth M. Chipps Ph.D. 1.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
3/5/2002e-business and Information Systems1 Java Java Java Virtual Machine (JVM) Java Application Program Interface (API) HW Kernel API Application Programs.
ICE UNIX TUTORIAL. File System Commands cd – change directory cd – change directory ls – list contents ls – list contents rm – remove/delete rm – remove/delete.
Learning basic Unix command It 325 operating system.
Dr. Sajib Datta Jan 16,  The website is up.  Course lectures will be uploaded there ◦ Check regularly for assignments and update.
General Computer Science for Engineers CISC 106 Lecture 03 James Atlas Computer and Information Sciences 6/15/2009.
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
INTRODUCTION TO SHELL SCRIPTING By Byamukama Frank
Assignprelim.1 Assignment Preliminaries © 2012 B. Wilkinson/Clayton Ferner. Modification date: Jan 16a, 2014.
Tutorial Six Linux Basics CompSci Semester Two 2016.
ENEE150 Discussion 01 Section 0101 Adam Wang.
UNIX To do work for the class, you will be using the Unix operating system. Once connected to the system, you will be presented with a login screen. Once.
Getting started with CentOS Linux
Tutorial Six Recap & Linux Basics CompSci Semester Two 2016.
Linux 101 Training Module Linux Basics.
Andy Wang Object Oriented Programming in C++ COP 3330
Eric Shook Department of Geography Kent State University
Assignment Preliminaries
Intro to UNIX System and Homework 1
Lab 00 Discussion Linux Basics
Java Intro.
Getting started with CentOS Linux
Andy Wang Object Oriented Programming in C++ COP 3330
CSE 303 Concepts and Tools for Software Development
Java Tutotrial for [NLP-AI] 2
DIBBs Brown Dog Tutorial Setup
Presentation transcript:

CSCI S-1 Section 3

Deadlines for Homework 2 Problems 1-8 in Parts C and D – Friday, July 3, 17:00 EST Parts E and F – Tuesday, July 7, 17:00 EST

Connecting to your FAS account (nice.fas.harvard.edu) Mac OS: Terminal – Windows: SecureCRT – Downloads site –

Getting around in Linux Listing files Changing directories Making directories Removing directories Removing files Copying files Moving files Print file to monitor Your present working directory ls cd mkdir rmdir rm cp mv cat pwd

Using Nano To edit a textfile – nano filename Inside nano – control+O to save – control+X to exit – additional commands explained in the help at the bottom of the screen.

Submitting Homework Setup your account by running ~libs1/pub/bin/s1setup Execute the logout command by typing logout and then enter Login again and make a directory to hold all of your homework – mkdir s1 Get into s1 – cd s1 Make a directory for parts C, D (ps21) and E, F (ps22) – mkdir ps21 – mkdir ps22 Test-drive the submit tool by submitting a temporary part 1 – s1submit ps21 NB: Your last submission is the one timestamped and graded.

Java Exercises Type up this simple program in nano and save it as section3.java class section3 { public static void main(String [] args) { System.out.println("Hello!"); } Compile it: javac section3.java Run it:java section3

Java Exercises Write a java program that will print the following H E L L O \ \ _ "." JAVA Programming class section3a { public static void main(String [] args) { System.out.println("H E L L O\\\\_ \".\""); System.out.println("JAVA"); System.out.println("Programming"); } }

Java Exercises Rewrite the program using one method to print each line class section3b { static void firstLine() { System.out.println("H E L L O\\\\_ \".\""); } static void secondLine() { System.out.println("JAVA"); } … public static void main(String [] args) { firstLine(); secondLine(); thirdLine(); } }

Understanding Variable Scope class section3c { static int x, y, z; static void first() { int x, y;x = 0; y = 1; System.out.println("x = " + x + ", y = " + y + " z = " + z); } static void second() { int z;y = 7; z = 1; System.out.println("x = " + x + ", y = " + y + " z = " + z); } static void third() { int y;x = 7; y = 1; System.out.println("x = " + x + ", y = " + y + " z = " + z); } public static void main(String [] args) { x = 2; y = 2; z = 3; first(); second(); third(); }

Understanding Variable Scope (cont) class section3c { … public static void main(String [] args) { x = 2; y = 2; z = 3; System.out.println("x = " + x + ", y = " + y + " z = " + z); first(); second(); third(); System.out.println("x = " + x + ", y = " + y + " z = " + z); } x = 2, y = 2 z = 3 x = 0, y = 1 z = 3 x = 2, y = 7 z = 1 x = 7, y = 1 z = 3 x = 7, y = 7 z = 3