Question
Please help 1) I need to make a program that prints Happy Halloween! if the variable month is equal to October and it prints It's
Please help
1) I need to make a program that prints "Happy Halloween!" if the variable month is equal to "October" and it prints "It's not Halloween" if the month is equal to anything else. What should I use?
a) for loop
b) conditional
c) while loop
d) nested loops
e) function
2)I need to make a program that prints "Spooky pumpkin" for every pumpkin I have. I stored my number of pumpkins in the variable numOfPumpkins and it is set equal to 6. So the program should print "Spooky pumpkin" 6 times. What should I use?
a) for loop
b) conditional
c) while loop
d) nested loops
b) function
3)I need to make a program that tells me if I'm repeating my Halloween costume. I would tell it what costume I'm thinking of wearing and it would tell me back True if it is a repeat and False if it is a new costume. I'm even thinking of calling this chunk of code isCostumeRepeat. What should I use?
a) for loop
b) conditional
c) while loop
d) nested loops
e) function
4)I need to make a program that continuously prints "you've got candy" as long as my candy bucket is full. When my candy bucket is empty, I want it to stop printing "you've got candy" and instead print "Your bucket is empty" once.
What should I use?
a) for loop
b) conditional
c) while loop
d) nested loops
e) function
5)I need to make a program that iterates through my spreadsheet of the best neighborhoods for trick-or-treating. I need it to go through every column of my spreadsheet and then to the next row and repeat. What should I use?
a) for loop
b) conditional
c) while loop
d) nested loops
e) function
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started