Simple “VICO” (“VIPO”) Programs (Variables, Input, Calculating or Processing, Output)

Slides:



Advertisements
Similar presentations
PARTS OF A COMPUTER Monitor Monitor Central Processing Unit Central Processing UnitKeyboardMouseprinter.
Advertisements

Mother boards A CPU Memory Input Out put. A mother board is a board that controls the hole computer or ipad. The mother bored provides electrical conations.
P3- Represent how data flows around a computer system
Lab 8 User Defined Function.
Hand Crafting your own program By Eric Davis for CS103.
Computer Bits and Parts Parts of the computer system.
COMPUTER SYSTEM CAN BE DIVIDED INTO : 1- General Computer 2- Special Computer.
Flowcharts Remember that a solution to a problem is called an algorithm. Algorithms are often a series of steps required to solve the problem. A flowchart.
CS 104 Introduction to Computer Science and Graphics Problems Basic Organization & Concepts 09/09/2008 Yang Song (Prepared by Yang Song and Suresh Solaimuthu)
Computer Hardware.
CS 0008 Day 2 1. Today Hardware and Software How computers store data How a program works Operators, types, input Print function Running the debugger.
Input, Output, Processing and Storage
Computers & Logic An Overview. Hardware Hardware is the equipment, or the devices, associated with a computer. For a computer to be useful, however, it.
By Asma Khalil.  As now a days world is known as the global village. We can share our ideas through out the world and in this mean computer helps us.
An Introduction To Computer Hardware
Hardware.  Learn what hardware is  Learn different input and output devices  Learn what the CPU is.
What Can a Computer Do? Computers Can….  Do Math problems SUPERFAST!  Keep track of many things!  Remember everything! (they never forget)  Help.
স্বাগতম. Junior instructor(computer) What is a computer? What is the weakness of computer?
Computer A computer is an electronic machine that takes information, processes it,and stores it. Computers are made up of hardware ( monitor, tower, keyboard,
A-Level Computing#BristolMet Session Objectives# Must identify some common types of computer system Should describe the meaning of a computer system Could.
CISC 110 Day 1 Hardware, Algorithms, and Programming.
Array Cs212: DataStructures Lab 2. Array Group of contiguous memory locations Each memory location has same name Each memory location has same type a.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 2 Chapter 2 - Introduction to C Programming.
How to start Visual Studio 2008 or 2010 (command-line program)
How computers work The CPU & Memory. The parts of a computer.
Lecture 2: Introduction to C Programming. OBJECTIVES In this lecture you will learn:  To use simple input and output statements.  The fundamental data.
First steps Jordi Cortadella Department of Computer Science.
THE DIFFERENCE BETWEEN INPUT AND OUTPUT. BY FRASER HINE.
Operating Systems Lesson Objective: Understanding the functions of an operating system. Learning Outcome: Answer some basic questions on operating systems.
EXERCISE Arrays, structs and file processing. Question You own a pet store. You want to keep an inventory of all the pets that you have. Pets available.
Repetition. Loops Allows the same set of instructions to be used over and over again Starts with the keyword loop and ends with end loop. This will create.
Three Jobs of a Computer 1. Input 2. Processing 3. Output.
Using variable Variables are used to store values.
Senem KUMOVA METİN // Fall CS 115 Introduction to Programming Introduction to Computing.
Data Types and Conversions, Input from the Keyboard CS303E: Elements of Computers and Programming.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Chapter 2 - Introduction to C Programming Outline.
ICS2O-What is Computer and Information Science There is a wide variety of definitions for what a computer is or what it does. Our definition for the computer.
Data Types and Conversions, Input from the Keyboard If you can't write it down in English, you can't code it. -- Peter Halpern If you lie to the computer,
Exercise 1 #include int main() { printf(“Hello C Programming!\n”); return 0; } 1.Run your Visual Studio 2008 or Create a new “project” and add.
 2007 Pearson Education, Inc. All rights reserved. A Simple C Program 1 /* ************************************************* *** Program: hello_world.
3.1 Components. Overview Identify component parts of a typical home PC from a photograph or diagram.
The Parts of a Computer. The TOWER contains all of the parts of a computer.
1 Types of Programming Language (1) Three types of programming languages 1.Machine languages Strings of numbers giving machine specific instructions Example:
NOTE: C programs consist of functions one of which must be main. C programs consist of functions one of which must be main. Every C program begins executing.
COMPUTER PROGRAMMING Year 9 – lesson 1. Objective and Outcome Teaching Objective We are going to look at how to construct a computer program. We will.
WHAT IN THE WORLD IS IT?! Computer Processing Computer Basics by Bill Cowan Page 9.
1 Lecture 2 - Introduction to C Programming Outline 2.1Introduction 2.2A Simple C Program: Printing a Line of Text 2.3Another Simple C Program: Adding.
Programming Simple Programming Variables.
8279 Keyboard / Display Interface
Data Types and Conversions, Input from the Keyboard
Chapter 2 - Introduction to C Programming
The Parts of a Computer QUIZ.
Chapter 2 - Introduction to C Programming
08/28/06 parts of the computer.
Computer Applications
Chapter 4 LOOPS © Bobby Hoggard, Department of Computer Science, East Carolina University / These slides may not be used or duplicated without permission.
0. What is a Computer?.
Processing Computer Components.
Computer Science 2 Getting an unknown # of …. Into an array.
Computer Basics: How Do Computers Work? Part II
User Input Keyboard input.
Data Types Every variable has a given data type. The most common data types are: String - Text made up of numbers, letters and characters. Integer - Whole.
Data Types and Maths Programming Guides.
Processing Devices.
The monitor shows information.
Input, Variables, and Mathematical Expressions
Computer Electronic device Accepts data - input
CS 1111 Introduction to Programming Spring 2019
The system unit processes information.
08/28/06 parts of the computer.
Presentation transcript:

Simple “VICO” (“VIPO”) Programs (Variables, Input, Calculating or Processing, Output)

What Do Computer Programs Do? Computer programs are created to solve a problem for the user. Good computer programmers are really good problem solvers – a valuable skill to have! Specifically, a Turing program must: – Create variables to store the data. – Get data from a user which is called input. – Process or work on the data. This processing is often calculating or sorting the data. – Return the processed data to the user which is called output. These steps must be done in order – VIPO or VICO

Simple Diagram of Parts of a Computer System Used In Programming Output Device (Monitor) Input Device (Keyboard) Microprocessor (“Calculates”) RAM (“Remembers”) Central Processing Unit (CPU) Data

% Allows the user to input their name and 2 integers. The % integers will be added and their name & sum will be outputted % Variable Section var name : string % Users name var numOne : int % First integer inputted by the user var numTwo : int % Second integer inputted by the user var total : int % Stores the sum of the two integers % Input Section put "What is your name? " get name put "Enter an integer” get numOne put "Enter another integer " get numTwo % Calculation (Processing) Section total := numOne + numTwo % Output Section put "Sum of the numbers ", name, " has inputted is ", sum