What is a program?
description
Transcript of What is a program?
![Page 1: What is a program?](https://reader036.fdocuments.in/reader036/viewer/2022062501/568162db550346895dd36178/html5/thumbnails/1.jpg)
What is a program?
IT skills: noneIT concepts: computer components, program, executing (running) a program, algorithm, information flow inside the computer, operating system, program and data, multitasking, virtualization
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.
![Page 2: What is a program?](https://reader036.fdocuments.in/reader036/viewer/2022062501/568162db550346895dd36178/html5/thumbnails/2.jpg)
Where does this topic fit?
• Internet concepts– Applications– Technology– Implications
• Internet skills– Application development– Content creation– User skills
![Page 3: What is a program?](https://reader036.fdocuments.in/reader036/viewer/2022062501/568162db550346895dd36178/html5/thumbnails/3.jpg)
Applications require programs
![Page 4: What is a program?](https://reader036.fdocuments.in/reader036/viewer/2022062501/568162db550346895dd36178/html5/thumbnails/4.jpg)
Combine Coca-Cola and buttermilk; set aside.
Beat butter at low speed with an electric mixer until creamy.
Gradually add sugar; beat until blended.
Add egg and vanilla; beat at low speed until blended.
Combine flour, cocoa, and soda. Add to butter mixture alternately
with cola mixture; begin and end with flour mixture.
Beat at low speed just until blended.
Pour batter into a greased and floured 13- x 9-inch pan.
Bake at 350° for 30 to 35 minutes.
Remove from oven; cool 10 minutes.
Recipes are lists of instructions for chefs
![Page 5: What is a program?](https://reader036.fdocuments.in/reader036/viewer/2022062501/568162db550346895dd36178/html5/thumbnails/5.jpg)
1. Display “Do you like me?”
2. Input likeme
3. If likeme = “yes” display “I like you too!”
4. If likeme = “no” display “You are ugly!”
5. Stop
Programs are lists of instructions for computers
What will happen when this program is executed?
![Page 6: What is a program?](https://reader036.fdocuments.in/reader036/viewer/2022062501/568162db550346895dd36178/html5/thumbnails/6.jpg)
Do you like me? _
1. Display “Do you like me?”
2. Input likeme
3. If likeme = “yes” display “I like you too!”
4. If likeme = “no” display “You are ugly!”
5. Stop
![Page 7: What is a program?](https://reader036.fdocuments.in/reader036/viewer/2022062501/568162db550346895dd36178/html5/thumbnails/7.jpg)
1. Display “Do you like me?”
2. Input likeme
3. If likeme = “yes” display “I like you too!”
4. If likeme = “no” display “You are ugly!”
5. Stop
Do you like me? yes
I like you too!
stop
![Page 8: What is a program?](https://reader036.fdocuments.in/reader036/viewer/2022062501/568162db550346895dd36178/html5/thumbnails/8.jpg)
1. Display “Do you like me?”
2. Input likeme
3. If likeme = “yes” display “I like you too!”
4. If likeme = “no” display “You are ugly!”
5. Stop
Do you like me? Yep
What will happen if the user types “yep?”
![Page 9: What is a program?](https://reader036.fdocuments.in/reader036/viewer/2022062501/568162db550346895dd36178/html5/thumbnails/9.jpg)
1. Display “Do you like me?”
2. Input likeme
3. If likeme = “yes” display “I like you too!”
4. If likeme = “no” display “You are ugly!”
5. Stop
Do you like me? yep
stop
![Page 11: What is a program?](https://reader036.fdocuments.in/reader036/viewer/2022062501/568162db550346895dd36178/html5/thumbnails/11.jpg)
Want to learn more?
Start programming – 20 lessons, one hourEmpezar a programar - 20 lecciones en una hora
![Page 12: What is a program?](https://reader036.fdocuments.in/reader036/viewer/2022062501/568162db550346895dd36178/html5/thumbnails/12.jpg)
Let’s look inside the computer
Memory
CPU
Storage devices(programs and data)
Inputdevices
OutputDevices
![Page 13: What is a program?](https://reader036.fdocuments.in/reader036/viewer/2022062501/568162db550346895dd36178/html5/thumbnails/13.jpg)
Operating system (master control program)
Applicationprogram
Applicationdata
What is in memory?
![Page 14: What is a program?](https://reader036.fdocuments.in/reader036/viewer/2022062501/568162db550346895dd36178/html5/thumbnails/14.jpg)
Operating system (master control program)
Application program Application data
Our example
Display “Do you like me?”
Input likeme
If likeme = “yes” display “I like you too!”
If likeme = “no” display “You are ugly!”
Stop
Likeme:
yes
![Page 15: What is a program?](https://reader036.fdocuments.in/reader036/viewer/2022062501/568162db550346895dd36178/html5/thumbnails/15.jpg)
Running Word
What would be in memory?
![Page 16: What is a program?](https://reader036.fdocuments.in/reader036/viewer/2022062501/568162db550346895dd36178/html5/thumbnails/16.jpg)
Program, data and operating system
How would this diagram change if we were running both Excel and Word?
![Page 17: What is a program?](https://reader036.fdocuments.in/reader036/viewer/2022062501/568162db550346895dd36178/html5/thumbnails/17.jpg)
Operating system (master control program)
Program
Data
Multitasking
ProgramData
Data
Data
Data Data
DataData
![Page 18: What is a program?](https://reader036.fdocuments.in/reader036/viewer/2022062501/568162db550346895dd36178/html5/thumbnails/18.jpg)
Prog Doc
Operating system 2
... Prog Doc
Operating system 3
...Prog Doc
Operating system 1
…
Virtualization
![Page 19: What is a program?](https://reader036.fdocuments.in/reader036/viewer/2022062501/568162db550346895dd36178/html5/thumbnails/19.jpg)
Windows and Mac OS-X
Virtualization is used primarily on servers.
![Page 20: What is a program?](https://reader036.fdocuments.in/reader036/viewer/2022062501/568162db550346895dd36178/html5/thumbnails/20.jpg)
Summary
Do you like me? _
![Page 21: What is a program?](https://reader036.fdocuments.in/reader036/viewer/2022062501/568162db550346895dd36178/html5/thumbnails/21.jpg)
1. What would be displayed if the user of our simple program example had entered “no” when the computer asked “do you like me”?
2. What would be displayed if the user entered “for sure”? 3. What if the user answered in capital letters, “YES”?4. We used Microsoft Word as an example word processing program – is Word a
network application? (Explain)5. When you type text into a word processing program, is it displayed before it
is put in memory or put in memory then displayed? (Explain).6. We saw that a program must be in memory if it is to be executed. When
using Microsoft’s Windows operating system, how do you cause a program to be loaded from storage to memory and executed? (Hint: what do you do to cause Microsoft Word to be loaded into memory from storage).
7. We saw that data like word processing documents are copied from memory to storage when they are finished. If you create a document using Microsoft Word, how do you get the computer to store it?
8. Is the operating system hardware or software? (Explain)9. Are the examples in this presentation network-based programs or stand-
alone?
Self-study questions
![Page 22: What is a program?](https://reader036.fdocuments.in/reader036/viewer/2022062501/568162db550346895dd36178/html5/thumbnails/22.jpg)
A taste of programming – interactive tutorial:http://www.codecademy.com/
More programming tutorials:http://www.w3schools.com/
If you would like to experiment with virtualization, check out Oracle VirtualBox:http://www.techsupportalert.com/content/introducing-virtualbox-5.htm
Resources