Gallery
Debug 5.4. Birthday Boolean
Share
Explore
Debug 5.4. Birthday Boolean

icon picker
The Task

Activity: Debug 5.4 Birthday Boolean! 🐞

Start Here

A bug report has been has been submitted on this program. This program should ask the user if it is their birthday today and display relevant response depending on answer. We have checked the program but the if else statement is in a bit of a mess. Can you help fix it?
Run and explore the program to identify errors.
Refer to the code clips below to help you fix the errors.
Right click on your code and add a comment explaining what was wrong and how you fixed it.
Good luck! 🍀

Sample output

Is today your birthday, 1-True or 0-False? 0


Have a great day when it comes.
Is today your birthday, 1-True or 0-False? 1


Happy Birthday!
Hope you have the best day
Share
 
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.