CS 111 – Oct. 20 Most essential skill in IT: problem solving using the computer –Telling the machine exactly what we want it to do. –Also: making sure.

Slides:



Advertisements
Similar presentations
Classroom Cookbook 1. Research your cultural history Ex: Are you Irish, German, Native American? You may represent more than one culture! 2. Find a recipe.
Advertisements

Casserole A casserole is a tasty blend of cooked ingredients that are heated together to develop flavor.
There are three main parts to a casserole:
Copyright © 2002 W. A. Tucker1 Chapter 1 Lecture Notes Bill Tucker Austin Community College COSC 1315.
Starting with Text. Basic Literacy Appropriate use Basic operation – Keyboarding, mouse operation, Input, output devices; how things work – Parts of the.
CMT1000: Introduction to Programming Ed Currie Lecture 2A: Pizza.
CS 101 Problem Solving and Structured Programming in C Sami Rollins Spring 2003.
Basic Computer Skills Seminar
Cooking for One or Two Cooking made simple. Making Mealtime Enjoyable Again Choose recipes with fewer ingredients- Saves you time and energy! Pick your.
Why is it important to read through and understand all parts of the recipe?
 Name tag  Notebook  Pen  No food or drink in my class.  If you are late to class, you will stay after class with me for five minutes.  When I.
