Central Processing Unit
This guide provides an overview of computer programming, from basic computer components to writing efficient code. Learn how a computer processes simple tasks through the CPU and how programmers use high-level languages like VB, C++, and Java to solve real-world problems. The programming process involves analyzing problems, creating algorithms, and debugging code. With practical skills and practice, you can unlock job opportunities in fields like engineering and computer science. Programming can be rewarding and fun, with persistence and dedication.
Central Processing Unit
E N D
Presentation Transcript
What's a Computer? Monitor Central Processing Unit Disk Main Memory mouse Keyboard Network can do very simple tasksVERY FAST add, write in memory... CPU: (stupid) brain of the computer Goal: Perform elaborate tasks by putting together many simple tasks HOW ? 110-A1
Write a program! But A computer only understands instructions written as a series of 0’s and 1’s Could write as such, TIME CONSUMING... MACHINE LANGUAGE BETTER High level language close (but ) to plain English • To solve a specific problem: weather forecast, payroll, word processing, traffic lights... Need a compiler to translate our program into 0’s and 1’s 110-A2
Which language? What we will use BUT You will learn programming VB is not the point A useful skill valid for any language Examples of High level languages: • FORTRAN, LISP… 50’s (scientific) • COBOL… 60’s (business) • BASIC, PASCAL, C… 70’s (multipurpose) • C++ (OOP), VB (Objects + events) …80’s • Java,… 90’s (platform independent) • C#, VB.NET… 2000’s (OOP + event driven) An "easy" and powerful language 110-A3
How to write a program Logical series of tasks Example: Managing a traffic light Check the time How long has it been since the light has changed? No Yes • Clearly specify the problem • Analyze the problem • Find an algorithm to solve the problem Long enough? Change the light • Write the program (use VB). • DOCUMENTATION • Test and Debug (correct mistakes) • Maintain and Update 110-A4
What to Expect? * Programming is FUN DO NOT FALL BEHIND plenty Rewards: • Open doors in • Education: Engineering, Computer Science, Physics, Bio technologies... * and sometimes frustrating • Read the book • Come to class • Get a lot of practice on the computers • And... • Employment: good programmers are still in high demand 110-A5