CSCE 206 Lab Structured Programming in C

Slides:



Advertisements
Similar presentations
Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Advertisements

How to Use Stowe School District
Version Control System (Sub)Version Control (SVN).
1 CSCI N305 C Language Programming Welcome to CSCI N305! Compiling Your First Program Using Microsoft Visual Studio 2008.
Zhang Hongyi CSCI2100B Data Structures Tutorial 2
ENEE150: Discussion 1 Section 0104 Please Sit Down at a Computer and Login!
CSCI 1411 FUNDAMENTALS OF COMPUTING LAB Lab Introduction 1 Shane Transue MSCS.
Your First C++ Program Aug 27, /27/08 CS 150 Introduction to Computer Science I C++  Based on the C programming language  One of today’s most.
CS1020: Intro Workshop. Topics CS1020Intro Workshop Login to UNIX operating system 2. …………………………………… 3. …………………………………… 4. …………………………………… 5. ……………………………………
Course Introduction and Getting Started with C 1 USF - COP C for Engineers Summer 2008.
Downloading and Installing AutoCAD Architecture 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the software.
1 Mapping a Drive on the USF IIS Server. 2 Mapping a Drive To map a drive to a network file directory in Windows you must be on a Microsoft local area.
A crash course in njit’s Afs
Adding an image to a page in Dreamweaver Uploading files to x10hosting Editing uploaded files in x10hosting Adding links in Dreamweaver Uploading linked.
HCare access on an iPad hCare access is the remote access to PGH. The steps for installing vary from the Mac somewhat. This will guide you. Installation.
Microsoft Windows 2003 Server. Client/Server Environment Many client computers connect to a server.
Panorama High School E.G.P./ Training to Put Students’ Grades on the Website Wednesday, September 29,
Hello World In C++ and Microsoft Visual C++. Directions to begin a project 1. Go to All Programs 2. Open Visual Studio C++ 3. Click on New Project 4.
Intro to C++. Getting Started with Microsoft Visual Studios Open Microsoft Visual Studios 2010 Click on file Click on New Project Choose Visual C++ on.
Drexel University Software Engineering Research Group 1 Eclipse for SE101.
CSCI-A110 Lab Welcome!. Overview: a busy 1 st day Welcome – Introduction Purpose of the lab Course Structure/Grading Online Course Material (Oncourse)
1 Working with MS SQL Server Textbook Chapter 14.
TAMU CSCE 313 (the basics). Basic Unix/Linux programming Accessing CS systems  PuTTY (putty.exe) – a Telnet and SSH client  Common hosts: unix.cs.tamu.edu.
1 ITI 1120 Lab # 1 An Introduction to the Lab Environment Contributors: G. Arbez, M. Eid, D. Inkpen, A. Williams, D. Amyot.
Booting Ubuntu Linux Live CSCI 130 – Fall 2008 Action Lab Dr. W. Jones.
1. 2 Introductions  Name?  What do you want to get out of this session?  To follow along with this presentation go to
Basic Instructions on how to use One Drive and share files. ONE Drive Your LogoYour own footer.
Downloading and Installing Autodesk Revit 2016
1 Lab 2 “Hello world” in Unix/Linux #include "std_lib_facilities_4.h" int main(){ cout
ENEE150 – 0202 ANDREW GOFFIN Introduction to ENEE150.
Downloading and Installing Autodesk Inventor Professional 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the.
Go to your school’s web locker site Your user name is the first letter of your first name, the first four letters of.
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
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.
Getting Started Introduction Section 0 Lecture 1 Slide 1 Section 0 Slide 1 INTRODUCTION TO Modern Physics PHYX 2710 Fall 2004 Intermediate Lab Fall.
C++ LANGUAGE TUTORIAL LESSON 1 –WRITING YOUR FIRST PROGRAM.
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.
Introduction to Eclipse Programming with an Integrated Development Environment.
ENEE150: Discussion 1 Section 0104/0105 Please Sit Down at a Computer and Login!
Practical Kinetics Exercise 0: Getting Started Objectives: 1.Install Python and IPython Notebook 2.print “Hello World!”
Dr. Sajib Datta Jan 16,  The website is up.  Course lectures will be uploaded there ◦ Check regularly for assignments and update.
Linux CSE 1222 CSE1222: Lecture 1BThe Ohio State University1.
Assignprelim.1 Assignment Preliminaries © 2012 B. Wilkinson/Clayton Ferner. Modification date: Jan 16a, 2014.
Tutorial Six Linux Basics CompSci Semester Two 2016.
Precept I : Lab Environment, Unix, Bash, Emacs
ICE Integrated Cloud Environment Cloud Scanning and Mobile Printing
ENEE150 Discussion 01 Section 0101 Adam Wang.
First Day in Lab Making a C++ program
Development Environment
CS1010: Intro Workshop.
COMP 170 – Introduction to Object Oriented Programming
Services Course 9/9/2018 3:37 PM Services Course Windows Live SkyDrive Participant Guide © 2008 Microsoft Corporation. All rights reserved.
Assignment Preliminaries
Introduction to C Topics Compilation Using the gcc Compiler
Bomgar Remote support software
Week 1 Gates Introduction to Information Technology cosc 010 Week 1 Gates
Lab 10 Instructions You can use g++ on build server, visual studio on local machine or your preferred C++ IDE. Important Note: For your grade, please show.
Introduction to CS Your First C Programs
How to Run a Java Program
CSCE 206 Lab Structured Programming in C
Welcome to Intro to C/C++ CISC 192
Getting Started: Amazon AWS Account Creation
How to Run a Java Program
Stata Basic Course Lab 2.
2019 Mt. Hebron High School AP Registration in Naviance
CS31 Discussion 1H Fall18: week 1
CS31 Discussion 1H Winter19: week 1
Welcome to Intro to C/C++ CISC 192
Presentation transcript:

