Presentation is loading. Please wait.

Presentation is loading. Please wait.

CS001 Introduction to Programming Day 1 Sujana Jyothi

Similar presentations


Presentation on theme: "CS001 Introduction to Programming Day 1 Sujana Jyothi"— Presentation transcript:

1 CS001 Introduction to Programming Day 1 Sujana Jyothi (sujana@cs.nuim.ie)sujana@cs.nuim.ie

2 2 What will you learn? Learn to understand programs Use the Scratch interactive development environment (IDE) - Labs Learn to solve problems Understand what we mean by algorithms

3 3 Resources –Use the material from NUIM Moodle. Save your work –on your flash drive –or email it to yourself

4 4 Course Structure Lectures/Labs Monday 11:00-12:00: lecture Tuesday 9:00-10:00: Lecture Lab Friday 11:00 – 13:00 Assignments Marks out of 2 are given for each of two laboratory sessions Two 10 minute quizzes (to be taken during lectures) – 3 marks each. Total 10 marks for “Introduction to Programming” class. Attendance record will be kept for all sessions for lectures and labs Assessment will be based on lab work, quizzes & attendance

5 Computer Programming Easy to UNDERSTAND INTERESTING to know & Enjoyable

6 Programming is simply telling a computer to do a task Sequence of steps to be followed

7 Pizza Dough Recipe (Requirements)‏ 1. Gather Ingredients 2. Combine sugar (1tbs), salt (1tbs), olive oil (1tbs), flour (1c) in mixing bowl 3. Turn on mixer 4. Add 1/4 cup of flour 5. If dough comes off the sides go to step 6, otherwise go back to step 4 6. Knead 15 minutes 7. Let rest for at least 45 minutes in warm area  1 dough ball

8 N-Pizza Dough Program Gather Ingredients Combine sugar (N tbs), salt (N tbs), olive oil (N tbs), flour (N c) in mixing bowl Turn on mixer Add N/4 cup of flour If dough comes off the sides go to step 6, otherwise go back to step 4 Knead 15 minutes Let rest for at least 45 minutes in warm area  N dough balls

9 N-Pizza Dough Program Gather Ingredients Combine sugar (N tbs), salt (N tbs), olive oil (N tbs), flour (N c) in mixing bowl Turn on mixer Add N/4 cup of flour If dough comes off the sides go to step 6, otherwise go back to step 4 Knead 15 minutes Let rest for at least 45 minutes in warm area Sequence of Statements  N dough balls

10 N-Pizza Dough Program Gather Ingredients Combine sugar (N tbs), salt (N tbs), olive oil (N tbs), flour (N c) in mixing bowl Turn on mixer Add N/4 cup of flour If dough comes off the sides go to step 6, otherwise go back to step 4 Knead 15 minutes Let rest for at least 45 minutes in warm area  N dough balls Variable

11 N-Pizza Dough - Program Gather Ingredients Combine sugar (N tbs), salt (N tbs), olive oil (N tbs), flour (N c) in mixing bowl Turn on mixer Add N/4 cup of flour If dough comes off the sides go to step 6, otherwise go back to step 4 Knead 15 minutes Let rest for at least 45 minutes in warm area Conditional

12 N-Pizza Dough - Program Gather Ingredients Combine sugar (N tbs), salt (N tbs), olive oil (N tbs), flour (N c) in mixing bowl Turn on mixer Add N/4 cup of flour If dough comes off the sides go to step 6, otherwise go back to step 4 Knead 15 minutes Let rest for at least 45 minutes in warm area Subroutines Mini-programs  N dough balls

13 Tomorrow's Class More on Programming More on Algorithms Friday – lab using Scratch


Download ppt "CS001 Introduction to Programming Day 1 Sujana Jyothi"

Similar presentations


Ads by Google