Week 6 Computer Programming Year 9 – Unit 9.04

Slides:



Advertisements
Similar presentations
Programming in python Lesson 2.
Advertisements

Python Magic Select a Lesson: Why Learn to Code? Basic Python Syntax
Hello Parents! Welcome to the classroom! On your way in if you could please pick up a Senteo Parent Guide Hand Out on the desk. Elizabeth Malone Fall 2009.
A wonderful informal assessment tool! Created by Joell Wilkins using the Apple app, so please note Android apps might be different. This powerpoint may.
CIS101 Introduction to Computing Week 12 Spring 2004.
Click the red dot to begin. 6 x 6 9 x 9 x Exponents fun quiz Practice with Fun
Today we are going to explore initial and final assessment activities.
From Scratch to Python Learn to program like the big boys / girls!
An Introduction to Textual Programming
DATE: ______/_______/_______NAME: ________________________________________________________________________________ Assignment: As part of our preparation.
Python Programming Introduction to programming using python.
ECS 10 10/8. Outline Announcements Homework 2 questions Boolean expressions If/else statements State variables and avoiding sys.exit(…) Example: Coin.
 We are going to learn about programming in general…How to think logically and problem solve. The programming language we will use is Python. This is.
While Loops Indefinite Iteration. Last lesson we looked at definite loops using the ‘For’ statement. The while loop keeps going while some condition is.
Introduction to Python Lesson 1 First Program. Learning Outcomes In this lesson the student will: 1.Learn some important facts about PC’s 2.Learn how.
5.04 Apply Decision Making Structures
Programming Fundamentals I Java Programming Spring 2009 Instructor: Xuan Tung Hoang TA: Tran Minh Trung Lab 03.
PROGRAMMING IN PYTHON LETS LEARN SOME CODE TOGETHER!
Lesson 1. Security At the menu bar at the top you will see the word Tools. Click your mouse on Tools scroll down to Macro. Move the Mouse over and down.
Chapter 8 Spreadsheets. Examining Spreadsheets  Basic Functions Performing Calculations Sorting Data Selecting Data Creating Graphs and Charts.
GCSE Computing: Programming GCSE Programming Remembering Python.
Logical Operators.  Quiz  Let's look at the schedule  Logical Operators 2.
Introduction to Programming Python Lab 7: if Statement 19 February PythonLab7 lecture slides.ppt Ping Brennan
Microsoft® Small Basic Conditions and Loops Estimated time to complete this lesson: 2 hours.
PROGRAMMING In Lesson 6. RECAP  Discuss with the person next to you...  what you have enjoyed about python programming  What you have found difficult.
Instructor: Chris Trenkov Hands-on Course Python for Absolute Beginners (Spring 2015) Class #003 (February 14, 2015)
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.
CIS 115 All Exercises Devry University (Devry) FOR MORE CLASSES VISIT CIS 115 All Exercises Devry University.
Decision Analysis Fall Term 2015 Marymount University School of Business Administration Professor Suydam Week 10 Access Basics – Tutorial B; Introduction.
CIS 115 All Exercises Devry University (Devry) FOR MORE CLASSES VISIT CIS 115 All Exercises Devry University.
CIS 115 ALL EXERCISES DEVRY UNIVERSITY (DEVRY)  CIS 115 All Exercises Devry University CIS 115 ALL ILABS DEVRY UNIVERSITY (DEVRY)  CIS 115 All iLabs.
CIS 115 AID Teaching Effectively/cis115aid.com FOR MORE CLASSES VISIT
GCSE COMPUTER SCIENCE Practical Programming using Python
CIS 115 Slingshot Academy / cis115.com
Technology acts a direct substitute, with no functional improvement
A Simple Quiz for Alice 3.2:
Week 4 Computer Programming Gray , Calibri 24
Week of 12/12/16 Test Review.
Topic: Conditional Statements – Part 1
Introduction to Programmng in Python
CIS115 Education for Service-- snaptutorial.com
CIS 115 Lessons in Excellence-- cis115.com. CIS 115 All Exercises Devry University (Devry) For more course tutorials visit CIS 115 All.
CIS 115 Teaching Effectively-- snaptutorial.com
Week 3 Computer Programming Learning Objective:
Sign Up Here.
Python I/O.
Week 5 Computer Programming Gray , Calibri 24
Week 1 Computer Programming Year 9 – Unit 9.04
For -G7 programing language Teacher / Shamsa Hassan Alhassouni.
Week 2 Computer Programming Learning Objective:
A Simple Quiz for Alice 3.2:
Week 5 Computer Programming Year 9 – Unit 9.04
Story time Task 5 Computer Programming Gray , Calibri 24
Task 1 Computer Programming LEVEL 6 PROGRAMMING:
Introduction to TouchDevelop
Week 4 Computer Programming Year 9 – Unit 9.04
Lesson Quizzes Standard Lesson Quiz
Wouldn’t you love it if…
The first number is posted telling what random number was selected, I did this for testing purposes, in the real thing it would not be there. Since the.
Put it all together Lesson 5.
LONG MULTIPLICATION is just multiplying two numbers.
Clear and Unclear Windows
Put it all together Lesson 6.
Lesson 4.
Week 6 Computer Programming Gray , Calibri 24
Python Selection.
Restricting Events Creating Conditional Events in Alice By Henry Qin
Year 8 Computer Science Digital Portfolio
Presentation transcript:

Week 6 Computer Programming Year 9 – Unit 9.04 Gray 80 69 69 69, Calibri 24 Dark Red RGB 153 0 0, Calibri 54

Let’s make one final improvement on our program…. Find your program entitled Maths Quiz and open it. The program should have consisted of 5 questions The program should store the user’s name The program should also store the score Finally, the program tells the user whether they’ve got the question right or wrong. Let’s make one final improvement on our program….

The final score of the user Score is 5 out of 5 Rank: Total Genius Score is 4 out of 5 Rank: Maths Wizard Score is 3 out of 5 Rank: Intermediate The final score of the user (after 5 questions) should fall into one of the following ranks. Score is 2 out of 5 Rank: Beginner Score is 1 out of 5 Rank: Noob

[name], you scored 1 out of 5. Your rank is NOOB For example…. If the final score (after 5 questions) is 1 out of 5, the final score message will read: [name], you scored 1 out of 5. Your rank is NOOB or…. If the final score (after 5 questions) is 2 out of 5, the final score message will read: [name], you scored 2 out of 5. Your rank is BEGINNNER or…. If the final score (after 5 questions) is 5 out of 5, the final score message will read: [name], you scored 5 out of 5. Your rank is TOTAL GENIUS

To achieve this, we will once again use the If statement if score == 1: print(user_name,', you scored: ', score,' out of 5. Your rank is: NOOB') if score == 2: print(user_name,', you scored: ', score,' out of 5. Your rank is: BEGINNER') . . . This code must be entered at the bottom of your program. As you can see in the above, there is no ‘else’ part. This is looked at in Year 11 Computing, but for our needs, 5 simple ‘if statements’ will help us achieve our objectives. Edit your program now so that it gives the user a ‘rank’ according to their score.

Save your Maths Quiz game. NOTE! Not all possible scores have been ranked!! Once you’ve discovered what the missing score is, edit your program to ‘rank’ this using a message or your own choosing. Save your Maths Quiz game.

Hope you really enjoyed learning to program a computer… …and hope you found PYTHON easy to learn! Next class, you will be doing a Controlled Assessment. You will be given the entire lesson to write a Python program which should solve a problem given to you by the teacher. Good Luck!