AnalysisQs+IPO

Write down any inputs, processes and outputs for the following problems. Make sure you state any assumptions

1. Write a program which accepts 5 numbers and then adds them together

2. Write a program which accepts a pupil score in a test and displays "Pass" if over 50, or "Fail" if 50 or below.

3. Write a program which accepts a string of up to 6 numbers consisting of A, B, C, D or E and then converts them to numbers (1, 2, 3, 4 or 5)

4. Write a program which picks 6 random lottery numbers

5. Write a program which accepts a user's name as an input and then prints out an anagram

6. Write a program which calculates the area of a circle if the user enters the radius (A = PI x r squared)


 * Homework**

H1. Write a program which prompts the user for a letter, and a word and then displays the number of occurrences of the letter in that word

H2. Write a program which takes in five 100m times and then displays which one is the fastest (hint use a loop)