jagomart
digital resources
picture1_Calorie Counter Book Pdf 150640 | Python Programming Book 2 Level 4


 137x       Filetype PDF       File size 0.53 MB       Source: www.whec.edin.sch.uk


File: Calorie Counter Book Pdf 150640 | Python Programming Book 2 Level 4
book 2 writing python programs level 4 computing science contents 2 writing computer programs 4 1 calorie counter 5 2 garden centre 12 3 calorie reward 15 4 national 4 ...

icon picture PDF Filetype PDF | Posted on 14 Jan 2023 | 2 years ago
Partial capture of text on file.
           
                                      
                          - Book 2 - 
         Writing Python Programs 
                                              
                            Level 4 
                Computing Science 
           
                                 
                                Contents 
                                      2            Writing Computer Programs                                                                                          4 
                                                             1.  Calorie Counter                                                                                       5 
                                                             2.  Garden Centre                                                                                      12 
                                                             3.  Calorie Reward                                                                                     15 
                                                             4.  National 4 – Programming Task 1                                                                    17 
                                                             5.  Average Calories                                                                                   18 
                                                             6.  Average Solar Payment                                                                              21 
                                                             7.  National 4 – Programming Task 2                                                                    23 
                                                             8.  Tuck shop                                                                                          24 
                                                             9.  Dental Fillings                                                                                    28 
                                                             10. National 4 – Programming Task 3                                                                    30 
                                 
                                2                                 Book 2 – Writing Python Programs for Level 4 Computing Science 
                                                                                               
                                                                                                
                                                                                              2                                     Writing Computer Programs 
                                                                                                                            Now that you have played with the programming building blocks in Python, it 
                                                                                                                            is time to learn how to put them together to make full computer programs. 
                                                                                                                             
                                                                                                                            Different programs are made by simply putting the blocks together in 
                                                                                                                            different ways – much as you can make many different models out of one 
                                                                                                                            basic set of Lego™ building blocks. 
                                                                                                                             
                                                                                                                            You will only be expected to write short programs as this stage. 
                                                                                                                             
                                                                                                                            There is a lot to remember from Book 1 – Playing with Python. To help you, 
                                                                                                                            your teacher should issue you with a Python Crib Sheet. This summarises all 
                                                                                                                            of the Python commands that you learned about in Book 1. 
                                                                                                                             
                                                                                                                             
                                                                                                                             
                                                                                                                                                                                                              
                                                                                               
                                                                                              © E. Forrester, Distributed by AOK Learning Ltd                                                                                                                                                                                                                                                                                                                                                                                                             3 
                                 
                                1.  Calorie Counter 
                                           
                                          Every new program starts with an idea. 
                                           
                                          That idea is turned into a program statement – simply a sentence or two 
                                          stating what the program is expected to do. 
                                           
                                          In these notes the ideas and program statements have been made for you. 
                                           
                                          Write a Calorie Counter program which… 
                                              ◆ will ask for the number of Calories in porridge, toast, marmalade 
                                                    and coffee  
                                              ◆ calculates total number of Calories consumed. 
                                              ◆ displays this total number 
                                          As a programmer, you first task is to analyse this program statement. 
                                           
                                          The programmer needs to identify the action verbs, which indicate actions to 
                                          be taken and nouns, which indicate possible variables. 
                                           
                                          I have used a double line to underline the verbs and a single line to underline 
                                          the nouns. 
                                              ◆ will ask for the number Calories in porridge, toast, marmalade and 
                                                    coffee  
                                              ◆ Calculates the total number of Calories consumed. 
                                              ◆ Display this total number 
                                          From here you can rewrite the task using the verbs and nouns, breaking it up 
                                          even further into separate short sentences 
                                           
                                           
                                           
                                4                                 Book 2 – Writing Python Programs for Level 4 Computing Science 
The words contained in this file might help you see if this file matches what you are looking for:

...Book writing python programs level computing science contents computer calorie counter garden centre reward national programming task average calories solar payment tuck shop dental fillings for now that you have played with the building blocks in it is time to learn how put them together make full different are made by simply putting ways much as can many models out of one basic set lego will only be expected write short this stage there a lot remember from playing help your teacher should issue crib sheet summarises all commands learned about e forrester distributed aok learning ltd every new program starts an idea turned into statement sentence or two stating what do these notes ideas and statements been which ask number porridge toast marmalade coffee calculates total consumed displays programmer first analyse needs identify action verbs indicate actions taken nouns possible variables i used double line underline single display here rewrite using breaking up even further separate s...

no reviews yet
Please Login to review.