Agenda What is Computer Programming? The Programming Process

Slides:



Advertisements
Similar presentations
Write a program step by step. Step 1: Problem definition. Given the coordinate of two points in 2-D space, compute and print their straight distance.
Advertisements

Introduction to Fortran and Fortran Compiling. Outline  Surfing websitewww.mcsr.olemiss.edu  Logging into the system via ssh 
Jump to first page Unix Commands Monica Stoica Jump to first page Introduction to Unix n Unix was born in 1969 at Bell Laboratories, a research subdivision.
Winmail.dat what it is and what to do with it This guide tells you all about winmail.dat files and the WMDecode decoder Instructions for installing WMDecode.
What is MySQL? MySQL is a relational database management system (A relational database stores data in separate tables rather than putting all the data.
CSCI 1411 FUNDAMENTALS OF COMPUTING LAB Lab Introduction 1 Shane Transue MSCS.
1 The Internet Ideas formulated in the early 1960’s. Fundamental work done around Some steps involved: –Creating the network idea. –Creating the.
Using Pine to send your ICS111 homework First Log in into UNIX using SSH either from home (If you have previously installed SSH or from the Lab. Once in.
CIS101 Introduction to Computing Week 05. Agenda Your questions CIS101 Survey Introduction to the Internet & HTML Online HTML Resources Using the HTML.
CIS101 Introduction to Computing
The Internet. Telnet Telnet means using your computer as a terminal. All commands you type are sent to the host computer you are connected to and executed.
Introduction to HTML 2006 INT197B. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
Course Introduction and Getting Started with C 1 USF - COP C for Engineers Summer 2008.
UNIX chapter 03 Getting Started Mr. Mohammad Smirat.
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
CPSC 203 Introduction to Computers Lab 21, 22 by Jie (Jeff) Gao Location: ES650.
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 4P. 1Winter Quarter Introduction to UNIX.
Copyright 2003 Scott/Jones Publishing Brief Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
How To Batch Register Your Students
Introductory PC Self-Paced Training IT Services 2006.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
BIF713 Operating Systems & Project Management Instructor: Murray Saul
CS110/CS119 Introduction to Computing (Java)
COMP1070/2002/lec3/H.Melikian COMP1070 Lecture #3 v Operating Systems v Describe briefly operating systems service v To describe character and graphical.
Notes Assignment #1 is due next Friday by 11:59 pm via Test #1 will be held Thursday February 18 at the start of class (one period long) Format:
CS105 Lab 1 – Introduction Section: ??? TA: ??? ??? Announcements CITES Accounts Compass Netfiles Other Administrative Information CS105 Fall
Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lect 4P. 1Winter Quarter Introduction to UNIX Lecture 4.
CPSC203 Introduction to Computers Lab 69 By Jie Gao.
Agenda User Profile File (.profile) –Keyword Shell Variables Linux (Unix) filters –Purpose –Commands: grep, sort, awk cut, tr, wc, spell.
Agenda Overview of Seneca Computer System –File Servers / Student Computer Accounts –Telnet application –How to Logon to Learn / Phobos accounts How to.
IPC144 Introduction to Programming Using C Week 1 – Lesson 2
Chapter Three The UNIX Editors. 2 Lesson A The vi Editor.
HTML Hyper Text Markup Language A simple introduction.
FTP Server and FTP Commands By Nanda Ganesan, Ph.D. © Nanda Ganesan, All Rights Reserved.
CS240 Computer Science II Introduction the Unix File System and File Related Utilities Based on “UNIX for Programmers and Users” by G.Class and K. Ables.
1 ITI 1120 Lab # 1 An Introduction to the Lab Environment Contributors: G. Arbez, M. Eid, D. Inkpen, A. Williams, D. Amyot.
The DSpace Course Module – An introduction to users and groups.
Introduction to Unix (CA263) Getting Started By Tariq Ibn Aziz.
1 Programming in C Hello World! Soon I will control the world! Soon I will control the world!
Diagnostic Pathfinder for Instructors. Diagnostic Pathfinder Local File vs. Database Normal operations Expert operations Admin operations.
Compiling a C Program. Before we can begin we must open a telnet session to phobos. There are a number of ways to do this, but the easiest is to click.
CMSC 104, Version 8/061L01Introduction.ppt Introduction CMSC 104 Problem Solving and Computer Programming.
Unix and Samba By: IC Labs (Raj Kidambi). What is Unix?  Unix stands for UNiplexed Information and Computing System. (It was originally spelled "Unics.")
Using the remote access option on the lab computers Fall 2005.
Agenda Steps to Obtain your Phobos and Matrix Accounts. How to use a Telnet Application to Access your Phobos and Matrix Accounts How to Create an Effective.
Agenda Overview of Seneca Computer System File Servers / Student Computer Accounts Telnet application How to Logon to Learn / Phobos accounts How to Change.
Creating Programs on UNIX This term you can create programs on UNIX or you can create programs using a C++ compiler on your PC. This set of slides steps.
Introduction to Unix (CA263) File Editing By Tariq Ibn Aziz.
Chapter Three The UNIX Editors.
Introduction to Python Lesson 1 First Program. Learning Outcomes In this lesson the student will: 1.Learn some important facts about PC’s 2.Learn how.
Introduction to Programming Using C An Introduction to Operating Systems.
Agenda Computer Languages How to Write a Simple C Program
Introduction to UNIX CS 2204 Class meeting 1 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
1 Day 2 Logging in, Passwords, Man, talk, write. 2 Logging in Unix is a multi user system –Many people can be using it at the same time. –Connections.
Remote Access Usages. Remote Desktop Remote desktop technology makes it possible to view another computer's desktop on your computer. This means you can.
Unix Servers Used in This Class  Two Unix servers set up in CS department will be used for some programming projects  Machine name: eustis.eecs.ucf.edu.
1 Getting Started with C++ Part 2 Linux. 2 Getting Started on Linux Now we will look at Linux. See how to copy files between Windows and Linux Compile.
FTP COMMANDS OBJECTIVES. General overview. Introduction to FTP server. Types of FTP users. FTP commands examples. FTP commands in action (example of use).
Agenda Overview of Seneca Computer System File Servers / Student Computer Accounts Telnet application How to Logon to Learn / Phobos accounts How to Change.
1. Starting 1 Let’s Learn Saenthong School, January – February 2016 Teacher: Aj. Andrew Davison, CoE, PSU Hat Yai Campus
BIF703 FTP (File Transfer Protocol) Utility vi editor Utility.
CACI Proprietary Information | Date 1 PD² SR13 Client Upgrade Name: Semarria Rosemond Title: Systems Analyst, Lead Date: December 8, 2011.
Linux CSE 1222 CSE1222: Lecture 1BThe Ohio State University1.
First Day in Lab Making a C++ program
Guide To UNIX Using Linux Third Edition
Welcome to CSCI 230! Problem Solving using C
Creating Programs on UNIX
IPC144 Introduction to Programming Using C Week 1 – Lesson 2
BSc in Digital Media, PSUIC
Presentation transcript:

Agenda What is Computer Programming? The Programming Process Steps to Create Your Phobos Account Steps to Create a Program Create Source Code with Text Editor Compile Program Run Program

What is Computer Programming? The job of a computer programmer is to give instructions to tell the computer what to do. Process Data Store Data Accept input Provide output (information) Programming: The ability to tell the computer how data is to be processed

Steps to Create a Program Determine Requirements for Program (Input, Outputs, formulas & processes) Plan out Program Write Program (Create source Code using text editor) Compile Program (Convert source code to machine language) Test (Run) Program

Phobos & Learn Accounts In order to perform programming labs and assignments, you will require a Phobos account. You may have received (by mail) instructions on how to obtain your Learn and Phobos accounts If you did not receive instructions on how to create a Phobos account (via mail), please see my course notes for link. PHOBOS Account to create, compile and run programs LEARN Account to send and receive e-mail messages

Steps to Create Phobos Account 2. Check Learn e-mail for Phobos username & password 1. Learn account created Activate SIRIS account Run Telnet application to access Phobos acct. Phobos account created 3. You will learn how to create your Phobos account in ICS124 course…

What is the Telnet Application? Unix systems such as PHOBOS were originally designed to accommodate “dumb terminals” which were simply monitors and keyboards directly connected up to network Telnet allows the server to “think” that the user’s personal computer is a “dumb terminal” A common type of “dumb terminal” was Digital Equipment corporation’s VT100.

Telnet Application To launch or “run” the Telnet application from the Seneca computing lab, point and click onto the application “telnet” on the Windows 95 desktop You can obtain a free version of Telnet application for home use (assuming you have computer system with modem). More details in provided in ICS124 course.

Open Session For all Telnet applications, you must specify which server that you will connect For this Telnet application, you must point and click onto the File menu, select Open and type the server name (such as phobos). If you are logging in from another ISP you must provide the full domain name of the server (such as phobos.senecac.on.ca). Refer to ICS124 notes on where to access and download telnet application.

Logging Onto Your Phobos Account After you connect to the phobos server, you must type in your username (should be on your Seneca “one-card”) and your password. The password will be provided to you by an e-mail message in your LEARN account. It is important to get your LEARN account as soon as possible!

Learning Phobos Commands The operating system for Phobos is Unix, therefore it is recommended to learn Unix commands throughout this course How to Learn Unix Commands: ICS124 Course “Introduction to Seneca’s IBM RS/6000” (at back of Subject Notes for IPC144)

Let’s Create a Program! In order to write programs, you need a text editor that can create, edit and save programming instructions (also referred to as “source code”). A text editor differs from a word processing application (such as MS-Word) in that it does not contain special formatting characters (that can cause programs when converting to machine code to run)

Nled Text Editor Types of Text Editors in Phobos pico vi nled stands for “Neat Little Editor” and was written by one of Seneca’s Computer Studies’ Faculty members – Evan Weaver. Select a text editor that you feel comfortable using. (ICS124 course recommends nled)

Creating a Source File Logon to PHOBOS via telnet At the Unix prompt type nled file.c <ENTER> c extention indicates that file Contains C programming Instructions (source file)

The Nled Text Editor Common nled Commands: <ESC><?> Displays help menu <ESC><x> Save file & exit You will learn additional nled commands in ICS124 course

Compiling a Program After you use an editor to create a file containing your programming code, you are required to compile your source code to make the file executable. This compiling process converts your source file into machine language that the computer can understand and execute efficiently Executable File Edited File Compiler

Compiling a Program Although there is more than one Unix command that may be used to compile a program, we will show you the cc Unix command. There are two different options of using the cc compiling command. One options creates an executable file called “a.out”, the other option allows the user to name the executable file.

Compile & Run Program At the Unix prompt in Phobos, type cc file.c and press ENTER If there are no programming code errors, an executable file will be created called a.out You would need to type a.out followed by ENTER to run the program

Logging-off Phobos Always log-off of your Phobos account and exit the Telnet Application before you leave your terminal To log-off of your Phobos account, type the following command at the Phobos prompt: logout <ENTER> (or exit or <CTRL><D>) After your session is disconnected, exit the Telnet application

Homework Please obtain study notes for IPC144 by Evan Weaver, and read pages 1 to 18 for next week’s classes. Try completing assignment #0 for practice (next week, I will show you how to send typescript file to the line printer)