exa.im/stempy16.files - Session 12 Python Camp

Slides:



Advertisements
Similar presentations
THE SYSTEMS LIFE CYCLE ANALYSE DESIGN IMPLEMENT MAINTENANCE IDENTIFY/INVESTIGATE.
Advertisements

Chapter 2: Beginning the Problem-Solving Process
Python File Handling. In all the programs you have made so far when program is closed all the data is lost, but what if you want to keep the data to use.
Secondary Storage GCSE Computing. Objectives… Understand the need for input and output devices. Describe suitable input devices for a wide range of computer.
By the end of this session you should be able to...
Python Programming Using Variables and input. Objectives We’re learning to build functions and to use inputs and outputs. Outcomes Build a function Use.
Variables. Todays Lesson  In todays lesson you are going to:  Learn to use variables  Learn to ask for user input  Learn to save the users response.
Math – What is a Function? 1. 2 input output function.
Week 4 : Function with parameters and return values.
Perimeter, Circumference, and Area 1.7 This presentation was created following the Fair Use Guidelines for Educational Multimedia. Certain materials are.
An Introduction to Programming with C++1 Beginning the Problem- Solving Process Tutorial 2.
Algorithms and Flowcharts
GCSE COMPUTER SCIENCE Practical Programming using Python
Quiz Sections 9.1 to 9.4 REVIEW GAME.
Chapter Topics 2.1 Designing a Program 2.2 Output, Input, and Variables 2.3 Variable Assignment and Calculations 2.4 Variable Declarations and Data Types.
Teacher notes You can sometimes find examples of these in the daily newpaper puzzle pages (Try the independent?) You might want to print off multiple.
Designing an Algorithm
For -G7 programing language Teacher / Shamsa Hassan Alhassouni.
Topics discussed in this section:
Input, Process, Output Washing dirty clothes Process Output Input.
Inputs and Variables Programming Guides.
Pythagorean Theorem MACC.8.G Apply the Pythagorean Theorem to determine unknown side lengths in right triangles in real-world and mathematical problems.
5 POINT PLAN THE SYSTEMS LIFE CYCLE ANALYSE DESIGN
SECTION 10-4 : RADICAL EQUATIONS
COMPUTATIONAL THINKING COMPUTATIONAL THINKING IN PROGRAMMING
2 Digit Decimals – Dividing – Spot the Mistake
Unit Scale Factors – Spot the Mistake
Starter Look at the hand-out.
Mixed Numbers & Improper Fractions – Converting – Spot the Mistake
Mixed Numbers – Adding & Subtracting – Spot the Mistake
Fractions to Decimals – Spot the Mistake
Rounding – Decimal Places & Significant Figures – Spot the Mistake
Roots – Square & Cube – Spot the Mistake
1 Digit Decimals – Subtracting – Spot the Mistake
1 Digit Decimals – Multiplying & Dividing – Spot the Mistake
2 Digit Decimals – Multiplying & Dividing – Spot the Mistake
Mixed Numbers – Dividing – Spot the Mistake
Mixed Numbers – Subtracting – Spot the Mistake
Compound Shapes – Area & Perimeter – Relay Race
1 Digit Decimals – Adding & Subtracting – Spot the Mistake
Year 8 Computer Science Digital Portfolio
Ratios to Percentages – Spot the Mistake
Decimals to Percentages – Spot the Mistake
Unit Fractions – Adding & Subtracting – Spot the Mistake
Algebraic Fractions – Adding & Subtracting – Spot the Mistake
Unit Fractions – Multiplying – Spot the Mistake
3 Digit Integers – Adding – Spot the Mistake
Unit Fractions – Mixed Arithmetic – Spot the Mistake
Lowest Common Multiples – Listing – Spot the Mistake
Decimals to Fractions – Spot the Mistake
Unit Fractions – Multiplying & Dividing – Spot the Mistake
3 Digit Integers – Multiplying & Dividing – Spot the Mistake
Mixed Numbers – Multiplying & Dividing – Spot the Mistake
Fractions to Ratios – Spot the Mistake
2 Digit Decimals – Adding – Spot the Mistake
Given that {image} {image} Evaluate the limit: {image} Choose the correct answer from the following:
3 Digit Integers – Adding & Subtracting – Spot the Mistake
2 Digit Integers – Adding & Subtracting – Spot the Mistake
Improper Fractions to Mixed Numbers – Spot the Mistake
Mixed Numbers – Adding – Spot the Mistake
Mixed Numbers to Improper Fractions – Spot the Mistake
Fractions – Multiplying – Spot the Mistake
Equivalence – Fractions, Decimals & Percentages – Spot the Mistake
Percentages to Decimals – Spot the Mistake
Unit Fractions – Subtracting – Spot the Mistake
Rounding – Whole Numbers – Spot the Mistake
Fractions – Multiplying & Dividing – Spot the Mistake
Ratios to Fractions – Spot the Mistake
Programming Techniques
1 Digit Decimals – Multiplying – Spot the Mistake
Presentation transcript:

exa.im/stempy16.files - Session 12 Python Camp Session 12: Solving a Problem Analysis & Design Programming Testing & Evaluation

Two Tasks Easy A maths teacher in a primary school would like a program that will test students on the area of a rectangle. The program should generate two different side lengths, ask the students the question and check if their answer is correct. The program should repeat for 5 different questions. Medium The program should initially ask the student for their name and then create a file using that name. The question and the student’s answer should be stored in that file so that they can be retrieved. The teacher also needs a program that will load up and print the scores for a given student. Hard The program should have different types of questions – for rectangles, squares and triangles. The student should be able to choose their type of question each time and the type of question and the score should both be stored. The teacher program should present a range of suitable statistics to help analyse the data

Analysis Requirements What inputs are needed? What outputs are needed? What does the user need to be able to do? Decomposition How could you break the task down into smaller sections? Plan Pseudocode Flowchart if you have time

Development Try solving just one part of the problem Then test it – several times. Be certain that it does/doesn’t work as it should. If necessary – fix it. Otherwise, move on to the next part. VERY IMPORTANT Don’t be afraid to document your mistakes. You aren’t expected to get it right the first time!