Archive

Posts Tagged ‘8pm’

Timed Php Scripts

May 25th, 2011 Comments off

I need the following php files:

——–

index.php – redirects the browser to other php files depending on the time in EST. It should get the exact time from http://www.timeanddate.com/

This file should show:

if 7pm at http://www.timeanddate.com/, redirect to 7-8pm.php (see below)

if 8pm at http://www.timeanddate.com/, redirect to 8-9pm.php (see below)

The code can be duplicated depending on which file to redirect. (see below)

This index.php file may be renamed as go.php if needed in the future.

—————-

7-8pm.php – index.php should redirect to this file when it’s 7pm EST already. 7-8pm.php should show the content for one hour from 7pm to 8pm based on http://www.timeanddate.com/ then reloads and goes back to index.php

8-830pm.php – index.php should redirect to this file when it’s 8pm EST already. 8-830pm.php should show the content for 30 minutes from 8pm to 8:30pm based on http://www.timeanddate.com/ then reloads and goes back to index.php

There should be a placeholder on these php files to add html codes.

These files should be replicable so I can create other php files like 1-2pm.php, 1-130pm.php, 2-3pm.php, and so on THEN I can just add a code on index.php to redirect to them.

—————-

I can send you some php files to copy to show exact time based on EST/New York Time.

Categories: PHP, Programming, Script Tags: , , , , , ,

Program Using Queues In C

July 7th, 2009 Comments off

The Problem
A university lacks a credible grocery store on campus. After a year of getting lousy over-priced food in the convenience store in the Student Union, you and all of your friends are frustrated. One of your friends majoring in business comes up with the brilliant idea of opening a grocery store on campus. But, they need your help to decide if their idea is viable or not. Your job will be to run various simulations of customers in line.

The model for the store is as follows:

Normally, there will be three lines in operation or customers to buy their groceries. Each line will have a capacity of 8 customers. The first line (line A) will only be for customers with 10 or fewer items. The other two lines (line B and C) will be for all customers. When a customer is ready to check out, here is how they decide what line to go to:

If the customer has 10 or fewer items and the

Bear