Archive

Posts Tagged ‘temperature’

Tab Control With A Set Of Controls.

September 24th, 2011 Comments off

I started with a form .. and on it a number of controls, sliders… text boxes, etc.
These controls are set up when the form is constructed from an existing object.
Before the form is closed – the values of the controls are read back from the calling application and the object is updated – Pretty standard stuff.
Let’s call all these values the ‘settings’ of the object
I now need to have this form show 4 different sets of settings – one each on a tab page.

The controls themselves are not all displayed – panels are used to show some controls and hide others – all depending on one of the settings.

For example if the form was to show and set temperature , then only the controls used for this are displayed…
If the form was to show humidity- then a different set of controls would be shown.

Each TAB PAGE must behave in EXACTLY the same way .. with controls and panels – IDENTICAL, but each page would represent a different object, and the fields must be accessed in a structured way .. like..
Tabpage1.Temperature = xxx
Tabpage2.Temperature = yyy

Ideally .. an indexer would be usedlike

Tabpage[1].Temperature = xxx
Tabpage[2].Temperature = yyy
Tabepage[1].PanelA.visible = false;
Tabpage[3].Slider1.Value = zzz

and for setting up each Tab page:- e.g.

If (Tabpage[1].Type == TemperatureType)
{
Tabpage[1].Temperaturepanel.Visible = true;

}

Desining Of Ivr System For Temperature

June 30th, 2011 Comments off

I want to desing this project. but i have no information for how to construct ivr mens intaractive voice responce system.

Iphone Weather App

May 19th, 2009 Comments off

Hi,

I need a nice looking, simple weather application designed for the Iphone.

- Main screen: User enters a place and a time
- Next, two graphs are shown.

Probability vs. Temperature
Probability vs. Precipitation (Amount of Rain) vs. Probability

- The data for these two graphs is available from a PHP script we already have that creates XML. So, you’ll just need to pass the data the user enters into our URL, receive the XML, and then display it as graphs.

- Graphs should use colors (brigher colors for hotter temperature, cooler colors for lower temperature; dark blue colors for more precipitation and lighter colors for less precipitation)

- Should be option to show temperatures in C or F

- Should be option to show rain fall in cm or in

- Example: Main screen, user enters “Paris” and “Tomorrow”. Two graphs are shown.

Temperature graph might look like:
5%,15C
10%,16C
20%,17C
25%,18C
20%,19C
15%,20C
5%,21C,
etc.

Rainfall graph will look like:
50%,0in
25%,1in
20%,2in
5%,3in

- Navigation should be with a Tab bar at the bottom (to switch between main screen and graph modes)

Should be pretty straightforward but please ask me if you have any questions.

Also, please state whether you are also able to provide a BLACKBERRY version of the app (or only Iphone).

Please bid only for the Iphone version.

But we’d love to work with someone who we can also use again in the future to make a Blackberry version.

Thanks!

Aircondition C Code

April 19th, 2009 Comments off

The Problem
A client is interested in exactly what percentage of the time her air conditioning is running. One way to measure this is to keep a temperature logging device right by an AC vent. The device measures the temperature every 30 seconds. If the temperature drops at least .5 degrees Fahrenheit between readings, it’s a good bet that the AC unit just turned on. Likewise, if the temperature rises at least .5 degrees Fahrenheit between readings it’s likely that the AC unit just turned off. (For example, if the reading at 1:30:00pm was 74.7 degrees F and the reading at 1:30:30pm was 74.1 degrees F, then we would assume for the 30 seconds starting at 1:30:00pm and ending at 1:30:30pm, the AC was on. If there is no big rise or fall in a 30 second interval, we assume the state of the AC was whatever it was in the previous 30 second interval. We will assume that the AC is always off at midnight.

You will be given the temperature readings from one logging device for a whole day (24 hours). Using this information, you must calculate the percentage of time the air was on for the day and produce a bar graph with houry data.

Input File Format (temp.txt)
This file will have exactly 2881 doubles, one per line, indicating readings of temperatures (in Fahrenheit) starting at midnight and ending at midnight the next day. The readings are taken every 30 seconds. The start of a file might look like this:

78.6
78.6
78.5
78.5

The Output
First, output a line with the following format:

The AC was running X percent of the time.

where X is a percentage rounded to 2 decimal places, corresponding to how often the AC was running throughout the whole day.

After this line of output, skip a blank line and output a bar graph with a similar format to the one in the posted file.
Each bar corresponds to the percent of time the AC was running during that hour. Since the bars are shown with 5% increments, only display a star if the percentage for that hour equals or exceeds the marked percentage. Here’s the basic idea in how to create it.

First, store the data in an array of size 24, where each entry indicates the percentage of time the AC was running in that hour. (For example, the entry in index 0 stands for the amount of time the AC was running from midnight to 1 am.)

Now, print each row in order, first the row for 100%, then 95%, then 90%, etc. all the way down to 5%. While you are printing a row, for each column, you must ask yourself the question,

Bear