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

  Create a client/property database using microsoft access.

The file New Database window opens, then type the word Client as the name for this file where the cursor is blinking, then click the create bottom.

  Identify any pattern to these unusual orders

Get all employees that satisfy the following conditions

  Design an expanded entity relationship model diagram

You are to design an Expanded Entity Relationship Model Diagram. An example of the Expanded Entity Relationship Model Diagram is seen in Figure 3.27 on page 89.

  Design and implement the best deal business database

Design and implement the Best Deal business database that you have modelled in the assignment-1 and a series of SQL queries to reflect the business logic of the Best Deal.

  Submit a consolidated word document with the diagram

Create and submit a screenshot of your database diagram based on the tables, and generate the data definition language (DDL) for each table.

  Create a gis database of information about vietnam

You are asked to create a GIS database of information about Vietnam at scale of 1:100,000. Database will include the following: Which of these features are best represented by raster model? Explain why?

  A description on the features of enhanced erd

A description on your approach The features of your enhanced ERD A discussion about handling the M:M relationship between customer and products The approach used to ensure 3NF Required SQL statements for the database Star schema

  Justification hello good night what is the justification

hello good night what is the justification for utalizing database management system approach i3939m not

  Start the application to view the records

Start the application to view the records contained in the dataset, and then stop the application.

  The relationships between the tables

At this point you have constructed your data model and it meets the definition of 3rd Normal form.

  Find maximum salary of employees from database table

Find the maximum salary of all employees who are not managers. Give all the managers in the database a 10 percent salary raise. Give all the other employees a 5 percent salary raise.

  Describe what entity represents in an er mode

Describe what entity represents in an ER mode and provide examples of entities with a physical or conceptual existence. Describe how strong and weak entities differ and provide an example of each.

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