How many tables and which ones were ?ipped exactly twice

Assignment Help Database Management System
Reference no: EM131060312

Table Flipping

Directions: There are 2000 tables set up for the College job fair. All tables are upright. 2000 students arrive to the fair, each one with their ID number, looking to cause chaos. The student with ID 1 ?ips all 2000 tables. The students with ID 2 then rights all tables whose numbers are multiples of 2. The student with ID number 3 changes the status of all tables whose numbers are multiples of 3 (e.g. table number 3, which is ?ipped gets righted, table number 6, which is upright, gets ?ipped.) The student with ID number 4 changes the status of all tables whose numbers are multiples of 4, and so on for all 2000 students.

Use arrays, no crashes. When you run the simulation, it should simulate all 2000 students turn flipping tables. You can design your own user interface for this homework any way you'd like.

Aside from the user running the simulation, your user interface should be able to run queries to assist in answering the following questions (or any similar question):

Your task is to find:

1. Is table 1337 ?ipped or upright?

2. Which tables will be left upright at the end?

i. If you had to list off the ?rst 5-10 table that were left upright, without your program for help, could you? Is there a rule?

3. Which table was ?ipped the most times?

i. How did you store the data for this homework? Think about how you store the information helps you to answer the question.

4. How many tables, and which ones, were ?ipped exactly twice?

5. How many of the even numbered tables are upright? How many odd numbered tables?

Some of the tables are ?magic tables. Each time table 1999 and 3501 are touched, add 1000 tables. The old tables keep their states and the new tables start off upright. Do not reset the current operating student number. Aka when student #9 touches table 702, he should continue with table 711 after the new table are made (then #10 goes after).

Reference no: EM131060312

Questions Cloud

How far along the path to modernity and peaceful : Is the government honest or corrupt, is the public sector of the nation supportive of market institutions? How far along the path to modernity and peaceful and free civilization are they?
How much is your monthly payment : How much is your monthly payment if you finance all of the amount over 60 months if you live in NJ at a sales tax rate of 7% - How much is your monthly payment if you finance over 36 months?
Humans often face incredible odds : Colson Whitehead's Zone One differs from most survival narratives in that the story takes a much more realistic (and often brutal) look at contemporary catastrophe and our bleak odds at survival:
What emotional or value appeals will you make : What is your major premise, your minor premise, and your conclusion? (even if you do not present this in your speech, it is important to know your own logic that leads you to your position)
How many tables and which ones were ?ipped exactly twice : How did you store the data for this homework? Think about how you store the information helps you to answer the question. How many tables, and which ones, were ?ipped exactly twice?
Importance of a performance appraisal within a business : Please tutors use your own works no plagiarism should be detected on this questions because the school system is very strict. Kindly do not post a plagiarized answer please. 1. What are the importance of a performance appraisal within a business. 2..
Explain which story you chose and briefly summarize the plot : Identify key choices the author made in writing the story. For example, consider where the story is set, how the action is ordered, or how the characters are introduced and developed.
Management action plan : Please include documentation of all SEVEN steps in your submission of your MAP assingment.
Share behaviors you have exhibited in the workplace : Share two to three behaviors you have exhibited in the workplace strictly due to your perception

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd