Tuesday 28 June 2016

Programming Techniques

L/O - To show evidencing of your programming techniques

Starter - 5 minutes

Match the programming technique to the description for a green!

    Main - 50 minutes


    RED TASK

    1. Open IDLE (Python GUI)
    2. Open your coursework code (Task1)3. Use # to add comments into your code explaining how it works
    4. Under the Solution Development heading add a subheading, Task 1 Code
    5. Copy and paste your task 1 code in


    AMBER TASK

    6. Under the Programming Techniques add a sub heading Programming Techniques Used

    7. Create the following table and then complete it:

    Task Num
    Technique Used
    What does it do?
    How I have used it?
    1
    print()
    Displays things on the screen
    I used it to display my menu and to show messages telling the user which option they have picked
    1
    if() / elif()


    1
    int()


    1
    input()


    1
    exit()


    GREEN TASK


    8. Under the Programming Techniques add a sub heading Data Structures Used

    9. Create the following table and then complete it:

    Task Num
    Data Structure Name
    Data Structure Type
    Data Type Stored In it
    Purpose
    1
    choice
    Variable
    Integer


    10. Under the Testing and Evaluation heading add a sub heading Task 1 Test Plan

    11. Create the following table and then complete it:

    Test Number
    User Input
    Expected Outcome
    Actual Outcome
    Action Taken
    1
    None
    Menu shows on screen


    2
    1
    Tells users they have chosen to set generation 0 values


    3




    4




    5




    6





    12. Underneath your Task 1 Test Plan add screenshots showing the results of each of your tests

    Extension Task 1:
    What happens if your user types in a number that is not between 1 and 6?
    Can you add to your code so that your menu can handle this?

    Extension Task 2:
    What happens if your user types in something that is not a number at all?
    Can you add to your code so that your menu can handle this?

    Extension Task 3:
    Update your Programming Techniques Used table
    Update your Data Structures Used table
    Update your Task 1 Test Plan table


    Plenary - 5 minutes

    Make a comment on the new progress tracker HERE to let me know what you've done

    No comments:

    Post a Comment

    Elite of the Week

    Create your free online surveys with SurveyMonkey , the world's leading questionnaire tool.

    Year 10/11 Deadlines