d. Applied Task
VCE Applied Computing - Student Task Sheet
Unit 1 Area of Study 2 - Control Structures and Validation
Scenario
You are designing a Club Sign-Up Checker.
The solution should:
- ask the student to enter their year level
- reject blank input
- reject non-numeric input
- reject values outside the allowed range of 7 to 12
- keep asking until a valid value is entered
- display a confirmation message once the input is accepted
Task 1 - Identify the logic
(4 marks)
a. Identify one control structure needed for the repeated input process.
b. Identify one control structure needed for the decision-making process.
c. Explain why each is suitable.
Task 2 - Validation planning
(4 marks)
List the validation checks required and state the best order to apply them.
Briefly justify the order you chose.
Task 3 - Pseudocode
(6 marks)
Write pseudocode that:
- asks for the year level
- applies the required validation
- repeats until the input is valid
- displays a confirmation message
Task 4 - Reflection
(4 marks)
Explain how poor control structure choice or poor validation could cause this program to behave incorrectly.
You may refer to:
- infinite loops
- wrong branches running
- invalid data being accepted
Extension Discussion (2 marks optional)
Describe one situation where a FOR loop would be less suitable than a WHILE or DO/WHILE loop.