Rated 4 out of 5 stars

-OPEN-head-CLOSE-
-OPEN-!--

19% Mehrwertsteuer auf Strom, Gas, Elektrogeräte, Bürostühle etc.

Zum Überprüfen des errechneten Betrags:
Der LCD-Fernseher kostet: 499,8 EUR
Das iPhone kostet: 654,5 EUR
---CLOSE-
-OPEN-meta http-equiv="Content-Type" content="text/html; charset=utf-8" /-CLOSE-
-OPEN-title-CLOSE-Sonderangebote-OPEN-/title-CLOSE-
-OPEN-script type="text/javascript"-CLOSE-
function berechne_Bruttopreis(nettopreis){
var ergebnis = nettopreis + nettopreis * 0.19;
return ergebnis;
}

function ausgabe_Bruttopreis(artikel,nettopreis){
window.alert("Der gewünschte Artikel (" + artikel + ") kostet brutto: "+
berechne_Bruttopreis(nettopreis) + " €");
}

function info_versand(){
var info = "Versand: \n\nDHL Paket - deutschlandweit: 6,99 €\n\n"+
"- Zustellung i. d. R. am nächsten Werktag\n\n"+
"- inklusive Sendungsverfolgung\n\n";
window.alert(info);
}
-OPEN-/script-CLOSE-

-OPEN-style type="text/css"-CLOSE-
-OPEN-!--
body{
font-family:Verdana, Arial, Helvetica, sans-serif;
}

p img{
vertical-align:middle;
margin-right:20px;
float:left;
width:250px;
}

a{
color: #669933;
text-decoration:none;
font-weight:bolder;
}

.floatstopp{
float:none;
}
div{
display:table-row;
margin-left:30px;
}
---CLOSE-
-OPEN-/style-CLOSE-
-OPEN-/head-CLOSE-

-OPEN-body-CLOSE-
-OPEN-h1-CLOSE-Unsere Top-Sonderangebote-OPEN-/h1-CLOSE-
-OPEN-div-CLOSE-
-OPEN-p-CLOSE--OPEN-img src="../Bilder/LCD-Fernseher.jpg" alt="LCD-Fernseher" /-CLOSE-LCD-Fernseher 37LG2100 37 Zoll (94 cm) 16/9,-OPEN-br /-CLOSE-
"HD ready" -, HDMI x2, USB 2.0,-OPEN-br /-CLOSE-
Nettopreis: 420,00 €-OPEN-br /-CLOSE-
-OPEN-a href="#" onclick="ausgabe_Bruttopreis('LCD-Ferseher',420);"-CLOSE-Bruttopreis inkl. 19% Mwst.-OPEN-/a-CLOSE--OPEN-br /-CLOSE-
-OPEN-a href="#" onclick="info_versand();"-CLOSE-Infos zum Versand-OPEN-/a-CLOSE--OPEN-/p-CLOSE-
-OPEN-/div-CLOSE-
-OPEN-p class="floatstopp"-CLOSE- -OPEN-/p-CLOSE-
-OPEN-div-CLOSE-
-OPEN-p-CLOSE--OPEN-img src="../Bilder/iphone-3g.jpg" alt="iphone"/-CLOSE-iPhone 3G schwarz 16 GB ohne Vertrag-OPEN-br /-CLOSE-
Nettopreis: 550,00 €-OPEN-br /-CLOSE-
-OPEN-a href="#" onclick="ausgabe_Bruttopreis('iPhone',550);" -CLOSE-Bruttopreis inkl. 19% Mwst.-OPEN-/a-CLOSE--OPEN-br /-CLOSE-
-OPEN-a href="#" onclick="info_versand();"-CLOSE-Infos zum Versand-OPEN-/a-CLOSE--OPEN-/p-CLOSE-
-OPEN-/div-CLOSE-

-OPEN-/body-CLOSE-
-OPEN-/html-CLOSE-

Rated 4 out of 5 stars

-OPEN-title-CLOSE-Übungsaufgabe Arrays - Der Wetterdienst-OPEN-/title-CLOSE-
-OPEN-script type="text/javascript"-CLOSE-
/* -OPEN-![CDATA[ */
var tagestempJuniKoeln = new Array(30);
tagestempJuniKoeln[0] = 20;
tagestempJuniKoeln[1] = 20;
tagestempJuniKoeln[2] = 20;
tagestempJuniKoeln[3] = 20;
tagestempJuniKoeln[4] = 21;
tagestempJuniKoeln[5] = 21;
tagestempJuniKoeln[6] = 21;
tagestempJuniKoeln[7] = 21;
tagestempJuniKoeln[8] = 21;
tagestempJuniKoeln[9] = 21;
tagestempJuniKoeln[10] = 21;
tagestempJuniKoeln[11] = 21;
tagestempJuniKoeln[12] = 21;
tagestempJuniKoeln[13] = 21;
tagestempJuniKoeln[14] = 21;
tagestempJuniKoeln[15] = 22;
tagestempJuniKoeln[16] = 22;
tagestempJuniKoeln[17] = 22;
tagestempJuniKoeln[18] = 22;
tagestempJuniKoeln[19] = 22;
tagestempJuniKoeln[20] = 22;
tagestempJuniKoeln[21] = 22;
tagestempJuniKoeln[22] = 22;
tagestempJuniKoeln[23] = 22;
tagestempJuniKoeln[24] = 22;
tagestempJuniKoeln[25] = 22;
tagestempJuniKoeln[26] = 22;
tagestempJuniKoeln[27] = 23;
tagestempJuniKoeln[28] = 23;
tagestempJuniKoeln[29] = 24;

