LBYEC72_Overview

33
LBYEC 72 Computer Fundamentals : Programming 2 Pre-requisite: LBYEC71(Soft) Engr. Melvin Kong Cabatuan De La Salle University Manila, Philippines January 2013 Engr. Melvin Kong Cabatuan LBYEC72

Transcript of LBYEC72_Overview

Page 1: LBYEC72_Overview

LBYEC72Computer Fundamentals : Programming 2

Pre-requisite: LBYEC71(Soft)

Engr. Melvin Kong Cabatuan

De La Salle UniversityManila, Philippines

January 2013

Engr. Melvin Kong Cabatuan LBYEC72

Page 2: LBYEC72_Overview

Self Introduction

Melvin K. Cabatuan, MsE, Ph.D. Cand.

Masters of Engineering, NAIST (Japan)Thesis: Cognitive Radio (Wireless Communication)

ECE Reviewer/Mentor (Since 2005)2nd Place, Nov. 2004 ECE Board Exam

Test Engineering Cadet, ON SemiconductorsDOST Academic Excellence Awardee 2004

Mathematician of the Year 2003DOST Scholar (1999-2004)

Panasonic Scholar, Japan (2007-2010)Engr. Melvin Kong Cabatuan LBYEC72

Page 3: LBYEC72_Overview

On Doing Research

Engr. Melvin Kong Cabatuan LBYEC72

Page 4: LBYEC72_Overview

Engr. Melvin Kong Cabatuan LBYEC72

Page 5: LBYEC72_Overview

Course Contents

Review of Conditional and IterativeStatements, Arrays, and StringsTopic 1: Nested Conditional and IterativeStatementsTopic 2: Single-Dimensional andMulti-dimensional ArraysTopic 3: Strings, String Arrays, and StringManipulation FunctionsPractical Exam 1

Discussion on Pointers, Functions, andStructures

Engr. Melvin Kong Cabatuan LBYEC72

Page 6: LBYEC72_Overview

Course Contents

Review of Conditional and IterativeStatements, Arrays, and StringsTopic 1: Nested Conditional and IterativeStatementsTopic 2: Single-Dimensional andMulti-dimensional ArraysTopic 3: Strings, String Arrays, and StringManipulation FunctionsPractical Exam 1

Discussion on Pointers, Functions, andStructures

Engr. Melvin Kong Cabatuan LBYEC72

Page 7: LBYEC72_Overview

Course Contents

Review of Conditional and IterativeStatements, Arrays, and StringsTopic 1: Nested Conditional and IterativeStatementsTopic 2: Single-Dimensional andMulti-dimensional ArraysTopic 3: Strings, String Arrays, and StringManipulation FunctionsPractical Exam 1

Discussion on Pointers, Functions, andStructures

Engr. Melvin Kong Cabatuan LBYEC72

Page 8: LBYEC72_Overview

Course Contents

Review of Conditional and IterativeStatements, Arrays, and StringsTopic 1: Nested Conditional and IterativeStatementsTopic 2: Single-Dimensional andMulti-dimensional ArraysTopic 3: Strings, String Arrays, and StringManipulation FunctionsPractical Exam 1

Discussion on Pointers, Functions, andStructures

Engr. Melvin Kong Cabatuan LBYEC72

Page 9: LBYEC72_Overview

Course Contents

Review of Conditional and IterativeStatements, Arrays, and StringsTopic 1: Nested Conditional and IterativeStatementsTopic 2: Single-Dimensional andMulti-dimensional ArraysTopic 3: Strings, String Arrays, and StringManipulation FunctionsPractical Exam 1

Discussion on Pointers, Functions, andStructures

Engr. Melvin Kong Cabatuan LBYEC72

Page 10: LBYEC72_Overview

Course Contents

Review of Conditional and IterativeStatements, Arrays, and StringsTopic 1: Nested Conditional and IterativeStatementsTopic 2: Single-Dimensional andMulti-dimensional ArraysTopic 3: Strings, String Arrays, and StringManipulation FunctionsPractical Exam 1

Discussion on Pointers, Functions, andStructures

Engr. Melvin Kong Cabatuan LBYEC72

Page 11: LBYEC72_Overview

Course Contents

Topic 4: PointersTopic 5: Functions and Pass-by-valueTopic 6: Functions and Pass-by-referenceTopic 7: Structures, Structure Array, andComplex Data TypeTopic 8: Structures, Structure Pointers, andPassing of ReferencesPractical Exam 2Discussion on Dynamic MemoryAllocation and Exercise

Engr. Melvin Kong Cabatuan LBYEC72

Page 12: LBYEC72_Overview

Course Contents

Topic 4: PointersTopic 5: Functions and Pass-by-valueTopic 6: Functions and Pass-by-referenceTopic 7: Structures, Structure Array, andComplex Data TypeTopic 8: Structures, Structure Pointers, andPassing of ReferencesPractical Exam 2Discussion on Dynamic MemoryAllocation and Exercise

Engr. Melvin Kong Cabatuan LBYEC72

Page 13: LBYEC72_Overview

Course Contents

