C Fundamentals CGS 3460, Lecture 5 Jan 20, 2006 Hen-I Yang.

Slides:



Advertisements
Similar presentations
And Optional Tour of GCCs High Tech Center 1. Advice about how to start an Open Entry course and successfully finish Brief introduction to HTC guidelines.
Advertisements

And Optional Tour of GCC’s High Tech Center 1.  Advice about how to start an Open Entry course and successfully finish  Brief introduction to HTC guidelines.
School of Electrical and Computer Engineering ECE 400 Seminar Fall 2012.
CSc 2310 Principles of Programming (Java)
Welcome to Physics 2025! ( General Physics Lab 2 - Spring 2013)
Using CourseCompass Features You must already be registered or enrolled in a current class.
And Optional Tour of GCC’s High Tech Center 1.  Advice about how to start an Open Entry course and successfully finish  Brief introduction to HTC guidelines.
Using MyMathLab Features You must already be registered or enrolled in a current class.
CS150 Introduction to Computer Science 1 Professor: Chadd Williams.
Using CourseCompass Features You must already be registered or enrolled in a current class.
Need your MyMathLab card with your access code Need a Valid Address Need to know Purdue’s zip code is and your course ID for your Class You.
Need your MyMathLab card with your access code Need a Valid Address Need to know Purdue’s zip code is and your course ID for your Class You.
Need your MyMathLab card with your access code Need a Valid Address Need to know Purdue’s zip code is and your course ID for your Class You.
Using MyMathLab Features You must already be registered or enrolled in a current MyMathLab class in order to use MyMathLab. If you are not registered or.
Computer Science 102 Data Structures and Algorithms V Fall 2009 Lecture 1: administrative details Professor: Evan Korth New York University 1.
Welcome to CJ227: Criminal Procedure
Medical Law and Bioethics
The audio will be turned on just before our start time at 7:00 pm ET.
CS105 Lab 1 – Introduction Section: ??? TA: ??? ??? Announcements CITES Accounts Compass Netfiles Other Administrative Information CS105 Fall
Your User Name is the first portion of your Carleton Connect account eg. mroger4 if the was n.ca
BIT 115: Introduction To Programming1 Sit in front of a computer Log in –Username: 230class –password: –domain: student Bring up the course web.
MAT 331 Mathematical solving problem with computers.
Welcome to CS 3260 Dennis A. Fairclough. Overview Course Canvas Web Site Course Materials Lab Assignments Homework Grading Exams Withdrawing from Class.
MGS 351 Introduction to Management Information Systems
CSc 2310 Principles of Programming (Java) Dr. Xiaolin Hu.
CS 106 Introduction to Computer Science I 01 / 25 / 2010 Instructor: Michael Eckmann.
Course Introduction CSCI Software Engineering II Fall 2014 Bill Pine.
CS161 Topic #21 CS161 Introduction to Computer Science Topic #2.
Skyward Tips and Training
Welcome to IIT and cs115!.
ECEN 301Discussion #1 – Syllabus1 All Sections MWF 1:00 – 1:50 PM 256 CB Lecture: MW Recitation: F Labs: M or Th Instructor: Prof. David Long Office: CB.
Instructors begin using McGraw-Hill’s Homework Manager by creating a unique class Web site in the system. The Class Homepage becomes the entry point for.
1 Welcome New and Returning Faculty The ITU management wants you to have a successful, effective and productive Spring 2013 trimester.
Welcome to CS 115! Introduction to Programming. Class URL Write this down!
An Orientation: General Psychology Online. The Course Menu Shown on the far left is the menu used to navigate our Psychology course.
COP3502: Introduction to Computer Science Yashas Shankar.
Course Information Sarah Diesburg Operating Systems COP 4610.
Welcome to the MTLC MATH 115 Spring MTLC Information  Hours of Operation  Sunday:4:00pm – 10:00pm  Monday – Thursday: 8:00am – 10:00pm  Friday:8:00am.
Miami Lakes K-8 Center Mrs. DiDonna 5 th Grade Math.
Using MyMathLab Features of MyMathLab You must already be registered or enrolled in a current MyMathLab class in order to use MyMathLab. If you are not.
CSE 1105 Week 1 CSE 1105 Course Title: Introduction to Computer Science & Engineering Classroom Lecture Times: Section 001 W 4:00 – 4:50, 202 NH Section.
Introduction to Management
Introduction to Management
CM-220 Unit 1 Seminar Margaret Baker. Seminar Rules Try to be on time. Be respectful. We will have many people attending, so stay on task. If you enter.
MATH 113 Fall  Prerequisites: ◦ Grade of C – or better in Math 112  Every student must have an active “crimson” account for computer/course.
Welcome! Hello and welcome to English Composition 102, Introduction to Literature. I am looking forward to exploring, writing, and discussing literature.
1 CS 101 Today’s class will begin about 5 minutes late We will discuss the lab scheduling problems once class starts.
Return all calls within 24 hours Return within 24 hours Grade work within 48 hours Keep in touch with our students! Help YOU finish HOPE.
WELCOME TO MY CLASSROOM Mrs. Stavrou Grade 7 Language Arts.
1 Student Orientation. Hello and Welcome! This brief walkthrough is designed to help you become familiar with the ALEKS program and how it will be used.
MGS 351 Introduction to Management Information Systems Lecture #1.
Welcome to Human Behavior and the Social Environment Dawn Burgess, Ed. D.
Data Structures and Algorithms in Java AlaaEddin 2012.
C Fundamentals CGS 3460, Lecture 4 Jan 18, 2006 Hen-I Yang.
BIT 143: Programming-Data Structures1 Before Class Begins: Sit in front of a computer Log in –IF you don’t yet have an account, you can use the guest account.
CSE 1340 Introduction to Computing Concepts Class 1 ~ Intro.
Computer Networks CNT5106C
Course Information CSE 2031 Fall Instructor U. T. Nguyen /new-yen/ Office: CSEB Office hours:  Tuesday,
Welcome to Mrs. Collins’ Class Today we’ll discuss... Syllabus Rules Procedures.
Course Information CSE 2031 Fall Instructor U.T. Nguyen Office: CSE Home page:
1 1.Log in to the computer in front of you –Temp account: 210class / 2.Update your in Cascadia's system –If I need to you I'll use.
INTE 290 Summer 2015.
Welcome to MT140 Introduction to Management Unit 1 Seminar – Introduction to Management.
CSc 1302 Principles of Computer Science II
Introduction to Programming
Course Information Mark Stanovich Principles of Operating Systems
Using MyMathLab Features
Using MyMathLab Features
Using CourseCompass Features
BIT 115: Introduction To Programming
Presentation transcript:

