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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!