Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Seven Databases In Seven Weeks A Guide To Modern Databases And The NoSQL Movement

Authors: Luc Perkins, Eric Redmond, Jim Wilson

2nd Edition

1680502530, 978-1680502534

More Books

Students also viewed these Databases questions

Question

What are the stages of project management? Write it in items.

Answered: 1 week ago

Question

why do consumers often fail to seek out higher yields on deposits ?

Answered: 1 week ago

Question

Determine the roles of spatial layout and functionality.

Answered: 1 week ago