Introduction To C++ Programming and Data Structures 4th Edition Liang Solutions Manual
Introduction To C++ Programming and Data Structures 4th Edition Liang Solutions Manual
com
https://testbankfan.com/product/introduction-to-c-
programming-and-data-structures-4th-edition-liang-solutions-
manual/
OR CLICK BUTTON
DOWLOAD NOW
https://testbankfan.com/product/introduction-to-programming-
with-c-3rd-edition-liang-test-bank/
testbankfan.com
https://testbankfan.com/product/c-programming-program-design-
including-data-structures-7th-edition-malik-solutions-manual/
testbankfan.com
https://testbankfan.com/product/c-programming-program-design-
including-data-structures-8th-edition-malik-solutions-manual/
testbankfan.com
https://testbankfan.com/product/market-based-management-6th-edition-
roger-best-test-bank/
testbankfan.com
Essentials of Human Anatomy and Physiology Global 11th
Edition Marieb Test Bank
https://testbankfan.com/product/essentials-of-human-anatomy-and-
physiology-global-11th-edition-marieb-test-bank/
testbankfan.com
https://testbankfan.com/product/fundamentals-of-investments-valuation-
and-management-7th-edition-jordan-test-bank/
testbankfan.com
https://testbankfan.com/product/principles-of-electronic-
communication-systems-4th-edition-frenzel-test-bank/
testbankfan.com
https://testbankfan.com/product/essentials-of-modern-business-
statistics-with-microsoft-excel-6th-edition-anderson-solutions-manual/
testbankfan.com
https://testbankfan.com/product/psychology-10th-edition-bernstein-
test-bank/
testbankfan.com
Wardlaws Perspectives in Nutrition 10th Edition Byrd-
Bredbenner Solutions Manual
https://testbankfan.com/product/wardlaws-perspectives-in-
nutrition-10th-edition-byrd-bredbenner-solutions-manual/
testbankfan.com
Student Name: __________________
Class and Section __________________
Total Points (20 pts) __________________
Due: August 29, 2016 before the class
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 S4 begins with locker L4 and changes
every fourth locker. Student S5 starts with L5 and changes every fifth locker, and so on,
until student S100 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.
(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.)
Analysis:
(Describe the problem including input and output in your own words.)
Design:
(Describe the major steps for solving the problem.)
1
Coding: (Copy and Paste Source Code here. Format your code using Courier 10pts)
1. Print this Word file and Submit to me before the class on the due day
2. Compile, Run, and Submit to LiveLab as Exercise7_15 (you must submit the program
regardless whether it complete or incomplete, correct or incorrect)
Solution:
#include <iostream>
using namespace std;
int main()
{
// Declare a constant value for the number of lockers
const int NUMBER_OF_LOCKER = 100;
return 0;
}
3
Random documents with unrelated
content Scribd suggests to you:
small donations ($1 to $5,000) are particularly important to
maintaining tax exempt status with the IRS.
Please check the Project Gutenberg web pages for current donation
methods and addresses. Donations are accepted in a number of
other ways including checks, online payments and credit card
donations. To donate, please visit: www.gutenberg.org/donate.
Most people start at our website which has the main PG search
facility: www.gutenberg.org.
testbankfan.com