Autor Beitrag
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: So 01.10.06 18:36 
Ich habs auch noch nich gefunden.
Entweder ist das Massenblindheit, oder es fehlt wirklich.

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
mister_x
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 85

Win 98, WIN 2000, WIN XP PRO
Delphi 2006
BeitragVerfasst: Mo 02.10.06 13:52 
user profile iconalias_host hat folgendes geschrieben:
hab jemand schon aufgabe 1 fertig und wenn ja, wie lange braucht euer programm um die beispiele 2 und 3 dafür zu lösen?

Mfg alias_host



ich habs scho fertig
für die beispiele 2 und 3 braucht mein prog wenige sekunden
für des erste aber en bissle länger
un des 4. kann ja nich funktionieren
oxigin
Hält's aus hier
Beiträge: 10



BeitragVerfasst: Mi 04.10.06 17:42 
und in wieviel monaten könntest du alle sachen kaufen?
mister_x
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 85

Win 98, WIN 2000, WIN XP PRO
Delphi 2006
BeitragVerfasst: Do 05.10.06 11:34 
beim ersten beispiel 131071 Monate
beim zweiten beispiel 199 Monate
beim dritten beispiel 1026 Monate
un beim vierte wenn ma des budge auf 1006 setzt 515256 Monate
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Do 05.10.06 12:24 
Sicher dass das stimmt? Das ist ein wenig utopisch ^^.

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
mister_x
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 85

Win 98, WIN 2000, WIN XP PRO
Delphi 2006
BeitragVerfasst: Do 05.10.06 13:19 
ich denk schon dass des so stimmt
hast sonst jemand noch en anderes ergebniss???
oxigin
Hält's aus hier
Beiträge: 10



BeitragVerfasst: Do 05.10.06 13:22 
also bei 1 kommt bei mir: 1024 monaten
bei bsp 2: 246
bei bsp 3: 1277
mister_x
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 85

Win 98, WIN 2000, WIN XP PRO
Delphi 2006
BeitragVerfasst: Do 05.10.06 13:23 
hat schon jemand ne andere aufgabe gelöst??
die aufgabe mit der paderbox versteh ich nich wer kann helfen???
Xion
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
EE-Maler
Beiträge: 1952
Erhaltene Danke: 128

Windows XP
Delphi (2005, SmartInspect), SQL, Lua, Java (Eclipse), C++ (Visual Studio 2010, Qt Creator), Python (Blender), Prolog (SWIProlog), Haskell (ghci)
BeitragVerfasst: Do 05.10.06 14:18 
das mit paderbox hab ich gelöst, zumindest so wie ich verstanden hab... Entweder ist das ganze doof, oder ich checks nicht ;)
Einloggen, um Attachments anzusehen!
_________________
a broken heart is like a broken window - it'll never heal
In einem gut regierten Land ist Armut eine Schande, in einem schlecht regierten Reichtum. (Konfuzius)
mister_x
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 85

Win 98, WIN 2000, WIN XP PRO
Delphi 2006
BeitragVerfasst: Do 05.10.06 14:29 
erklär ma bitte was du da gemacht hast
mister_x
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 85

Win 98, WIN 2000, WIN XP PRO
Delphi 2006
BeitragVerfasst: Do 05.10.06 14:45 
user profile iconoxigin hat folgendes geschrieben:
also bei 1 kommt bei mir: 1024 monaten
bei bsp 2: 246
bei bsp 3: 1277


beim ersten beispiel ist des viel zu wenig
in meinem programm hab ich kein fehler
kannst ja mein prog ma ausprobieren un dir dann den plan anschaun
beim ersten beispiel dauerts aber en bissl länger


Zuletzt bearbeitet von mister_x am Do 05.10.06 15:07, insgesamt 1-mal bearbeitet
DnC
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 98

XP
Delphi 3,6,7,2005 PE
BeitragVerfasst: Do 05.10.06 15:01 
ich habs mir jetzt nicht angeschaut...
aber mein Programm bringt die selben Ergebnisse.
(die 4. hab ich nicht bis zu Ende laufen lassen, dauert mir zu lange)
mister_x
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 85

Win 98, WIN 2000, WIN XP PRO
Delphi 2006
BeitragVerfasst: Do 05.10.06 15:02 
kann ich verstehn bei mir hats 1 1/2 stunden gebraucht für die 10000 produkte=)
DnC
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 98

XP
Delphi 3,6,7,2005 PE
BeitragVerfasst: Do 05.10.06 16:47 
ich versuchs dann ma...
mit meiner Optimierung bin ich vllt morgen fertig :lol:
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5284
Erhaltene Danke: 27

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Do 05.10.06 16:59 
wer versteht die html aufgabe und kann sie mir erklären ?
DnC
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 98

XP
Delphi 3,6,7,2005 PE
BeitragVerfasst: Do 05.10.06 17:30 
ich glaub, es geht darum, dass man ein HTML-Dokument durchsucht und (ausgewählte) Eigenschaften vertauscht und damit neue Dokumente produziert...

Wie genau hab ich keine Ahnung... Macht n Kumpel von mit^^
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Do 05.10.06 17:39 
user profile iconDnC hat folgendes geschrieben:
ich glaub, es geht darum, dass man ein HTML-Dokument durchsucht und (ausgewählte) Eigenschaften vertauscht und damit neue Dokumente produziert...

Wie genau hab ich keine Ahnung... Macht n Kumpel von mit^^

Das ist mir klar, aber mit "sieh wie dein Mobile sich bewegt" und Bilderserien produzieren komm ich nicht klar, also das verstehe ich nicht, wie das aussehen soll am Ende.

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
oxigin
Hält's aus hier
Beiträge: 10



BeitragVerfasst: Do 05.10.06 17:44 
user profile iconmister_x hat folgendes geschrieben:
beim ersten beispiel 131071 Monate
beim zweiten beispiel 199 Monate
beim dritten beispiel 1026 Monate
un beim vierte wenn ma des budge auf 1006 setzt 515256 Monate


ja, stimmt hast natürlich recht...
hab nur falsche ergebnisse gepostet :)

@html aufgabe:
das heisst soviel wie; erstelle zwei html dateien: eine datei stellt die ausgangs html datei und die zweite datei stellt eine verändert datei dar.
m4rS
Hält's aus hier
Beiträge: 1



BeitragVerfasst: Do 05.10.06 20:48 
Hallo,

ich habe mich gerade extra wegen diesem einen Beitrag hier in diesem Forum angemeldet und das auch nur wegen der Paderbox, man muss sich das mal vorstellen. Was hat sich der Typ dabei gedacht, wo er die Aufgabe formuliert hat. Erst einmal ist sie total schlecht gestellt, aber nicht genug, meiner Meinung nach macht die Paderbox gar keinen Sinn, wenn sie fertig programmiert ist!!! Ich habe jetzt mal 90 Minuten dran geschrieben, und mein Paderboxcode ist fertig und er funktioniert 100% so wie in der Aufgabe gewollt, aber es macht einfach keinen Sinn....

Dass jedem Zustand 2 Lämpchen zugeordnet sind ist noch ok. Aber jetzt wird jedem Zustand im Prinzip ein Zustand zugeordnet, der danach kommt, je nachdem welche Taste ich drücke. Es ist ja in der Aufgabe gewollt, dass der neue Zustand abhängig vom alten Zustand und von der Taste ist. Das heißt am Anfang lass ich zufällig zum Beispiel zuordnen, dass wenn ich im Zustand 1 bin und die Taste 0 gedrückt wird, dass dann immer! der Zustand 2 kommt. Da diese Zuordnung zufällig vorgenommen wird, kann es nun halt leider passieren, dass dem Zustand 1 (oder 2 oder 3) zugeordnet wird, dass bei jeder Taste, die man drückt, wieder der Zustand 1 kommt, weil es ist ja auch erlaubt, dass neuer Zustand=alter Zustand. Leider leider ist es dann halt so, dass man aus dem Zustand 1 nicht mehr herauskommt. Es gibt auch noch viele andere Kombinationen, wo man mit der Aufgabenstellung nicht mehr aus einem Zustand herauskommt! Eine zufällige Verteilung macht einfach keinen Sinn.

