PERIOD TEN - IT 11
It is expected that students will:
- demonstrate an understanding of the following programming language concepts:
- reduced vocabulary
- translation to programming language
- syntax and grammar
Dilbert "Strip of the Day"
Take notes on the slide show on "Loops"
Work on the assignment on A Day in the Life of A Computer Programmer.
The programming assignments are posted here. They are due today! Make sure they follow the criteria)
The bonus programming assignment is on sending a telegram.
Continue work on your "A Day in the Life of A Computer Programmer." This will be due at the BEGINNING of Period 16!
Read the tutorial on For Loops, While Loops, and Until Loops.
Do the following looping assignment:
Write a program that uses a LOOPING command and counts down from 10 to 0 and then says 'Blastoff'.
Hint : determine which to use, a FOR, WHILE, OR REPEAT LOOP.
If you are finished you can try tomorrow's assignment
- Write a program that prompts a user for two numbers and then asks the user to input the sum of the numbers. If it is correct, give feedback. If it is not correct let them try again until they get the right answer. Once they give the right answer, ask them if they want to continue, if yes it should ask the user for two more numbers, if no, the program should stop.
SAMPLE OUTPUT FOR ASSIGNMENT
(NUMBERS IN RED ARE THOSE THAT THE USER HAS ENTERED)Please enter two numbers : (23, 12)
What is the sum of 23 + 12 ? (33)
Sorry 23 + 12 is not 33, please try again
What is the sum of 23 + 12 ? (35)
Yes ! Congratulations 23 + 12 is 35.
Would you like to try again? Y or N ? (Y)
Please enter two numbers :