CSCE 206 Lab Structured Programming in C Spring 2019 Lecture 1

TA Luna Backes Email: luna.backes@tamu.edu Office: HRBB 525 Office Hours: M & W @ 2:30 PM – 4:00 PM* Lab Homepage: http://people.tamu.edu/~luna.backes/csce206_spring19.html * If you have a conflict, please let me know! * I am available between labs M & W @ 5:10-5:40 PM * I am also available by email and TAMU’s Google Hangouts

Peer Teachers Section 501: Mark McCauley, Miguel Sortos Section 502: Mark McCauley, Roesha Nigos Details: https://engineering.tamu.edu/cse/academics/peer-teachers/current-peer- teachers.html

Lab Highlights Problem solving using C programming language 5 programming assignments, each consisting of 3-5 typical problems gcc compiler of departmental linux server will be used for lab and assignments You can use IDE like visual studio and xcode for learning Try to utilize the lab hours efficiently Group study is helpful to share ideas about coding style and debugging You must work out your lab assignments individually Google and StackOverflow are your best friends!

Grading Rubrics Each assignment is worth 100 points. Grade distribution of each assignment will be given in the instruction. Grading Rubrics: Successful Execution: 80% Valid File Naming: 5% Developer Comments: 5% Code Indentation: 5% Well organized code and interpretable output: 5% eCampus submission Late penalty: 25% points per day Details: http://people.tamu.edu/~luna.backes/instructions.html

Workflow by example

Basic Setup – Step 1 Claiming your Computer Science account: https://wiki.cse.tamu.edu/index.php/Claiming_Your_Computer_Science_Accounts *URL starting with wiki.cse.tamu.edu can not be accessed directly off campus. You need to use TAMU VPN for that. Details: https://it.tamu.edu/Network_and_Internet_Access/Virtual_Private_Networks/Virtual_Private_Network_VPN/index.php