Eine Möglichkeit wäre, wenn sie in die Aufgabe geschrieben hätten, dass die Tasten nicht auf den selben Zustand verlinken dürfen. Also dass wenn man im Zustand 1 ist, dass man nicht mit beiden Tasten wieder in Zustand 1 kommen darf. Aber das haben sie definitiv nicht in der Aufgabe gestellt. Also dann bleibt mir nur noch zu sagen:

"VIEL SPASS MIT DER PADERBOX!"
Xion
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
EE-Maler
Beiträge: 1952
Erhaltene Danke: 128

Windows XP
Delphi (2005, SmartInspect), SQL, Lua, Java (Eclipse), C++ (Visual Studio 2010, Qt Creator), Python (Blender), Prolog (SWIProlog), Haskell (ghci)
BeitragVerfasst: Fr 06.10.06 13:37 
user profile iconmister_x hat folgendes geschrieben:
erklär ma bitte was du da gemacht hast


also, der Code:

ausblenden volle Höhe Paderbox-Code
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, ExtCtrls;

type
  TForm1 = class(TForm)
    Shape1: TShape;
    Shape2: TShape;
    Shape3: TShape;
    Button1: TButton;
    Button2: TButton;
    procedure Button2Click(Sender: TObject);
    procedure FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
    procedure Button1Click(Sender: TObject);
  private
    { Private-Deklarationen }
  public
    procedure PaintLamps;
    procedure SwitchZustand(NewZustand: byte);
  end;

var
  Form1: TForm1;
  LampeOn: array [1..3of Boolean;
  Null: byte;
  Eins: byte;
  MomZustand: byte;
  Zustand: array [1..3of array [1..2of byte;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
var A,B: integer;
begin
 randomize;
 Null:=Random(3)+1;
 Eins:=Random(3)+1;
 MomZustand:=Random(3)+1;

 for A:= 1 to 3 do
  if random(2)=0 then
   LampeOn[A]:=True
  else
   LampeOn[A]:=False;

 for A:= 1 to 3 do
  for B:= 1 to 2 do
   Zustand[A][B]:=random(3)+1;

  PaintLamps
end;

procedure TForm1.SwitchZustand(NewZustand: byte);
var B: integer;
begin
 MomZustand:=NewZustand;

 while MomZustand>3 do
  MomZustand:=MomZustand-3;
                    
 while MomZustand<1 do
  MomZustand:=MomZustand+3;

 for B:= 1 to 2 do
  LampeOn[Zustand[MomZustand][B]]:=not LampeOn[Zustand[MomZustand][B]];

 PaintLamps
end;

procedure TForm1.PaintLamps;
var A: integer;
begin

 for A:= 1 to 3 do
  if LampeOn[A]=true then
   TShape(FindComponent('Shape'+inttostr(A))).Brush.Color:=clBlack
  else
   TShape(FindComponent('Shape'+inttostr(A))).Brush.Color:=clWhite;

end;

procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin

 if Key=48 then   //0
  SwitchZustand(MomZustand+Null);

 if Key=49 then   //1
  SwitchZustand(MomZustand-Eins);

end;

procedure TForm1.Button2Click(Sender: TObject);
begin
 ShowMessage('1 = '+inttostr(Eins)+', 0 = '+inttostr(Null));
end;

end.


mal schnell dahingecodet. So, das Programm macht eigentlich nicht mehr, als dass es jedem Zustand 2 Lampen zuweist, die, wenn man in den Zustand kommt, die 2 umschaltet. Dann hab ich für den Button 0 und 1 je eine Zufallszahl (die es meiner Meinung nach letztendlich zu erraten gilt?). Per Knopfdruck wird dann in die eine bzw. die andre Richtung um diese Zahl der Zustand weitergestaltet und die zugehörigen Lampen umgeschaltet.

_________________
a broken heart is like a broken window - it'll never heal
In einem gut regierten Land ist Armut eine Schande, in einem schlecht regierten Reichtum. (Konfuzius)