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

  Identify and explain the rationale for the data model.

Select a data model your team would use to build a new EHR for your facility

  Exchange commission edgar database

Select a publicly traded corporation for which you would like to work or are currently working. Research the corporation on its own Website, the public filings on the Securities and Exchange Commission EDGAR database and any other sources you can ..

  1 not having an appropriate index can cause a full table

1. not having an appropriate index can cause a full table scan while performing the select statement by using a

  Draw a context diagram for new system for baigs auto rental

Draw a context diagram for the new system for Baig's Auto Rental business. Create fully normalized 3NF table designs for the system.

  Find candidate keys for the relation

Find candidate keys for the relation

  Create a new microsoft access database named drycleaning

Create a new Microsoft Access database named DryCleaning. Add a table named Customers. In Microsoft Word, type the SQL script that you would use to create the table. Include the following fields: CustomerNumber (AutoNumber, Primary Key, required)

  Explain new objects based on extending other objects

One of the new classes must be based on a reference extending an existing class from package task02 directly(similar to how Customer extends Person in the sample code).Do not repeat that package task02 class in the task03 package.

  Find out the benefits of data mining to the businesses when

the development of complex algorithms that can mine mounds of data that have been collected from people and digital

  Explain role of a database administrator

Explain the role of a database administrator,the tasks performed by this role and why this role is important in Database Management.

  Relational database modelling techniques and e-r diagram

Practical experience in using Entity-Relationship and Relational Database modelling techniques - design using an E-R diagram an entity-relationship model of the problem, convert the model into a relational model, and assess the normal form of each ..

  Explain what is normalization

In what business database environments is denormalization appropriate and why. What would denormalization specifically involve. What is normalization

  Review the advantages of database management systems

Review the advantages of database management systems? Which two advantages do you think are the most important? Why?

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