Topic 4: PointersTopic 5: Functions and Pass-by-valueTopic 6: Functions and Pass-by-referenceTopic 7: Structures, Structure Array, andComplex Data TypeTopic 8: Structures, Structure Pointers, andPassing of ReferencesPractical Exam 2Discussion on Dynamic MemoryAllocation and Exercise

Engr. Melvin Kong Cabatuan LBYEC72

Page 14: LBYEC72_Overview

Course Contents

Topic 4: PointersTopic 5: Functions and Pass-by-valueTopic 6: Functions and Pass-by-referenceTopic 7: Structures, Structure Array, andComplex Data TypeTopic 8: Structures, Structure Pointers, andPassing of ReferencesPractical Exam 2Discussion on Dynamic MemoryAllocation and Exercise

Engr. Melvin Kong Cabatuan LBYEC72

Page 15: LBYEC72_Overview

Course Contents

Topic 4: PointersTopic 5: Functions and Pass-by-valueTopic 6: Functions and Pass-by-referenceTopic 7: Structures, Structure Array, andComplex Data TypeTopic 8: Structures, Structure Pointers, andPassing of ReferencesPractical Exam 2Discussion on Dynamic MemoryAllocation and Exercise

Engr. Melvin Kong Cabatuan LBYEC72

Page 16: LBYEC72_Overview

Course Contents

Topic 4: PointersTopic 5: Functions and Pass-by-valueTopic 6: Functions and Pass-by-referenceTopic 7: Structures, Structure Array, andComplex Data TypeTopic 8: Structures, Structure Pointers, andPassing of ReferencesPractical Exam 2Discussion on Dynamic MemoryAllocation and Exercise

Engr. Melvin Kong Cabatuan LBYEC72

Page 17: LBYEC72_Overview

Course Contents

Topic 4: PointersTopic 5: Functions and Pass-by-valueTopic 6: Functions and Pass-by-referenceTopic 7: Structures, Structure Array, andComplex Data TypeTopic 8: Structures, Structure Pointers, andPassing of ReferencesPractical Exam 2Discussion on Dynamic MemoryAllocation and Exercise

Engr. Melvin Kong Cabatuan LBYEC72

Page 18: LBYEC72_Overview

References

1 LBYEC72 Laboratory Manual2 Books and other online sources

Engr. Melvin Kong Cabatuan LBYEC72

Page 19: LBYEC72_Overview

References

1 LBYEC72 Laboratory Manual2 Books and other online sources

Engr. Melvin Kong Cabatuan LBYEC72

Page 20: LBYEC72_Overview

Evaluation Criteria

Average of Preliminary Reports: 20%Average of Final Reports: 20%Project: 30%Practical Examination I : 15%Practical Examination II : 15%

Total: 100%PASSING GRADE: 70%

Engr. Melvin Kong Cabatuan LBYEC72

Page 21: LBYEC72_Overview

Preliminary Report

1 Preliminary Reports are written andcompleted prior to the end of everylaboratory sessions using your EC72journal.

2 Preliminary Reports are checked 30minutes before the end of every session.

3 Preliminary Reports are individual.

Engr. Melvin Kong Cabatuan LBYEC72

Page 22: LBYEC72_Overview

Final Report

1 Final Reports should be submitted oneweek after the topic.

2 Late reports will receive a 10 %deduction per week.

3 Final Reports are done by pair.

Engr. Melvin Kong Cabatuan LBYEC72

Page 23: LBYEC72_Overview

Project

1 Students may develop a project proposalor follow the project specifications givenby the instructor.

2 Projects are done by groups with amaximum of three members.

Engr. Melvin Kong Cabatuan LBYEC72

Page 24: LBYEC72_Overview

Programming Review: Hello World!

Engr. Melvin Kong Cabatuan LBYEC72

Page 25: LBYEC72_Overview

Programming Review

Problem 1Given the quadratic equationax2 + bx + c = 0. Write a simple programthat implements the following quadraticformula:

x = −b ±√

b2 − 4ac2a

Engr. Melvin Kong Cabatuan LBYEC72

Page 26: LBYEC72_Overview

Sample Answer:

Engr. Melvin Kong Cabatuan LBYEC72

Page 27: LBYEC72_Overview

Programming Review

Problem 2Write a program that prints the maximumof four given integers.

Engr. Melvin Kong Cabatuan LBYEC72

Page 28: LBYEC72_Overview

Sample Answer:

Engr. Melvin Kong Cabatuan LBYEC72

Page 29: LBYEC72_Overview

Programming Review

Problem 3Write a program that prints a tringle ofstars shown in the following figure:

Engr. Melvin Kong Cabatuan LBYEC72

Page 30: LBYEC72_Overview

Sample Answer:

Engr. Melvin Kong Cabatuan LBYEC72

Page 31: LBYEC72_Overview

Programming Review

Problem 4Write a program that prints a diamond ofstars shown in the following figure:

Engr. Melvin Kong Cabatuan LBYEC72

Page 32: LBYEC72_Overview

Sample Answer:

Engr. Melvin Kong Cabatuan LBYEC72

Page 33: LBYEC72_Overview

END

} Thank you for your attention ~

Engr. Melvin Kong Cabatuan LBYEC72