What life was like… During great depression it was really hard for people to afford food. So they had to find ways to make a meal for their family! Back.
Indian recipes Here are some Indian food you might like. By Olivia & Moncef.
Cynthia’s Silly Book for Cooks! Creative, catchy title Pictures (you may add personal photos or illustrations as well. Remember that if you do an illustration,
Cooking lessons.
Procedure Text.
POLISH RECIPES collected by Maksym Chudzicki from III b and Julia Chudzicka 6 b.
DCT 1123 PROBLEM SOLVING & ALGORITHMS INTRODUCTION TO PROGRAMMING.
Crown copyright 2008 Classic tomato ragu Session: 11.
CS 101 – Oct. 5 Computer problem solving Chapter 6: read pp Problem-solving procedure Structure of a solution Examples!
COMPUTER PROGRAMMING Source: Computing Concepts (the I-series) by Haag, Cummings, and Rhea, McGraw-Hill/Irwin, 2002.
Process Writing: Explanatory Essays Or “How To” Essays.
Traditional English dishes have had competition from other dishes over the years. Despite this, if you visit England, you can still be served up the traditional.
Introduction to Programming ICS2O Findlay. Learning Goals  We will learn  The definitions of a computer, program and programming language.  The different.
THE PARTS OF A RECIPE.
Finnish Christmas food Recipes Carrot casserole Rosolli.
Monstrous Meatballs with Ragu Sauce & Spaghetti. Ingredients for the Ragu Sauce: 1 onion, 1 clove garlic, 1 carrot, 1 celery, 1 bay leaf 400g can tomatoes,
CS 114 – Class 02 Topics  Computer programs  Using the compiler Assignments  Read pages for Thursday.  We will go to the lab on Thursday.
What you will need Peas Carrots Potatoes Oxo Mince Meat Onion.
Vegetable burgers (Vegetarian) 2 portions: 1 small onion, rasped 2 carrots, rasped 2 potatoes, rasped 100 g celery root, rasped 1 egg 3 regular spoon whole.
Problem Solving using the Science of Computing MSE 2400 EaLiCaRA Spring 2015 Dr. Tom Way.
Basic of Programming Language Skill Area Computer System Computer Program Programming Language Programmer Translators.
CS 111 – Sept. 15 Chapter 2 – Manipulating data by performing instructions “What is going on in the CPU?” Commitment: –Please read through section 2.3.
© British Nutrition Foundation 2006www.nutrition.org.uk/cookclub Fish Pie.
Crown copyright 2007 Shepherd’s pie Session: 16.
Analyzing Procedural Texts
Casserole A casserole is a tasty blend of cooked ingredients that are heated together to develop flavor.
Intermediate 2 Computing Unit 2 - Software Development.
RECIPE Sirloin in cream sauce (6 portions) The Czech Republic.
BEEF STEW. PERSON 1 Put 1 T oil in a saucepan- turn pan on to medium Gather ½ lb beef ( come up to the front with a plate In a small bowl add 2 T of flour.
By: Jacob Seymour, Molly Staszak, and Julia Concolino China.
CMPSC 16 Problem Solving with Computers I Spring 2014 Instructor: Tevfik Bultan Lecture 4: Introduction to C: Control Flow.
Procedure have three definition :  Texts that explain how something works or how to use instruction / operation manuals e.g. how to use the video, the.
CS 101 – Oct. 7 Solving simple problems: create algorithm Structure of solution –Sequence of steps (1,2,3….) –Sometimes we need to make a choice –Sometimes.
The Casserole Competition This will be your opportunity to compete against other kitchen groups!
Using Recipes Essential Question: How does an understanding of the components of a recipe help you produce successful results? Food for Today Chapter 24.
PROCEDURE What is A PROCEDURE? A procedure is a piece of text that tells how to do something. Its purpose is to provide instructions for making something,
L/O/G/O PROCEDURAL TEXT. Procedural text is a text that is explaining about the way how to do, how to get or how to make something.
There is an old adage that says "if you can read you can cook." That's only true after you've had a little experience! Cooking terms can be confusing,
The recipe book of… Optional headtitle Greek salad soup English cake Baked potatoes chicken in the oven Orange cake Cheese cake carrot cake pizza homemade.
Bacon and French Ice cream Cake and Bread and Macaroni and chips Hamburger and eggs cheese JellyFish and Peanut butter and fries butter.
Demonstration: Cottage Pie YEAR 10 FOOD TECHNOLOGY GCSE.
Writing a Recipe.
Sweet Potato Casserole
Topic: Introduction to Computing Science and Programming + Algorithm
Software Development Expansion of topics page 28 in Zelle
Introduction to Programming and Visual Basic
Proportional Problems 2 – RECIPES
Fish pie.
Chapter 1 Program Development
Assembler, Compiler, Interpreter
Session: 16 Shepherd’s pie © Crown copyright 2007.
Carrot Kielbasa Soup (Gluten Free) Abby Plumley
Assembler, Compiler, Interpreter
Tagliatelle Bolognese
CS 1111 Introduction to Programming Spring 2019
Shepherd’s pie Ingredients 1 onion 1 carrot 3 medium potatoes (700g)
Cooking lessons.
CS 1308 Exam 2 Review.
Ingredients ingredients [noun - plural] the foods that are needed to cook a certain dish This dish tastes very nice because we used fresh ingredients.
Presentation transcript:

CS 111 – Oct. 20 Most essential skill in IT: problem solving using the computer –Telling the machine exactly what we want it to do. –Also: making sure result of software is packaged in a way that ordinary people will understand. Problem solving procedure What does a solution look like? Learn by example, and generalize. Commitment: –Please read carefully sections 5.1 and 5.2

Why software? Want computational power –To have direct control of machine –Sometimes, existing software is not sufficient, doesn’t give what you want –Programs can be useful or fun for people to use (e.g. game, converting data to image, …) Need to use a computer language –E.g. Javascript, PHP, Python, C++, etc. –Machine independent –Many common calculations are pre-defined, such as sorting, opening files, surfing the Web, creating a form button, etc.

Program One specimen of software is called a computer program Small or large, purpose is to solve 1 problem. Works like a recipe –List of necessary ingredients –List of instructions for CPU to obey. A simple program normally has 3 phases. –Input –Calculations –Output

Recipes Cooking may be a good analogy, because it solves the problem “I’m hungry” What do we see in recipes? Here’s one: –Brown the beef 15 min. Drain grease. –Dice carrot, celery, onion (aka mirepoix) –Cut up and boil 6 potatoes until soft. –Mash potatoes –Add flour, spices, sauce, mirepoix to beef. –Put meat mixture into casserole; top with potatoes. –Bake in oven at 400 for 30 minutes.

Recipes (2) A computer program has some of the same elements as a recipe. In recipes, we see: –Ingredients (the “nouns” of the problem) –Steps to perform (the “verbs”) –In some steps, we continue/wait for something –Sometimes we check things Are potatoes fully mashed? Should I add more _____ to the mixture?

Recipes inside recipes But we don’t eat the same stuff every day. Once we know a few recipes, we can put together a menu for choices. if (have all ingredients), make Shepherd’s pie. if (no potatoes), just make soup instead. if (no veggies), make hamburger. if (no beef), make pasta. When you view a whole menu as a program, then “making soup” becomes a sub-program. –A large program is composed of several parts. –In industry, sometimes each part is implemented by different people, like a kitchen having many chefs.

Problem-solving 1.Understand problem; inputs and outputs 2.Write solution in English “pseudo-code” 3.Write code in a programming language 4.Compile 5.Run and test When program works, can refine or generalize.