Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

Project 05: Locker Puzzle at Submit Assignment Due Sunday by 11:59pm Points 30 Available until Mar 7 at 11:59pm Submitting a text entry box or

image text in transcribedimage text in transcribed

Project 05: Locker Puzzle at Submit Assignment Due Sunday by 11:59pm Points 30 Available until Mar 7 at 11:59pm Submitting a text entry box or a website url Problem Description: A school has 100 lockers and 100 students. All lockers are closed on the first day of school. As the students enter, the first student, denoted S1, opens every locker. Then the second student, S2, begins with the second locker, denoted L2, and closes every other locker. Student S3 begins with the third locker and changes every third locker (closes it if it was open, and opens it if it was closed). Student 54 begins with locker L4 and changes every fourth locker. Student S5 starts with L5 and changes every fifth locker, and so on, until student $100 changes L100. After all the students have passed through the building and changed the lockers, which lockers are open? Write a program to find your answer. The program should display the answer like this: Locker x is open Lockery is open Locker z is open (Hint: Use an array of 100 boolean elements, each of which indicates whether a locker is open (true) or closed (false). Initially, all lockers are closed.) Submit your group video presentation using Zoom. In your video cover the following: Analysis: (Describe the problem including input and output in your own words.) Design: (Describe the major steps for solving the problem.) Coding: (Go over your code step by step) (Hint: Use an array of 100 boolean elements, each of which indicates whether a locker is open (true) or closed (false). Initially, all lockers are closed.) Submit your group video presentation using Zoom. In your video cover the following: Analysis: (Describe the problem including input and output in your own words.) Design: (Describe the major steps for solving the problem.) Coding: (Go over your code step by step) Testing: (Describe how you test this program). In other words run your code with sample outputs. Note: You will have new Partners or may be you get the same one as it is automatically selected by canvas. Before starting your project contact your partner and divide your work load. You can check your partner on canvas by clicking on People on left side. Select the Project at the top you are working on and see your group. Upload your video on Google drive and submit the link here in submission. Make sure you have listed me as a viewer and I can open the link. Only one partner submits the work with both of your names in the comments sections of submission. Your video must be 4- 5 minutes long. Video longer than 5 minutes and less than 4 minutes will receive - 5 points

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

Database Basics Computer EngineeringInformation Warehouse Basics From Science

Authors: Odiljon Jakbarov ,Anvarkhan Majidov

1st Edition

620675183X, 978-6206751830

More Books

Students explore these related Databases questions

Question

What is meant by staff authority ?

Answered: 3 weeks ago

Question

Discuss the various types of policies ?

Answered: 3 weeks ago