Today, coding is a hot topic as everyone wants to get involved with programming for the future. In this two part series, day one will uncover tools you can use to learn about programming and get started without having any coding experience. Learn the theories of code and basic frameworks. Day two will focus on outlining bigger frameworks from web to application; and which languages can accomplish which goals.
Going further, it is important to have a basic understanding of computer programming. Although you may not become a computer programmer, knowing the basics can help you work more efficiently with software and be able to troubleshoot issues when they arise.
Today, coding is a hot topic as everyone wants to get involved with programming for the future. In this two part series, day one will uncover tools you can use to learn about programming and get started without having any coding experience. Learn the theories of code and basic frameworks. Day two will focus on outlining bigger frameworks from web to application; and which languages can accomplish which goals.
Going further, it is important to have a basic understanding of computer programming. Although you may not become a computer programmer, knowing the basics can help you work more efficiently with software and be able to troubleshoot issues when they arise.
Basics of Computer Coding: Understanding Coding LanguagesBrian Pichman
In this webinar, we will cover the different types of environments one may want to code for; whether that is apps, websites, programs that run on Windows, scripting, and more. Are you interested in learning code and considering if Java, PHP, CSS, Python or another language help bring a project to life? If you have a high-level approach to coding or are working on teaching patrons how to code or providing guidance to others, this will be a great resource to have.
We will learn about coding, types of code, and your " building-block" languages that eventually get you (or patrons) to the end goal of being a wizard coder. Resources for further education will be discussed in this webinar so you will have excellent next steps to continue your journey in a world of 1's and 0's.
In this article, we will discuss Excite Artificial Intelligence Class 9. You will get more details and fun with 3 games uses Artificial Intelligence. So here we go!
For most programming/scripting languages the concepts are all the same. The only thing that changes is the syntax in which it is written. Some languages may be easier to remember than others, but if you follow the basic guide line, it will make learning any programming language easier. This is in no way supposed to teach you everything about programming, just a general knowledge so when you do program you will understand what you are doing a little bit better.
Introduction to Computer Science by GoLearningBus.
In this slideshow we will cover:
What is Computer Science?
What is Computer System?
What is Computation?
Types of Computing
Computer Organization
Hardware and Software
Operating System
please email your feedback to team@wagmob.com
For full access please go to app.wagmob.com and search for "computer science"
Programming is the process of taking an algorithm and encoding it into a notation, a programming language so that it can be executed by a computer. Although many programming languages and many different types of computers exist, the important first step is the need to have the solution. Without an algorithm, there can be no program.
To know more: https://hackr.io/blog/what-is-programming-language
Scratch is a simple environment designed by the Kindergarden Lifelong Learning Group at MIT.
In Scratch, sprites (objects) are manipulated on the stage (background) using various scripts (small program segments). Each sprite has its own set of scripts to control its behaviors and how it interacts with other sprites and events.
Content needs to be written differently when you primary delivery is on smart phones or tablets. Shorter sentence structure and reduced word count, as well as principles from SEO are recommended.
Unfortunately, most of us don't write this way; we write until we fill up a laptop or computer screen. Also, our eyes can "remember" more on a sheet of paper or large screen than we can in transient "thumb fuls" of smart phone paragraphs.
Try the exercises developed by Maxwell Hoffmann of Adobe, and you will be surprised at how easy it is to "think different / write diffe
Basics of Computer Coding: Understanding Coding LanguagesBrian Pichman
In this webinar, we will cover the different types of environments one may want to code for; whether that is apps, websites, programs that run on Windows, scripting, and more. Are you interested in learning code and considering if Java, PHP, CSS, Python or another language help bring a project to life? If you have a high-level approach to coding or are working on teaching patrons how to code or providing guidance to others, this will be a great resource to have.
We will learn about coding, types of code, and your " building-block" languages that eventually get you (or patrons) to the end goal of being a wizard coder. Resources for further education will be discussed in this webinar so you will have excellent next steps to continue your journey in a world of 1's and 0's.
In this article, we will discuss Excite Artificial Intelligence Class 9. You will get more details and fun with 3 games uses Artificial Intelligence. So here we go!
For most programming/scripting languages the concepts are all the same. The only thing that changes is the syntax in which it is written. Some languages may be easier to remember than others, but if you follow the basic guide line, it will make learning any programming language easier. This is in no way supposed to teach you everything about programming, just a general knowledge so when you do program you will understand what you are doing a little bit better.
Introduction to Computer Science by GoLearningBus.
In this slideshow we will cover:
What is Computer Science?
What is Computer System?
What is Computation?
Types of Computing
Computer Organization
Hardware and Software
Operating System
please email your feedback to team@wagmob.com
For full access please go to app.wagmob.com and search for "computer science"
Programming is the process of taking an algorithm and encoding it into a notation, a programming language so that it can be executed by a computer. Although many programming languages and many different types of computers exist, the important first step is the need to have the solution. Without an algorithm, there can be no program.
To know more: https://hackr.io/blog/what-is-programming-language
Scratch is a simple environment designed by the Kindergarden Lifelong Learning Group at MIT.
In Scratch, sprites (objects) are manipulated on the stage (background) using various scripts (small program segments). Each sprite has its own set of scripts to control its behaviors and how it interacts with other sprites and events.
Content needs to be written differently when you primary delivery is on smart phones or tablets. Shorter sentence structure and reduced word count, as well as principles from SEO are recommended.
Unfortunately, most of us don't write this way; we write until we fill up a laptop or computer screen. Also, our eyes can "remember" more on a sheet of paper or large screen than we can in transient "thumb fuls" of smart phone paragraphs.
Try the exercises developed by Maxwell Hoffmann of Adobe, and you will be surprised at how easy it is to "think different / write diffe
[Android] Introduction to Android ProgrammingNikmesoft Ltd
1. Introduction to Android Programming
1.1 What is Android?
1.2 Android programming
1.3 Android’s versions with their releasing date
1.4 Features
1.5 What is ADT?
1.6 What is SDK?
1.7 What is NDK?
2. Getting Started
3. Programming Fundamentals
3.1 Root Elements
3.2 Res folder elements
3.3 Inside the Manifest
3.4 Create a new Android Virtual Device (AVD) if you do not have any.
3.5 From the Run menu, select Run or Debug
3.6 If you’ve using the ADT plug-in, running or debugging your application
4. Exercise 1
My accompanying slides to my video blog.
This episode is about open source software and open source hardware.
See video: https://www.youtube.com/watch?v=5ynE_KbDaS0
See my Video Blog: https://www.youtube.com/channel/UCtUcgFWvhZbknS5LxvfbMrw
Need an Android application for business? Check out the top ten Android app development tools 2019 for Android app development services USA. Best IDE and framework for better Android app development.
DevTalks Romania: Prepare for Jakarta EE 11Edward Burns
Jakarta EE 11 will be the first release of Jakarta EE after the new release cadence was introduced. The goal is to release a version of Jakarta EE around six to nine months after an LTS release of Java. With Java 21 released in September 2023, Jakarta EE 11 is scheduled to be released between April and July 2024. What are the updates? Are there any new specifications introduced? What about removals? Will there be another namespace change? How will the impact of this release be on other frameworks and technologies, such as Spring, Apache Tomcat, Hibernate, and more?Come to this session to get all these questions and more answered to be prepared for Jakarta EE 11.
Heather Vancura and Bruno Souza have a new book out on the topic of how to have a successful and rewarding career as a software developer. The title of this session is the title of the book. Ed Burns wrote a book on the same topic nearly fifteen years ago. In this 45-minute session, you will learn the most important parts of the the new book from the author of the old book. Ed brings the insight he gained from writing his book to the task of presenting Heather and Bruno's book which contains the lessons learned in interviewing a diverse selection of 26 successful developers. Between the authors of the two books and the interviews they conducted, there is over a century of developer career experience in this talk! This informative and fun session will give you some practical tips to improve your own career.
A sanitized version of an internal Microsoft presentation Ed gave on 2023-10-09. It covers the history of Java EE and Spring, and the future of Java EE.
Sponsored Session: Please touch that dial!Edward Burns
Enterprise Java on Azure, from PaaS to IaaS and everything in between. Join Java Champion and Principal Architect Ed Burns to learn how to select the right Enterprise Java on Azure solution for your needs. Whether you are moving your Java enterprise to the cloud, evolving once you get it there, or starting fully cloud native, there are many factors to consider. Of course, there are the usual suspects of price, time, and effort. But there are also additional factors such as balancing complexity and maintainability, staffing (the level of involvement of systems integrators, contractors, and in-house staff), license portability. Don't forget functional factors such as high availability and disaster recovery, and quality-of-service guarantees. Azure offers a complete range of enterprise Java solutions, like turning a dial. For maximum ease, let Azure manage all the complexity for you with Azure Spring Apps, Azure App Service, or Azure Functions Java. If you want more control, consider Jakarta EE solution templates, or running Spring on App Service. For maximum control, run your enterprise Java directly on Azure runtimes like Kubernetes, Open Shift, or Virtual Machines. Ed examines the tradeoffs in these choices from an enterprise architect's perspective.
Jakarta EE Spezifikationen stecken tief im Herz von mehreren Azure Dienstleistungen. Event Bus, Active Directory, Azure Spring Apps und natürlich die App Server Runtimes von Oracle, Red Hat und IBM nutzen alle eine oder mehrere Jakarta EE Spezifikationen. Dieser Vortrag ist eine Rundreise durch die Überlappungen zwischen diesen Azure Angeboten und den Jakarta EE Spezifikationen. Schaue, wie Servlet, JSP, JSTL und Security auf Azure First Party Angebote aussehen. Erfahre, wie die gesamten Jakarta EE Web und Full Profile bei den App Server Angeboten von Red Hat, IBM, und Oracle, auf verschiedenen Runtimes inklusive App Service, Virtual Machines, Kubernetes und OpenShift, offeriert werden.
Practical lessons from customers performing digital transformation with AzureEdward Burns
The hyperactive phase of digital transformation brought on by the COVID-19 pandemic has given way to more sustained migration efforts for companies moving to the cloud. Practical success stories can now be told Join Principal Architect and Java Champion Ed Burns as he shares stories from personal and team experience with customers who have successfully transformed their business with Microsoft Azure. This talk will focus on customers with a significant Java estate that the moved to Azure. Such transformations involve addressing a wide variety of concerns, including disaster recovery, high availability, cost efficiency, development velocity and agility, capacity planning, cloud native practices, and much more.
Microsoft is customer obsessed. Let us tell you what we are hearing from our customers about how they chose to move to Azure.
Jakarta EE und Microprofile sind bei Azure zu HauseEdward Burns
Jakarta/Java EE is an important technology to support on Azure. Enterprise Java is a heterogenous ecosystem with as much as a third of workloads still running on Jakarta EE application servers such as WebLogic, WebSphere/Open Liberty, JBoss EAP, WildFly, and Payara. This is particularly true for large enterprises that need to lift and shift their existing mission-critical, largely monolithic applications to Azure. Traditionally, Azure has not focused on strong support for such workloads but that is changing now and going forward.
This session will outline the efforts to better support Jakarta EE workloads on Azure. We will touch on the history of the open-standard enterprise Java movement and why open standards are and remain important to enterprises. We will discuss what is possible now, what is coming soon and what is further afield. This includes services, tools and guidance to better support Jakarta EE users opting for virtual machines, Kubernetes, or PaaS. It also includes integration with Azure services such as the Azure Service Bus through Jakarta EE APIs such as JMS.
Azure is a great place for all your Java. Microsoft Java experts lead a grand tour of Java on Azure. Learn how to reach cloud-scale with cloud-native innovation for enterprise Java applications.
Java on Your Terms with Azure
Wars I’ve SeenFrom Java EE to Spring and more, Azure has you coveredEdward Burns
Ed Burns brings his seventeen years of server side Java experience to bear on the topic of Enterprise Java on Microsoft Azure. Before the advent of cloud infrastructure, the stack was the main thing. This gave rise to many entertaining platform wars, and even personality feuds among the principals. Spring or J2EE? Spring MVC or JSF (or Struts/Wicket/Tapestry/WebWork...)? Spring REST or JAX-RS? Spring DI orCDI? Spring Boot or MicroProfile? Single-vendor proprietary de-facto standard or multi-vendor community developed standard? Ed has seen these "wars" come and go, and even fought in some of them. While "wars" make for great conference talks, blog posts, and articles, at the end of the day creating business value is the whole point of enterprise Java. Ed contends that nowadays, the cloud vendor is the main thing, and the best cloud vendor is one that best supports "all of the above", from lift and shift of existing workloads, to lift and improve, on through to turn-key PaaS solutions. This session will briefly survey the history of enterprise Java to establish the need for an "all of the above" enterprise cloud platform, examine some ways enterprises can use the current offerings from Microsoft Azure, and give a peek into what's in store in the near future.
HTTP/2 Comes to Java: Servlet 4.0 and what it means for the Java/Jakarta EE e...Edward Burns
Servlet is very easily the most important standard in server-side Java. The much awaited HTTP/2 standard is now complete, was fifteen years in the making and promises to radically speed up the entire web through a series of fundamental protocol optimizations.
In this session we will take a detailed look at the changes in HTTP/2 and discuss how it may change the Java ecosystem including the foundational Servlet 4 specification included in Java/Jakarta EE 8.
Programming Language Platform Growth: Table Stakes or Deal Makes?Edward Burns
This talk draws from Ed's 25 years of professional programming experience, spanning many languages, operating systems, and platforms, to survey what it takes to make a programming language platform successful in terms of widespread use. Ed will look at Java, Python, Node, Go, and Ruby and evaluate the ingredients that brought each one its own form of success. Finally, Ed will draw some lessons that apply to anyone trying to grow their computing platform, because, at some level, we are all in the platform business.
Programming Language Platform Growth: Table Stakes or Deal Makes?Edward Burns
IT practitioners are often faced with platform selection choices when
building solutions for their customers. The set of available choices
is always subject to lots of churn and chaos. This talk looks at what
separates successful platforms from others in terms of how each one
deals with technical and non-technical concerns.
Building a Serverless State Service for the CloudEdward Burns
While application architectures are evolving to become stateless, application state and state management are naturally emerging as a service in themselves. This session outlines the development, operation, and maintenance of an application state service for the cloud with Java 9, using a serverless strategy. The presentation investigates some of the challenges of designing an infinite-capacity, infinite-processing platform capable of reliably running everything from the smallest application to a globally distributed enterprise-class infrastructure for the mobile and IoT domains.
Java EE 7 from an HTML5 Perspective, JavaLand 2015Edward Burns
This 45 minute session begins by explaining what we mean by the admittedly vague term "HTML5 web application". We use the Cargo Tracker sample Java EE 7 application as the vehicle for this explanation. Diving into the code, we examine the parts of the Java EE 7 family of technologies, and the HTML5 techniques used in the application.
HTTP/2 comes to Java. What Servlet 4.0 means to you. DevNexus 2015Edward Burns
It’s hard to overstate how much has changed in the world since HTTP 1.1 went final in June of 1999. There were no smartphones, Google had not yet IPO’d, Java Swing was less than a year old… you get the idea. Yet for all that change, HTTP remains at version 1.1.
Change is finally coming. HTTP 2.0 should be complete by 2015, and with that comes the need for a new version of Servlet. It will embrace HTTP 2.0 and expose its key features to Java EE 8 applications. This session gives a peek into the progress of the Servlet spec and shares some ideas about how developers can take advantage of this exciting
update to the world’s most successful application protocol on the world’s most popular programming language.
The Roman Empire A Historical Colossus.pdfkaushalkr1407
The Roman Empire, a vast and enduring power, stands as one of history's most remarkable civilizations, leaving an indelible imprint on the world. It emerged from the Roman Republic, transitioning into an imperial powerhouse under the leadership of Augustus Caesar in 27 BCE. This transformation marked the beginning of an era defined by unprecedented territorial expansion, architectural marvels, and profound cultural influence.
The empire's roots lie in the city of Rome, founded, according to legend, by Romulus in 753 BCE. Over centuries, Rome evolved from a small settlement to a formidable republic, characterized by a complex political system with elected officials and checks on power. However, internal strife, class conflicts, and military ambitions paved the way for the end of the Republic. Julius Caesar’s dictatorship and subsequent assassination in 44 BCE created a power vacuum, leading to a civil war. Octavian, later Augustus, emerged victorious, heralding the Roman Empire’s birth.
Under Augustus, the empire experienced the Pax Romana, a 200-year period of relative peace and stability. Augustus reformed the military, established efficient administrative systems, and initiated grand construction projects. The empire's borders expanded, encompassing territories from Britain to Egypt and from Spain to the Euphrates. Roman legions, renowned for their discipline and engineering prowess, secured and maintained these vast territories, building roads, fortifications, and cities that facilitated control and integration.
The Roman Empire’s society was hierarchical, with a rigid class system. At the top were the patricians, wealthy elites who held significant political power. Below them were the plebeians, free citizens with limited political influence, and the vast numbers of slaves who formed the backbone of the economy. The family unit was central, governed by the paterfamilias, the male head who held absolute authority.
Culturally, the Romans were eclectic, absorbing and adapting elements from the civilizations they encountered, particularly the Greeks. Roman art, literature, and philosophy reflected this synthesis, creating a rich cultural tapestry. Latin, the Roman language, became the lingua franca of the Western world, influencing numerous modern languages.
Roman architecture and engineering achievements were monumental. They perfected the arch, vault, and dome, constructing enduring structures like the Colosseum, Pantheon, and aqueducts. These engineering marvels not only showcased Roman ingenuity but also served practical purposes, from public entertainment to water supply.
How to Split Bills in the Odoo 17 POS ModuleCeline George
Bills have a main role in point of sale procedure. It will help to track sales, handling payments and giving receipts to customers. Bill splitting also has an important role in POS. For example, If some friends come together for dinner and if they want to divide the bill then it is possible by POS bill splitting. This slide will show how to split bills in odoo 17 POS.
We all have good and bad thoughts from time to time and situation to situation. We are bombarded daily with spiraling thoughts(both negative and positive) creating all-consuming feel , making us difficult to manage with associated suffering. Good thoughts are like our Mob Signal (Positive thought) amidst noise(negative thought) in the atmosphere. Negative thoughts like noise outweigh positive thoughts. These thoughts often create unwanted confusion, trouble, stress and frustration in our mind as well as chaos in our physical world. Negative thoughts are also known as “distorted thinking”.
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxEduSkills OECD
Andreas Schleicher presents at the OECD webinar ‘Digital devices in schools: detrimental distraction or secret to success?’ on 27 May 2024. The presentation was based on findings from PISA 2022 results and the webinar helped launch the PISA in Focus ‘Managing screen time: How to protect and equip students against distraction’ https://www.oecd-ilibrary.org/education/managing-screen-time_7c225af4-en and the OECD Education Policy Perspective ‘Students, digital devices and success’ can be found here - https://oe.cd/il/5yV
Synthetic Fiber Construction in lab .pptxPavel ( NSTU)
Synthetic fiber production is a fascinating and complex field that blends chemistry, engineering, and environmental science. By understanding these aspects, students can gain a comprehensive view of synthetic fiber production, its impact on society and the environment, and the potential for future innovations. Synthetic fibers play a crucial role in modern society, impacting various aspects of daily life, industry, and the environment. ynthetic fibers are integral to modern life, offering a range of benefits from cost-effectiveness and versatility to innovative applications and performance characteristics. While they pose environmental challenges, ongoing research and development aim to create more sustainable and eco-friendly alternatives. Understanding the importance of synthetic fibers helps in appreciating their role in the economy, industry, and daily life, while also emphasizing the need for sustainable practices and innovation.
How to Make a Field invisible in Odoo 17Celine George
It is possible to hide or invisible some fields in odoo. Commonly using “invisible” attribute in the field definition to invisible the fields. This slide will show how to make a field invisible in odoo 17.
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdfTechSoup
In this webinar you will learn how your organization can access TechSoup's wide variety of product discount and donation programs. From hardware to software, we'll give you a tour of the tools available to help your nonprofit with productivity, collaboration, financial management, donor tracking, security, and more.
Unit 8 - Information and Communication Technology (Paper I).pdfThiyagu K
This slides describes the basic concepts of ICT, basics of Email, Emerging Technology and Digital Initiatives in Education. This presentations aligns with the UGC Paper I syllabus.
2. Computer Programming
What is a program?
A computer program is a file, just like a
document in Microsoft Word or a picture in
KidPix.
Copyright 2012 Ed Burns, Creative Commons License 2
3. Computer Programming
What is a program?
+ =
With Microsoft Word or KidPix you use the
computer to create text or images to be read or
viewed by humans.
+ =
Copyright 2012 Ed Burns, Creative Commons License 3
4. Computer Programming
What is a program?
+ =
With a computer program, you use the
computer to create instructions to be read by a
computer!
Copyright 2012 Ed Burns, Creative Commons License 4
5. Computer Programming
What are instructions?
+ =
The instructions that make up a computer
program can be really simple.
Copyright 2012 Ed Burns, Creative Commons License 5
6. Computer Programming
What are instructions?
+ =
The instructions that make up a computer
program can be really simple...
print “Hello world!”
Copyright 2012 Ed Burns, Creative Commons License 6
7. Computer Programming
What are instructions?
+ =
...or very complex.
launch “space shuttle”
Copyright 2012 Ed Burns, Creative Commons License 7
8. Computer Programming
What are instructions?
+ =
...or very complex.
Instructions are also called statements.
Copyright 2012 Ed Burns, Creative Commons License 8
9. Computer Programming
Why are programs special?
Since the beginning of humanity, there have
only ever been five different ways that humans
can store and transmit knowledge!
Copyright 2012 Ed Burns, Creative Commons License 9
10. Computer Programming
Why are programs special?
Brains
From the beginning
of humans
Copyright 2012 Ed Burns, Creative Commons License 10
11. Computer Programming
Why are programs special?
Tools
Scientists say
3.5 million years ago
Copyright 2012 Ed Burns, Creative Commons License 11
12. Computer Programming
Why are programs special?
Books
600 years
ago
Copyright 2012 Ed Burns, Creative Commons License 12
13. Computer Programming
Why are programs special?
Recorded sound and images
152 years ago
Copyright 2012 Ed Burns, Creative Commons License 13
14. Computer Programming
Why are programs special?
Computer programs
68 years ago
Copyright 2012 Ed Burns, Creative Commons License 14
15. Computer Programming
What does a program do?
Because computer programs are so special,
there are lots of special words to talk about
them.
The first special word describes what a
computer does with a program.
Copyright 2012 Ed Burns, Creative Commons License 15
16. Computer Programming
What does a program do?
Copyright 2012 Ed Burns, Creative Commons License 16
17. Computer Programming
What does a program do?
It runs.
What runs the program?
Copyright 2012 Ed Burns, Creative Commons License 17
18. Computer Programming
What does a program do?
When a program runs, the computer looks at
each instruction and does what the instruction
says, one instruction at a time.
Copyright 2012 Ed Burns, Creative Commons License 18
19. Computer Programming
Who makes programs?
A person who writes a computer program is
called a Programmer.
You can be a programmer too!
Copyright 2012 Ed Burns, Creative Commons License 19
20. Computer Programming
Who makes programs?
A person who writes a computer program is
called a Programmer.
You can be a programmer too!
Let’s get started!
Copyright 2012 Ed Burns, Creative Commons License 20
22. Computer Programming
Simple instructions
Five basic concepts
Variables
If and if else statements
Lists
Loops
Sub-routines
Copyright 2012 Ed Burns, Creative Commons License 22
23. Computer Programming
Simple instructions
variable
A place to store information so the computer
can work with it
Real world example: What’s for lunch?
Hot dog
Hamburger
Copyright 2012 Ed Burns, Creative Commons License 23
24. Computer Programming
Simple instructions
variable
A place to store information so the computer
can work with it
Programming example: What’s for lunch?
lunch = “Hot Dog”;
lunch = “Hamburger”;
Copyright 2012 Ed Burns, Creative Commons License 24
25. Computer Programming
Simple instructions
if
Make choices based on the value of a variable
Real world example:
If lunch is hamburger, get ketchup. If lunch is
hot dog, get mustard.
Copyright 2012 Ed Burns, Creative Commons License 25
26. Computer Programming
Simple instructions
if
Make choices based on the value of a variable
Programming example:
if (lunch.equals(“Hamburger”)) {
getKetchup();
}
if (lunch.equals(“Hot Dog”)) {
getMustard();
} Copyright 2012 Ed Burns, Creative Commons License 26
27. Computer Programming
Simple instructions
if else
Use when you only have two choices to choose
from.
Real world example:
If lunch is hamburger, get ketchup, otherwise,
get mustard.
Copyright 2012 Ed Burns, Creative Commons License 27
28. Computer Programming
Simple instructions
if else
Use when you only have two choices to choose
from.
Programming example:
if (lunch.equals(“Hamburger”)) {
getKetchup();
} else {
getMustard();
} Copyright 2012 Ed Burns, Creative Commons License 28
29. Computer Programming
Simple instructions
lists
A special kind of variable that holds a list of
values
Real world example:
Your lunch choices are: hamburger, hot dog,
chicken nuggets or green salad
The items in the list are called elements. The
lunch choices list has four elements.
Copyright 2012 Ed Burns, Creative Commons License 29
30. Computer Programming
lists
Simple instructions
A special kind of variable that holds a list of
values
Programming example:
lunchChoices = { “hamburger”,
“hot dog”,“chicken nuggets”,
“green salad” };
print lunchChoices.size();
Prints out “4”.
Copyright 2012 Ed Burns, Creative Commons License 30
31. Computer Programming
Simple instructions
loops
A statement that lets you do something with
each element in a list.
Real world example:
Look at the lunch menu and decide what to eat.
Copyright 2012 Ed Burns, Creative Commons License 31
32. Computer Programming
Simple instructions
loops
A statement that lets you do something with
each element in a list.
Programming example:
for each (item : lunchChoices) {
if (iLikeIt(item)) {
eat(item);
}
}
Copyright 2012 Ed Burns, Creative Commons License 32
33. Computer Programming
Simple instructions
Subroutines
A program within a program. Basically a way
to organize your program so it’s easier to read.
Real world example:
To eat lunch, you must:
Decide what to eat
Buy it
Take it to your table
Eat it. Copyright 2012 Ed Burns, Creative Commons License 33
34. Computer Programming
Simple instructions
Subroutines
A program within a program. Basically a way
to organize your program so it’s easier to read.
Programming example:
lunch = readMenuAndPickItem();
buyItem(lunch);
table = chooseTable();
eatLunchAtTable(lunch, table);
Copyright 2012 Ed Burns, Creative Commons License 34
35. Computer Programming
Simple instructions
Subroutines
Programming example:
lunch = readMenuAndPickItem();
buyItem(lunch);
table = chooseTable();
eatLunchAtTable(lunch, table);
Subroutines need information to get their work
done. The pieces of information given to a
subroutine are called arguments.
Copyright 2012 Ed Burns, Creative Commons License 35
36. Computer Programming
Simple instructions
Review
Five basic concepts
Variables
If and if else statements
Lists
Loops
Sub-routines
Copyright 2012 Ed Burns, Creative Commons License 36