Counting program that will display on a Website.? The starting value will be read from a static database, a small calculation will be performed on this value and loaded into the app, and then this number will begin counting at a rate determined via the same database.?
This counting will then be displayed on the appropriate page of the Website.? Which starting value to be read from the database will be determined via end user clicks on the Website.
Second app to allow the same end user to click and see how long it takes to count from zero to the starting value in the database.
## Deliverables
Database will be created with the following information (additional fields can be added or changed? if needed)
Reference #, Name, Beginning #, Rate of count per hour, Date/Time created (Unix Timestamp)
Example data:
00001, Sommer, 6,000,000, 57,? 1217771820
00002, Endo, 5,000,000, 44,? 1217771820
00003, Landsteiner, 1,038,000,000, 2854,? 1217685480
App 1:
This database, along with the current Timestamp,? will contain all of the information the app will need to create itself.? The end user will browse the Website and determine which "Name" they wish to see.? The app will then be passed the necessary parameter (Reference #) and the app will query the database with this "Reference #" and display a counter box.? A box with a number should be shown.? It must be able to hold up to 10 digits (nine billion)? at a 12 font.? It will only show whatever the number is (example: 1,000 not 0,000,001,000).? The count will start and increase at "Rate of count per hour" as long as they are viewing the page.? The starting number for the box is determined by a calculation which is found by taking the "Beginning #" and? adding to it? a value formed by? "Rate of count per hour" and the number of hours passed since the database entry was originally created.? The number of hours passed can be found by comparing the "Date/Time" database field to the current "Date/Time".? Unix Timestamp as been suggested, but the programmer can? use whatever? "Date/Time"? format desired.
App 2:
Second app will be an interactive app to portray just how big of a number the first app is displaying.? The second app will display the same starting number as above (the calculated number found via comparing "Date/Time").? Then three buttons below this number labeled "FAST", "FASTER", "FASTEST".? Each time a person clicks on one of the three buttons, then the count starts at zero and begins counting up to the starting number above.? A box below the three buttons will provide feedback, for example:? "Hours to complete at this rate ------".? Each button click will reset this feedback.? NOTE:? The point of this second app is to show that it takes a long time to count to a million or 100 million or whatever number.
Additional notes:
In most instances, both apps will be displayed on the same web page, but these need to be two independent apps in case they are not used together.?
The programmer can determine the most effective way for the parameters to be passed to the app, as well as, how the app determines current Date/Time.
The counter box does not necessarily need to be a box.? It can just be a normal set of numbers without any border.? The? Webpage designer can work with the output as long as it can be displayed with other html or php output.
The database name can be determined by the programmer and will be manually created in advance.? These apps do NOT need to create any database fields or edit the database in any manner.? The database will be manually added too in the future, and these apps should not limit the database's capacity.