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

  Which is not a factor to consider in software evaluation

Which is not a factor to consider in software evaluation?

  Create an xml file with markup tags

Create an XML file with markup tags and some sample data to represent a list of invoices. Include the XML tags for two invoices in the list. Also, assume the invoices are created from a database whose tables are shown in the following database rela..

  Design a database to track the company products

Design a database to track the company's products and orders. Choose either an open-source product or a proprietary product to use, and explain your reasons for choosing it. Identify some of the characteristics of database configuration used in yo..

  Part 1 - reportwrite a 2000-word report that describes a

part 1 - reportwrite a 2000-word report that describes a suitable methodology from the literature for the purpose of

  Create a mysql database

Create a Database and modify your script to reference your Database. Download the tutorial Creating a Database in MySQL Omnymbus Environment from the folder in Doc-Sharing titled Omnymbus Tutorial Files. Follow the steps to create a database in MyS..

  Application service provider to configure a vpd

Application service provider to configure a VPD so that the company can arm support multiple customers with a single instance of an application.

  List different entities-objects-logical processes-data flows

List the different entities or objects, logical processes, data flows, and data stores that are involved, starting from the time you submitted your time sheet.

  Create a query based on the agency table

Create a query based on the Agency table that includes the Agency, FirstName, LastName, and City fields, in that order. Save the query as AgenciesByCity, and then run it

  How would your answers to the two questions change

How would your answers to the two questions change, if at all, if your system did not support indexes with multiple-attribute search keys?

  Analyze the data in the database and in application exercise

To complete this assignment, you will need to do data calculations. Remember to follow good database practice here by not saving your calculations as part of the data table itself (they should appear only in your queries).

  Schema design part i the following describes what is

schema design part i the following describes what is expected in the design part of the assignment.1 dfd and er diagram

  How security policies can be utilized to mitigate each risk

Identify which U.S. compliance laws govern for each risk identified and summarize the implications. Evaluate how security policies, procedures, and practices can be utilized to mitigate each risk identified. Recommend appropriate security controls th..

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