C Fundamentals CGS 3460, Lecture 5 Jan 20, 2006 Hen-I Yang

Previously… Software Engineering: Implementing a software that solves real problems. 3 Examples of Problem Analysis. Importance of commenting

Agenda Administrivia Brief Explanation of Homework C Fundamentals (Chapter 2). Brief Introduction to UNIX

Administrivia: Web Site & Syllabus New course web site is now up and running. The URL remains the same: A discussion board has been setup with the new web site that allows you ask questions (so I and TAs can answer) or just have discussion with your fellow classmates. Syllabus has been updated with information with office hours, TA, course web site info, list of course topics, academic dishonesty section, UF counseling service information. Make sure you read the latest version on the web.

Administrivia: s Important Address to Remember: to this address for course material related questions. There will be on-duty TA to answer your question every weekday. Course administrative issues: your instructor directly to Hen-I Yang, Of course, you are always welcome to directly to any of the TAs. But the group mailing list above will give you a better chance for better turn around time. Remember, always put [CGS3460] in the subject. Clearly indicates [DO NOT POST] to indicate private communication.

Administrivia: About Next Week I will be out of town to a conference for the entire next week. All my office hours are cancelled. TA Zhen Yang will be giving tutorials on UNIX, compilations, and instruction on PC version of the software you can use to implement C programs. Make sure you attend these sessions so you know how to work on your assignments. Bring a laptop to class for the tutorial sessions if you have one. Grove accounts will be handed out via .  Read “Use of Computer” section of the syllabus.  Turn in your questionnaire to receive your account.  Come talk to me after class today if you’re not officially registered yet.

Assignment 1 Familiarize yourself with UNIX. Experience the 3-step procedure of edit- compile-execute. Hands-on exercise on the materials in chapter 2 of the textbook. Handed out on 1/25, and due 2/7 at midnight. Zhen Yang will be your main contact for this first assignment.