function tagesTemp(){
var tag = window.prompt("Für welchen Tag im Juni wünschen Sie eine Vorhersage der Höchsttemperatur in Köln?","1");
document.write("Am "+ tag + ". Juni soll es " + tagestempJuniKoeln[tag-1] + "°C werden.");
//durch den Beginn des Index mit 0 muss bei dem Zugriff auf das Array eine 1 abgezogen werden
}

function hoechsteTagesTemp(temp){
var maxTemp = temp[0];

for (var i = 1; i-OPEN- temp.length;i++){
if (maxTemp -OPEN- temp[i]){
maxTemp = temp[i];
}
}
return maxTemp;
}
//Aufgrund der globalen Variable tagestempJuniKoeln könnte die Parameterliste auch leer bleiben
//Besser ist es allerdings, die Werte explizit in der Parameterliste zu übergeben, damit
//ein Anwender der Funktion auch sehen kann, welche Daten die Funktion für ihre Arbeit braucht
function ausgabeTemperaturen(temp){
document.write("-OPEN-h1-CLOSE-Voraussichtliche Temperaturen im Juni-OPEN-"+"/h1-CLOSE-");
for (var i=0; i -OPEN- temp.length;i++){
document.write(i+1 + ". Juni 2010: "+ temp[i] + "°C -OPEN-br /-CLOSE-");
}
}

//Testen der geschriebenen Funktionen

ausgabeTemperaturen(tagestempJuniKoeln);
tagesTemp();
document.write("-OPEN-br /" +"-CLOSE-");
document.write("Die hoechste Tagestemperatur im Juni wird " + hoechsteTagesTemp(tagestempJuniKoeln) + "°C.");
/* ]]-CLOSE- */
-OPEN-/script-CLOSE-

-OPEN-/head-CLOSE-

-OPEN-body-CLOSE-
-OPEN-/body-CLOSE-
-OPEN-/html-CLOSE-

Rated 4 out of 5 stars

-OPEN-!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"-CLOSE-
-OPEN-html xmlns="http://www.w3.org/1999/xhtml"-CLOSE-
-OPEN-head-CLOSE-
-OPEN-meta http-equiv="Content-Type" content="text/html; charset=utf-8" /-CLOSE-
-OPEN-title-CLOSE-Zwei Zahlen addieren-OPEN-/title-CLOSE-
-OPEN-script type="text/javascript"-CLOSE-
/* -OPEN-![CDATA[ */
//Dieser Vorspann ist nur für XHTML notwendig,
//da ansonsten keine spitzen Klammern vorkommen dürften

//Einlesen der 1. Zahl
var zahl1 = window.prompt("Bitte geben Sie die 1. Zahl ein:","0");
//Zum Rechnen muss zahl1 noch mit Hilfe der Funktion parseFloat in eine Zahl umgewandelt werden
zahl1 = parseFloat(zahl1);

//Einlesen der 2. Zahl
var zahl2 = window.prompt("Bitte geben Sie die 2. Zahl ein:","0");
zahl2 = parseFloat(zahl2);

//Berechnung des Ergebnisses
var ergebnis = zahl1 + zahl2;


document.write("-OPEN-h1-CLOSE-Addition von zwei Zahlen-OPEN-" + "/h1-CLOSE-");
document.write(zahl1 + " + " + zahl2 + " = " + ergebnis);
/* ]]-CLOSE- */
-OPEN-/script-CLOSE-

-OPEN-/head-CLOSE-

-OPEN-body-CLOSE-
-OPEN-/body-CLOSE-
-OPEN-/html-CLOSE-

Rated 5 out of 5 stars

-OPEN-!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"-CLOSE-
-OPEN-html xmlns="http://www.w3.org/1999/xhtml"-CLOSE-
-OPEN-head-CLOSE-
-OPEN-meta http-equiv="Content-Type" content="text/html; charset=utf-8" /-CLOSE-
-OPEN-title-CLOSE-Zwei Zahlen addieren-OPEN-/title-CLOSE-
-OPEN-script type="text/javascript"-CLOSE-
/* -OPEN-![CDATA[ */
//Dieser Vorspann ist nur für XHTML notwendig,
//da ansonsten keine spitzen Klammern vorkommen dürften

