Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

A while loop

Nested loops

A conditional

A 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

A while loop

Nested loops

A conditional

A 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

A while loop

Nested loops

A conditional

A 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.

A for loop

A while loop

Nested loops

A conditional

A 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

A while loop

Nested loops

A conditional

A 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_2

Step: 3

blur-text-image_3

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