Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask DBMS Expert


Home >> DBMS

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).

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M91784705
  • Price:- $70

Priced at Now at $70, Verified Solution

Have any Question?


Related Questions in DBMS

Backgrounda new training organization called abc

Background A new training organization called ABC TechTraining is opening soon and they have approached you to help design their new database. They have just completed the refurbishment of the premises and are now lookin ...

Data mining assignment -in this assignment you are asked to

Data Mining Assignment - In this assignment you are asked to explore the use of neural networks for classification and numeric prediction. You are also asked to carry out a data mining investigation on a real-world data ...

Quesiton 1 what is data-manipulation language dml there are

Quesiton: 1. What is Data-Manipulation Language (DML)? There are four types of access in DML, explain each one. 2. Assume we have a Library Database consists of the following relations: author(author_id, first_name, last ...

Assignment -scenario setup a mock phase 3 clinical trial

Assignment - Scenario: Setup a Mock Phase 3 Clinical Trial for evaluating the efficacy of a Blood Pressure/Weight Loss/ or Muscle Strength Enhancement supplement. Assume that the testing takes place at a physician's offi ...

Sql injection on a searchthe way search performs its task

SQL injection on a search The way Search performs its task is by executing the following query (in a php script):          $var=stripslashes($_POST['search']);          $query = "SELECT username from lab1_login where use ...

Sqlquery 1 how many products have standard price less than

SQL Query 1. How many products have standard price less than 1000? Query 2: Display all attributes for products made of "Cherry" from Product table w/o referring to column names. Query 3: Display all product names having ...

Need an expert in the fields of system design to handle

Need an expert in the fields of system design to handle this project This is a system analysis and design project, not a research project. Refer to the list of deliverables in the instructions in the assignment to make s ...

Question team project submission - submit to the unit 4

Question: Team Project Submission - Submit to the Unit 4 Group Project Area This version of the capstone project assignment is FOR GRADING this week. Submit to the group area the document containing completed Sections On ...

Relational database design a given the following business

Relational Database Design A) Given the following business rules, identify entity types, attributes (at least two attributes for each entity, including the primary key) and relationships, and then draw an Entity-Relation ...

Instructionsfor decades relational databases remained

Instructions For decades, relational databases remained essentially unchanged; data was segmented into specific chunks for columns, slots, and repositories, also called structured data. However, in this Internet of Thing ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As