SDD+Data+Types+and+Structures+N5

media type="custom" key="28160469"


 * Questions**

1. Which data type would you use to store: (a) The first line of an address (b) A person's weight (c) The number of computer games a person owns (d) A student's exam score (e) A student's average exam score (f) The entire class's exam scores (g) Information about a football team: Name, year founded, strip colour, manager, trophies won (h) Whether a traffic light signal is green or not

2. Write the pseudocode for a program which loops through an entire array of integers, calculating the total The array is called numbers

3. Write the pseudocode for a program which loops through an entire array of integers, calculating the average The array is called numbers

4. SuperTel Telecom are writing a program which stores details about their customers. They use an array to store the type of account each customer has. The array is called customer_account. It can contain the values "Bronze", "Silver", "Gold", Platinum" The program should also use a variable called platinum_count A test of the program is created with 10 accounts

(a) Write pseudocode to: Intialise platinum_count to 0 Loop through the array customer_account and add 1 to platinum_count if the value stored is "Platinum" Display the number of platinum accounts

(b) Extend your pseudocode to count and display the number of gold, silver and bronze accounts