Basic Setup – Step 2 Mapping your Home Directory (Already done in your lab computer, H: drive in file explorer) You have to map H: drive in your own computer for remote access. Windows: open folder explorer  Click in “This PC”  Click on the “Computer” tab  Click in “Map network drive”  Select “H:” drive (or any empty)  Folder: \\coe-fs.engr.tamu.edu\Ugrads  Finish  (see details below to sign in) Mac: Using Finder, select Go to Server. Type smb://coe-fs.engr.tamu.edu/Ugrads in the box A dialogue box will ask for authentication. Username is AUTH\your_netid and password is your TAMU password. Replace “your_netid” by YOUR netid Details*: https://wiki.cse.tamu.edu/index.php/Accessing_Your_Files *URL starting with wiki.cse.tamu.edu can not be accessed directly off campus. You need to use TAMU VPN for that. Details: https://it.tamu.edu/Network_and_Internet_Access/Virtual_Private_Networks/Virtual_Private_Network_VPN/index.php

1. Create a folder Create a folder named CSCE206 in your home directory Within this folder, create another folder named lab1 Remember, no space in file name or folder name!

2. Write the code Using notepad++ or or any text editor, open a file and write the hello world code Save the file as my_code.c. Make sure that there is no space in filename. Once the file is saved, the lines should change color Only if you use a text editor that does that (like Notepad++ or xcode)

1st Program- “Hello, World!” /* First program */ #include <stdio.h> int main(void) { printf("Hello, world!\n"); return 0; }  Important: if you copy paste your code from here, it might introduce weird characters when you paste it in the text editor. If you get many errors compiling, try to delete and rewrite the special characters: /, *, #, <, {, }, (, ), “, . and ;

3.1. Windows: Connect to Server Open PuTTY and follow the instruction here under basic configuration: https://wiki.cse.tamu.edu/index.php/PuTTY Use linux2.cs.tamu.edu as host name. Press Save and then press Open If you are doing this for the first time, a dialogue box will appear. Press Yes. Use your netid and password for access

3.2. Mac: Connect to Server Open “iTerm” or “terminal” Type ssh -l your_netid linux2.cs.tamu.edu Use your credentials to access the server When you type the password, you won’t be able to see anything, just keep typing it and press enter If you take too long to type your password, the connection will close. If that happens, close PuTTY and reopen it again.

4. Go to proper directory You are currently in your home directory. Use linux commands “ls” and “cd directoryname” to navigate ls lists all the directories and files in your current directory (directories appear blue, files appear green, color may vary) cd allows you to navigate into the directory you specify. To move back up to the parent level, use the command “cd ..” Some basic commands: http://people.tamu.edu/~luna.backes/unix.html

4. Go to proper directory Red boxes show the ls command Blue boxes show the cd command

5. Compiling the code Once you are in the directory with the code file, run the command: gcc my_code.c –o my_code Where “gcc” is the compiler, my_code.c is the file with your code (EXACTLY as shown by ”ls”) and my_code will be the output executable generated by the compiler If the code compiles successfully, a new file “my_code” will be created Use ls command to check If the code does not compile, it will show some error. Debug the code. Google the error or ask if you don’t know how to proceed. Run “./my_code” command to run the executable You will see that “Hello,world!” is printed on console screen.

5. Compiling the code Red boxes: gcc command Blue boxes: output command

You have written your 1st code in the lab!  Congratulations! You have written your 1st code in the lab! 

Off Campus access Download TAMU VPN. Use it to access the server. Link: https://it.tamu.edu/Network_and_Internet_Access/Virtual_Private_Networks/Virtu al_Private_Network_VPN/index.php Map you home directory in you personal computer http://people.tamu.edu/~nirjhar71/remote%20use.html Download and setup PuTTY for Windows. For Mac, use ssh in a terminal. https://wiki.cse.tamu.edu/index.php/PuTTY

Practice Problem (Won’t be graded) Problem 1. Write a program that prints out a two-line message of your own choosing. Problem 2. Write a program with a char variable and an int variable and store the value 'E' and 5 in them. Print them on a line with a message saying what each one is. Example: "char: E, int: 5"