CSCE 206 Lab Structured Programming in C

Slides:



Advertisements
Similar presentations
An Introduction to Programming By :- Vishal Hirani B.Tech II year (CSE)
Advertisements

Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Connecting to GMT machine via Windows 7. Windows PuTTy GMT on Mac server int-038.geosci.usyd.edu.au To use GMT, you will connect to a Mac server via PuTTy.
Zhang Hongyi CSCI2100B Data Structures Tutorial 2
ENEE150: Discussion 1 Section 0104 Please Sit Down at a Computer and Login!
1 Class motto: What’s this button for?. 2 CMSC104 Problem Solving and Computer Programming Fall 2011 Section 4 Richard Chang.
Using XCode © 2013 Surajit A Bose De Anza College.
CSCI 1411 FUNDAMENTALS OF COMPUTING LAB Lab Introduction 1 Shane Transue MSCS.
COP 3275 COMPUTER PROGRAMMING USING C Instructor: Diego Rivera-Gutierrez
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.
Dayu Zhang 9/3/2014 Lab01. Lab Instructor: Dayu Zhang Office Hour Mon/Wed 10:40am – 11:10am Room A201 Lab Website
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.
CPSC 203 Introduction to Computers Lab 21, 22 by Jie (Jeff) Gao Location: ES650.
A crash course in njit’s Afs
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
Gator Engineering 1 Chapter 2 C Fundamentals Copyright © 2008 W. W. Norton & Company. All rights reserved.
1 Agenda Administration Background Our first C program Working environment Exercise Memory and Variables.
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)
Lecture 0 CIS 208 C Language Lab Wed. January 12, 2005.
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 Lab 2 “Hello world” in Unix/Linux #include "std_lib_facilities_4.h" int main(){ cout
ENEE150 – 0202 ANDREW GOFFIN Introduction to ENEE150.
CMSC 104, Version 8/061L01Introduction.ppt Introduction CMSC 104 Problem Solving and Computer Programming.
Run your first C program.  Bring your computers to class  No prior programming experience is needed  Hours spent  Sakai  TAs.
CPSC 203 Introduction to Computers T43, T46 & T68 TA: Jie (Jeff) Gao.
Getting Started Introduction Section 0 Lecture 1 Slide 1 Section 0 Slide 1 INTRODUCTION TO Modern Physics PHYX 2710 Fall 2004 Intermediate Lab Fall.
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.
ENEE150: Discussion 1 Section 0104/0105 Please Sit Down at a Computer and Login!
Dr. Sajib Datta CSE Spring 2016 INTERMEDIATE PROGRAMMING.
Dr. Sajib Datta Jan 16,  The website is up.  Course lectures will be uploaded there ◦ Check regularly for assignments and update.
Dr. Sajib Datta Jan 15,  Instructor: Sajib Datta ◦ Office Location: ERB 336 ◦ Address: ◦ Web Site:
L071 Introduction to C Topics Compilation Using the gcc Compiler The Anatomy of a C Program Reading Sections
 CSC 215 : Procedural Programming with C C Compilers.
Assignprelim.1 Assignment Preliminaries © 2012 B. Wilkinson/Clayton Ferner. Modification date: Jan 16a, 2014.
1 CS 192 Lecture 4 Winter 2003 December 8-9, 2003 Dr. Shafay Shamail.
Tutorial Six Linux Basics CompSci Semester Two 2016.
Precept I : Lab Environment, Unix, Bash, Emacs
ENEE150 Discussion 01 Section 0101 Adam Wang.
Development Environment
CS1010: Intro Workshop.
CSE 220 – C Programming C Fundamentals.
COMP 170 – Introduction to Object Oriented Programming
Welcome to CSCI 230! Problem Solving using C
Assignment Preliminaries
Introduction to C Topics Compilation Using the gcc Compiler
CSE1320 INTERMEDIATE PROGRAMMING
CSE1320 INTERMEDIATE PROGRAMMING
Week 1 Gates Introduction to Information Technology cosc 010 Week 1 Gates
CSE1320 INTERMEDIATE PROGRAMMING
CSE1320 INTERMEDIATE PROGRAMMING
C Programming Lecture Series
Some Tips for Using Eclipse
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.
CSCE 121: Program Design and Concepts Lab
Introduction to CS Your First C Programs
CSE1320 INTERMEDIATE PROGRAMMING
Welcome to Intro to C/C++ CISC 192
Govt. Polytechnic,Dhangar
CSE1320 INTERMEDIATE PROGRAMMING
Let’s start from the beginning
CSCE 206 Lab Structured Programming in C
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 Fall 2018 Lecture 1

TA Ehsanul Haque Nirjhar Email: nirjhar71@tamu.edu Office: TBA Office Hours: Tuesday 1:00 PM – 2:30 PM Wednesday 9:30 AM – 11:00 AM Lab Homepage: http://people.tamu.edu/~nirjhar71/CSCE206-home.html * You can call me Ehsan or Nirjhar, whichever you like  * Emails received after 8 PM will be attended on the following day

Peer Teachers Section 501: Christopher Comeaux, Phat Nguyen Section 502: Christopher Comeaux, Leuel Asnake Section 503: Grant Ballard, Phat Nguyen Section 504: Nathan Brockway Details: https://engineering.tamu.edu/cse/academics/peer-teachers/current-peer-teachers.html

Lab Schedule Section 501: MW 04:10 pm - 05:00 pm @ RDMC 111J Section 503: TR 03:55 pm - 04:45 pm @ RDMC 111J Section 504: TR 05:30 pm - 06:20 pm @ RDMC 111J

Lab Highlights Problem solving using C programming language 5 programming assignments, each consisting of 3-5 typical problems gcc complier of departmental linux server will be used for lab and assignment purpose You can use IDE like visual studio, xcode etc for learning Keep up with Professor’s lecture. Try to utilize the lab hours efficiently. Group study is helpful to share ideas about coding style and debugging techniques You must work out your lab assignments individually Google and YouTube 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/~nirjhar71/Regulations.html

Let’s start!

1st Program- “Hello, World!” /* First program */ #include <stdio.h> int main(void) { printf("Hello, world!\n"); return 0; }

Basic Setup – Step 1 Claiming your Computer Science account: https://wiki.cse.tamu.edu/index.php/Claiming_Your_Computer_Science_Accoun ts *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_VP N/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: Type \\coe-fs.engr.tamu.edu\Ugrads in file explorer box 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. 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 sublime text (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

3. Connect to Server(for Windows) 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 first time, a dialogue box will appear. Press Yes. Use your netid and password for access

3. Connect to Server(for Mac) Open “terminal” Type ssh –l your_netid linux2.cs.tamu.edu Use your credentials to access the server

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). 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: https://wiki.cse.tamu.edu/index.php/Basic_UNIX_Commands

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 code_filename.c –o output_filename” For this case, run the command “gcc my_code.c –o my_code” If the code does not compile, it will show some error. Debug the code. If the code compiles successfully, a new file named as output_filename(my_code in this case) will be created. Use ls command to check Run “./output_filename” command to compile the code. In this case, the command is “./my_code”. You will see that “Hello,world!” is printed on console screen.

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

Congratulation! 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/Virtual_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 terminal. https://wiki.cse.tamu.edu/index.php/PuTTY Now, you can access the server and use it for coding.

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"

Thank You!