Challenge 18 Write an algorithm that: Outputs all odd numbers between 1 and 20 only. Suggested Pseudocode Statements Arithmetic Operations Decisions Repetition < BEGIN / END - WHILE or FOR + OUTPUT = Challenge 19 Write an algorithm that: Asks the user to input a number and repeat this until they guess the number 7. Congratulate the user with a when they guess correctly. ‘Well Done’ message Suggested Pseudocode Statements Arithmetic Operations Decisions Repetition = BEGIN / END IF - INPUT ELSE OUPUT == ELSE Pseudocode only challenges Challenge 20 MyHotPizza company have developed a new loyalty reward system for customers. Customers are automatically sent a reward card if they order more than 20 pizzas in a year. They have a log of stored in a file, as shown: customer’s orders Customer Name Large Medium Small Card? Smith, J 5 6 1 No Williams, P 10 12 3 Yes etc Write an algorithm that goes through the customer orders, and where needed, sends customers a loyalty card if they do not already have one. If they have not ordered enough pizzas, then it removes them from the card list. Suggested Pseudocode Statements
Challenge 18 Write an algorithm that: Outputs all odd numbers between 1 and 20 only. Suggested Pseudocode Statements Arithmetic Operations Decisions Repetition < + = BEGIN / END OUTPUT - WHILE or FOR Challenge 19 Write an algorithm that: Asks the user to input a number and repeat this until they guess the number 7. Congratulate the user with a ‘Well Done’ message when they guess correctly. Suggested Pseudocode Statements Arithmetic Operations Decisions Repetition = BEGIN / END INPUT OUPUT IF ELSE == - ELSE Pseudocode only challenges Challenge 20 MyHotPizza company have developed a new loyalty reward system for customers. Customers are automatically sent a reward card if they order more than 20 pizzas in a year. They have a log of customer’s orders stored in a file, as shown: Customer Name Large Medium Small Card? Smith, J 5 6 1 No Williams, P 10 12 3 Yes etc Write an algorithm that goes through the customer orders, and where needed, sends customers a loyalty card if they do not already have one. If they have not ordered enough pizzas, then it removes them from the card list. Suggested Pseudocode Statements
400714-algorithm-challenge-booklet-teachers-guide.docx