23/06/16


Learning Objective: Develop understanding of programming techniques used within Task 1






Recap

What is the CA about?
What is the program called we use to writ code?
What is the shortcut for running a program?

Complete the code for Task 1









Red Task
Insert your completed and annotated code in to your portfolio (Word doc)

Amber Task
Insert the 3 tables and subheadings in to your portfolio.

Green Task
Complete the tables for your Task 1 code.



Use the sheet to help:

1. Use # to add comments into your code explaining how it works
2. Under the Solution Development heading add a subheading, Task 1 Code
3. Copy and paste your task 1 code in
4. Under the Programming Techniques add a sub heading Programming Techniques Used
5. 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()



6. Under the Programming Techniques add a sub heading Data Structures Used
7. 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



8. Under the Testing and Evaluation heading add a sub heading Task 1 Test Plan
9. 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





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

Extension Task1:
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 Task2:
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 Task3:
Update your Programming Techniques Used table
Update your Data Structures Used table
Update your Task 1 Test Plan table






Update tracker.....
Where are you at?

Comments

Popular posts from this blog

10n2

10n2