//Einlesen der 1. Zahl
var zahl1 = window.prompt("Bitte geben Sie die 1. Zahl ein:","0");
//Zum Rechnen muss zahl1 noch mit Hilfe der Funktion parseFloat in eine Zahl umgewandelt werden
zahl1 = parseFloat(zahl1);

//Einlesen der 2. Zahl
var zahl2 = window.prompt("Bitte geben Sie die 2. Zahl ein:","0");
zahl2 = parseFloat(zahl2);

//Berechnung des Ergebnisses
var ergebnis = zahl1 + zahl2;


document.write("-OPEN-h1-CLOSE-Addition von zwei Zahlen-OPEN-" + "/h1-CLOSE-");
document.write(zahl1 + " + " + zahl2 + " = " + ergebnis);
/* ]]-CLOSE- */
-OPEN-/script-CLOSE-

-OPEN-/head-CLOSE-

-OPEN-body-CLOSE-
-OPEN-/body-CLOSE-
-OPEN-/html-CLOSE-

Rated 5 out of 5 stars

-OPEN-!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"-CLOSE-
-OPEN-html xmlns="http://www.w3.org/1999/xhtml"-CLOSE-
-OPEN-head-CLOSE-
-OPEN-meta http-equiv="Content-Type" content="text/html; charset=utf-8" /-CLOSE-
-OPEN-title-CLOSE-Zwei Zahlen addieren-OPEN-/title-CLOSE-
-OPEN-script type="text/javascript"-CLOSE-
/* -OPEN-![CDATA[ */
//Dieser Vorspann ist nur für XHTML notwendig,
//da ansonsten keine spitzen Klammern vorkommen dürften

//Einlesen der 1. Zahl
var zahl1 = window.prompt("Bitte geben Sie die 1. Zahl ein:","0");
//Zum Rechnen muss zahl1 noch mit Hilfe der Funktion parseFloat in eine Zahl umgewandelt werden
zahl1 = parseFloat(zahl1);

//Einlesen der 2. Zahl
var zahl2 = window.prompt("Bitte geben Sie die 2. Zahl ein:","0");
zahl2 = parseFloat(zahl2);

//Berechnung des Ergebnisses
var ergebnis = zahl1 + zahl2;


document.write("-OPEN-h1-CLOSE-Addition von zwei Zahlen-OPEN-" + "/h1-CLOSE-");
document.write(zahl1 + " + " + zahl2 + " = " + ergebnis);
/* ]]-CLOSE- */
-OPEN-/script-CLOSE-

-OPEN-/head-CLOSE-

-OPEN-body-CLOSE-
-OPEN-/body-CLOSE-
-OPEN-/html-CLOSE-

Rated 4 out of 5 stars

import java.util.*;
public class array_sort{
public static void main(String[] args){
int num[] = {50,20,45,82,25,63};
int l = num.length;
int i,j,t;
System.out.print("Given number : ");
for (i = 0;i SMALLER l;i++ ){
System.out.print(" " + num[i]);
}
System.out.println("\n");
System.out.print("Accending order number : ");
Arrays.sort(num);
for(i = 0;i SMALLER l;i++){
System.out.print(" " + num[i]);
}}}

Rated 4 out of 5 stars

import java.util.*;
public class array_sort{
public static void main(String[] args){
int num[] = {50,20,45,82,25,63};
int l = num.length;
int i,j,t;
System.out.print("Given number : ");
for (i = 0;i SMALLER l;i++ ){
System.out.print(" " + num[i]);
}
System.out.println("\n");
System.out.print("Accending order number : ");
Arrays.sort(num);
for(i = 0;i SMALLER l;i++){
System.out.print(" " + num[i]);
}}}

Rated 4 out of 5 stars

import java.util.*;
public class example1{
public static void main(String[] s){
int suche,ein;
int[] zahlen;
zahlen = new int[100];
Random r = new Random();
for(int i = 0; i SMALLER 100; i++){
zahlen[i] = r.nextInt(9999);
System.out.print(zahlen[i]+"\t");
}
do{
System.out.println("Versuchen Sie eine Zahl aus der Tabelle herauszufinden");
ein = Tools.konsoleLeseInt();;
suche=0;
for(int a = 0; a SMALLER 100; a++){

if(ein==zahlen[a]){
System.out.println("Zahl " +ein+ " in Tabelle enthalten");
suche=1;
a=100;
break;
}
}
if(suche==0){
System.out.println("Zahl " +ein+ " in Tabelle nicht enthalten");
}

}while(ein!=-1);
}
}