More about Assignments 75% correctness, 25% readability  Correctness is checked via automatic tools.  Cheating detection is also checked via automatic tools.  Readability is graded by TA manually, and it is possible that only part of the assignment will be selected for grading on the readability. Make sure you run on grove before you submit. You should keep a copy of the file, and do not touch it until you are certain there is no mistake on the test results and the grades. You have 2 weeks to talk to the TA in charge of that homework after you get the grade of that assignment- quiz set back. You should use only those instructions taught so far to complete each assignment.

Assignments: Where to Find Help? Your instructor (me) 3 TAs A total of 20 hours of office hour/week, plus additional appointments if necessary. Send to for week-round Discussion board and Q&A page on the course web site. Text book and material posted on the course web site.

I believe all of you are honest students, but unfortunately the history of this course has its share of unfortunate instances which seriously put my faith to test. You have my utmost trust and respect, but I strongly urge those who ever come across ideas of employing unfair actions in this class to reconsider. Please do not make me withdraw that trust and respect that you deserve. I am as serious as it can be when it comes to enforcing the dishonesty rules. Please go back and read the academic honesty section in the syllabus again, and read it carefully this time, as it describes in painful details regarding what are allowed from those forbidden. The Use of computer section also provides information that can help you protect yourself from being taking advantage of. There are serious and grim consequences for academic dishonesty, and I promise you that under no circumstances will I back away from the course of action described in the syllabus.

We have done everything we could to deter those who plan to cheat, and we will make every reasonable effort to make sure all is fair. Most important of all, you are here to learn. Cheating does not really harm me or TAs, but instead cheaters take advantages of the fellow classmates currently sitting in this very room, and cheaters are cheating oneself out of the opportunity to learn. This, to me, is injustice. This could be one of the least pleasant lectures ever, but in response to the lessons learnt from the previous offerings of this course, this matter has to be placed front and center for once, so there will be no miscommunications or misunderstandings on where the things stand. There is absolutely zero tolerance in this class for any form of dishonest behaviors. I cannot emphasize this enough before we hand out the first homework assignment next week. I will do my best within my capability to help you learn, and I am sure we’re going to have quite some fun throughout the semester.

Assignments: Customized questions. Different test cases. Cheating detection programs. Zero dishonesty tolerance.  Strictly follow the standard procedure.  First time offender (no priors in ANY COURSE): FACULTY ADJUDICATION FORM  By default STUDENT JUDICIAL AFFAIRS

Major components of C Program Directives Comments Function (main, and others) Declarations Statements

#include /** * First sample program of CGS 3460, spring 2006 * Author: Hen-I Yang * Date: Jan 10, 2006 * Version: 1.0 * Note: * Revision: **/ int main() { /* Declare a variable called name to store name collected */ char *name; /* Allocate Memory to Record User’s Name Collected */ name = (char *) malloc (25); /* Collect User’s Name (Name  Collect User’s Name) */ puts ("Please enter your name:"); scanf ("%20s", name); /* Print a Greeting Message (Name  Screen) */ printf ("Hello, %s\n", name); return 0; } directives comments declaration main() function statement

Elements of C Programs Comments (/* */ or //) Directives (include, constants) Global variable declarations Main function Statements Variables  Type  Declaration  Assignment  Initialization Identifiers

#include #define BUFFER _ LENGTH 25 int global _ count = 0; /** * First sample program of CGS 3460, spring 2006 * Author: Hen-I Yang * Date: Jan 10, 2006 * Version: 1.0 **/ int main() { /* Declare a variable called name to store name collected */ char *name; /* Allocate Memory to Record User’s Name Collected */ name = (char *) malloc (BUFFER_LENGTH); /* Collect User’s Name (Name  Collect User’s Name) */ puts ("Please enter your name:"); scanf ("%20s", name); printName(name); return 0; } Void printName(char * name) { /* Print a Greeting Message (Name  Screen) */ printf ("Hello, %s\n", name); }

Coding Conventions Make them readable Statements can be divided over lines Space between tokens Indentation Blank Lines or remarks between logical segments Limitations in breaking up token Limitations in breaking up inside the quotation marks Using // is not a good idea

3 Ways to Complete Your Programming Assignments Use Telnet Edited Locally, FTP, Compiled remotely Edited and compiled locally

Summary New web site and syllabus available. New and clearer policy to provide help. Tutorial sessions + Homework 1 assigned next week. Fundamentals of C.  Components of C Programs  Elements of C Programs

Before you go Make sure you finish reading Chapter 2. Try logging into grove once you receive account. Contact TA immediately if you still have not received the grove account by before 11:59 on 1/23.