Archive for July 28th, 2010

Question by Juliette: How would I create a Java program using arrays to examine temperature?
What would coding look like that took user input of 10 temperatures and told if each day was above average based off the average of the ten day input.

Thanks!

This is more or less to help me understand so that I can help my daughter with her work–I don’t understand much about Java programming.

Best answer:

Answer by Ya it’s me….
Here’s the easiest way:

Server-side code:

System.Text.StringBuilder javaScript = new System.Text.StringBuilder();
DataTable dataTable = this.CreateTestDataSource();

for (int i=0; i {
if (i == 0)
{
javaScript.Append("\n");
}
else
{
javaScript.Append(",\n");
}
}
this.ClientScript.RegisterClientScriptBlock(this.GetType(), "ArrayScript", javaScript.ToString());

protected virtual DataTable CreateTestDataSource()
{
DataTable dataTable = new DataTable("TestDataTable");
dataTable.Locale = System.Globalization.CultureInfo.InvariantCulture;

dataTable.Columns.Add(new DataColumn("ID", typeof(string)));
dataTable.Columns.Add(new DataColumn("Subject", typeof(string)));

{
DataRow dataRow = dataTable.NewRow();
dataRow[0] = "0";
dataRow[1] = "Test0";
dataTable.Rows.Add(dataRow);
}
{
DataRow dataRow = dataTable.NewRow();
dataRow[0] = "1";
dataRow[1] = "Test1";
dataTable.Rows.Add(dataRow);
}

return dataTable;
}

Client-side code to test with:

NC...

Know better? Leave your own answer in the comments!

Mount Bromo East Java Indonesia

Mount Bromo East Java Indonesia

There were 30 bikers from HTML Jakarta and 10 bikers from HTML Jogja who joined with HTML Honda Tiger Mailing List in order to participated “Tour d’Bromo”.

One of the touring purposes is the endurance from Jakarta to Bromo East Java (vice versa) but this event called as “Road to Unity for Tiger Community” with long distance at least 2,050 km.

Mount Bromo 3392 M and Mount Semeru 3676 M (photographer bro Dondee)

Saturday 8 April 2006 at 07.00 AM all bikers from Jakarta should stand-by in the meeting point in Jl. Sabang Jakarta Pusat where this place also known as the central meeting point of all HTML members on weekly basis.

This program said as a part of recreation touring but it was also included endurance test the engine oil of “Pertamina Enduro 4T”.

On the other hand, “Safety Riding Campaign” as the major program and prior should be practiced into HTML member. The campaigns as the commitment between HTML and Pertamina were supported safety riding on the national program.

“Pertamina Enduro 4T” also provides a free jacket, pin and T’shirt which to be used for all HTML Bikers and we wore a same uniform.

As usual before start all motorbike in physically and gear apparel bikers should be checked and screened in details following to the HTML Standard Operating Procedures (SOP). It was very details, professionally screening where all riders could not avoid this procedure in order to make sure everything warranted must safe, and participants are ready to go.

Following to HTML rules that each group should be divided into 3 groups maximum 8 riders. This small group a part of new rule from HSRT (HTML Safety Riding Team).

All bikers who start from Jakarta would met friends with HTML Jogja in Semarang City Central Java and thereafter the journey continued to Batu, Malang East Java.

Due to the a long distance journey, there were a good opportunity for all bikers who wants to develop his riding skill, especially to perform the individual skills, for instance how to become the Road Captain, VO, Sweeper, Technical Officer and Group Leader. Here everybody can enjoy with the replacement position after their finish at least for one or two sections trip.

It was 7 (seven) days spent the journey and it was really very tight schedule.

Day 1: Jakarta – Pamanukan – Cirebon – Tegal – Semarang.

Day 2: Semarang – Salatiga – Suruh – Gemolong – Sragen – Ngawi – Caruban – Nganjuk – Kertosono – Pare – Kandangan – Pujon – Batu – Malang.

Day 3: Malang – Lawang – Pasuruan – Probolinggo and Bromo.

Day 4: Bromo – Pasuruan – Madiun – Magetan – Karanganyar – Solo – Jogja.

Day 5: Jogja stay for one day.

Day 6: Jogja – Magelang – Weleri – Pemalang.

Day 7: Pemalang – Cirebon – Subang – Cikampek – Karawang – Bekasi – Jakarta.

Photos are exclusive taken by Bro Dondee and Fajar Is: Bro Dondee

Around Bromo

An early morning waiting Sunrise in Bromo

Sunrise coming in Bromo

Background the Mount Semeru (3676 M)

Photo with tourist from UK with background the Mount Semeru (3676 M)

Photo with the group of HTML Member who joined touring to Bromo

The HTML Bikers

In Top of Mount Bromo (3392 M)

In Top of Mount Bromo (3392 M)

Stairs to reach the Top of Mount Bromo (3392 M)

Group HTML Member

HTML Bikers Action in Bromo sand

My style with Honda Tiger 200cc in Bromo sand

Bro Dondee

Return To Jakarta

The End.

More Java Articles