Processing Assignment 3
Conditional Statements
Directions: Complete 1 of the following levels and submit it to MS teams. A flowchart must accompany each program.
Mark Breakdown:
Source code: 10
Flowchart: 5
Mark Breakdown:
Source code: 10
Flowchart: 5
Magic 8 Ball
Create a sketch for a Magic 8 Ball. Randomly select a number between 1 and 8. Print a different message to the user based on the number selected. (Max 7)
Create a sketch for a Magic 8 Ball. Randomly select a number between 1 and 8. Print a different message to the user based on the number selected. (Max 7)
The Amusement Park
You have been hired to write a program that calculates a discount on amusement ride admissions based on age and the following table.
Age Discount
<5 100%
<=12 50% discount
<=26 10% discount
>60 25% discount
General admission costs $25 / person. Write a sketch that
(Max 8)
You have been hired to write a program that calculates a discount on amusement ride admissions based on age and the following table.
Age Discount
<5 100%
<=12 50% discount
<=26 10% discount
>60 25% discount
General admission costs $25 / person. Write a sketch that
- asks the user their age
- assign the appropriate discount,
- Calculate the discount
(Max 8)
Gold Level: Demonstrate expert understanding
Magic 8 Ball Graphics
Complete the magic 8 ball in the bronze level. Add the shapes and colours learned to make the 8 ball graphical. Display message in a textbox.
(Max 10 )
Magic 8 Ball Graphics
Complete the magic 8 ball in the bronze level. Add the shapes and colours learned to make the 8 ball graphical. Display message in a textbox.
(Max 10 )