PERIOD THIRTEEN - IT 11


It is expected that students will:
  1. Dilbert "Strip of the Day"

  2. Take notes on the slide show on "Loops"

  3. Work on the assignment on A Day in the Life of A Computer Programmer.

  4. The programming assignments are posted here.

  5. Read the criteria for the programming assignments.

  6. The bonus programming assignment is on sending a telegram.

  7. Continue work on your "Day in The Life of A Computer Programmer" story. The details are listed on last day's schedule.

  8. I will be marking your programming assignments this weekend, so if you are not done, you can finish them today.

  9. For your unit test in two periods :

    • You will be required to write two computer programs in turbo pascal on your computer and save them to your personal drive.

    • Remember to write your programs with the standard marking criteria in mind.

    • You will be required to write the programs without using any other resources!

  10. 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 :