Introduction I-Introduction to Computer Programming-Lecture Slides, Slides of Computer Programming

Dr. Mehandi Nandakumar delivered this lecture at Baddi University of Emerging Sciences and Technologies for Introduction to Computer Programming course. Its main points are: Schedule, C , Basic, Techniques, Program, Control, Statements, Pointers, Functions, Structures, Scholastic, Ethics

Typology: Slides

2011/2012

Uploaded on 07/13/2012

ekbaal
ekbaal 🇮🇳

3

(1)

30 documents

1 / 27

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CS1123
Computer Programming
Spring 2012
Instructor
Ghufran Ahmed
docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b

Partial preview of the text

Download Introduction I-Introduction to Computer Programming-Lecture Slides and more Slides Computer Programming in PDF only on Docsity!

CS1123Computer ProgrammingSpring 2012InstructorGhufran Ahmed

Schedule^ Section^

Lecture^ Lab I TUE^ TUE II FRI^ FRI

Text Books  Primary^ ^ Herbert Schildt, ‘C++ from the Ground Up’, 2

nd^ Edition, 1998, Osborne

McGraw-Hill.  Turbo C Programming by Robert Lafore  References  Deital & Deital, ‘C++ How to Program’, 3

rd^ Edition, 2001, Prentice Hall.

^ Herbert Schildt, ‘C++: The Complete Reference’, 3rd Edition, 1998,Osborne McGraw-Hill. Some handouts may be given to supplement the text

Lectures There shall be 30 sessions^ o^ 32 sessions of 90 minutes each^ o^ labs conducted by lab instructor Grading^ o^ 10% Quizzes (quizzes may be based on assignments)^ o^ 15% Programming Assignments.^ o^ 10% Programming Project.^ o^ 5% Class Participation.^ o^ 20% Midterm Exam^ o^ 40% Final Exam

Topics … Program Controlif statement, for loop, switchStatementsstatement, while loop, do-while loop, continue, break,nested loops

2 Chapter 4 Arrays and Strings^ One dimensional arrays,strings, string libraryfunctions, two dimensionalarrays, multidimensionalarrays, array initialization,arrays of strings

3 Chapter 5 Pointers^ Pointer operators, pointerexpressions, pointers andarrays, arrays of pointers,problems with pointers

3 Chapter 6 docsity.com

Topics … Functions^ Scope rules of functions, passingpointers and arrays, argc and argv,return statement, recursion

2 Chapter 7 References,Argument passing, function-Overloading,overloading etc.and DefaultArguments

2 Chapter 8 Structures andUnions

2 Chapter 10 Basic File IO^

2 Chapter 18 docsity.com

Examples of Cheating ^ Turning in someone else's work, in whole or in part, as your own(with or without his/her knowledge) ^ Turning in a completely duplicated assignment is a flagrantoffense ^ Allowing another student to turn in your work as his/her own ^ Several people writing one assignment and turning in multiplecopies, all represented (implicitly or explicitly) as individualwork

Examples of Not Cheating ^ Turning in work done alone or with the help of the course's TAs. ^ Submitting one assignment for a group of students if groupwork is explicitly permitted (or required) ^ Getting or giving help about using the computers ^ Getting or giving help about solving minor syntax errors^ Penalties for cheating can be an 'F' in the course or worse.

Computer Organization  Six logical units in every computer: ^ Input unit^ ^ Obtains information from input devices (keyboard, mouse) ^ Output unit^ ^ Outputs information (to screen, to printer, to control other devices) ^ Memory unit^ ^ Rapid access, low capacity, stores input information ^ Arithmetic and logic unit (ALU)^ ^ Performs arithmetic calculations and logic decisions ^ Central processing unit (CPU)^ ^ Supervises and coordinates the other sections of the computer ^ Secondary storage unit^ ^ Cheap, long-term, high-capacity storage, stores inactive programs

A Bit of History  Which was the first programmable computer?  Charles Babbage’s^ Analytical Engine

(early 1800’s)

^ First programmer? ^ Ada Augusta, Countess of Lovelace; Charles’s colleagueand daughter of Lord Byron

Evolution of Operating Systems^ ^ Batch processing^ ^ Do only one job or task at a time^ ^ Operating systems^ ^ Manage transitions between jobs^ ^ Increased throughput^ ^ Amount of work computers process^ ^ Multiprogramming^ ^ Many jobs or tasks sharing a computer’s resources^ ^ Timesharing^ ^ Perform a small portion of one user’s job then move on toservice the next user

Personal ComputingDistributed ComputingClient/Server Computing^ ^ Personal computers^ ^ Economical enough for individual^ ^ Distributed computing^ ^ Organizations computing is distributed over networks^ ^ Client/server computing^ ^ Sharing of information, across computer networks,between file servers and clients (personal computers)

Some High-Level Languages  Java used to ^ Create web pages with dynamic and interactive content ^ Develop large-scale enterprise applications ^ Enhance the functionality of web servers ^ Provide applications for consumer devices (such as cell phones, pagers andpersonal digital assistants)  FORTRAN ^ Used in scientific and engineering applications  COBOL ^ Used to manipulate large amounts of data  Pascal ^ Used to teach structured programming  C/C++ ^ Middle-level language ^ Provides facilities for both high level as well as low level programming

History of C and C++  C++ evolved from C ^ C evolved from two other programming languages, BCPL and B  ANSI C ^ Established worldwide standards for C programming  C invented by Dennis Ritchie of AT&T Bell Labs in the 1970s  C++ by Bjarne Stroustrup of the same labs in the early 1980s  C++ “spruces up” C ^ Provides capabilities for object-oriented programming^ ^ Objects are reusable software components that model things in the real world^ ^ Object-oriented programs are easy to understand, correct and modify  C is a subset of C++