Zum Inhalt springen

www.ahlu-sunnah.de

Mitglieder
  • Gesamte Inhalte

    22
  • Benutzer seit

  • Letzter Besuch

Alle Inhalte von www.ahlu-sunnah.de

  1. Morgen, du hast Recht . Ich habe es geschafft, den Konvertierer zu schreiben. So schwer war es gar nicht::bimei Mit freundlichen Grüßen Ahlu-Sunnah
  2. Hi, das ist ein Windows 2003 Server-Betriebssystem, da gibt es unter der Computerverwaltung keine "lokalen Benutzer und Gruppen". Zumindest bei mir nicht. Trotzdem Danke. Mfg Ahlu-Sunnah
  3. Hallo Leut! Ich glaub das Thema hatte ich schon mal erstellt hier, aber durch nutzen der Suchfunktion hab ich es nicht gefunden. Dann eben nochmal. Wie ihr wisst bastle ich schon lange an einen Programm das den gregorianischen Kalender in den islamischen konvertiert. Dazu muss man erstmal den gregorianischen Kalender in den Julianischen umrechnen. Hier mein Code: import javax.swing.*; public class Umrechnung { public static void main (String[]args) { int GD = Integer.parseInt(JOptionPane.showInputDialog(null,"Geben Sie einen gergorianisches Tag ein")); int GM = Integer.parseInt(JOptionPane.showInputDialog(null,"Geben Sie einen gregorianischen Monat ein")); int GJ = Integer.parseInt(JOptionPane.showInputDialog(null,"Geben Sie ein gregorianischen Jahr ein")); double s = (int)(GJ/100); double s1 = GJ % 100; double s2 = (int)(1-(s1/100)); double p = (int)(GJ/400); double p1 = GJ %400; double p2 = (int)(1 - (p1 / 400)); double q = (int)(GJ / 4); double b = GJ % 4; double q2 = (int)(1 - (b / 4)); double r = s %4; double r1 = 3 * p + r - 2; double r2 = q2 + p2 - s2; double Ausgleich = 0; { if(GM==1) { Ausgleich =0; } if(GM==2) { Ausgleich =31; } if(GM==3) { Ausgleich =59; if (r2==1){ Ausgleich =60; } } if(GM==4) { Ausgleich =90; if (r2==1){ Ausgleich =91; } } if(GM==5) { Ausgleich =120; if (r2==1){ Ausgleich =121; } } if(GM==6) { Ausgleich =151; if (r2==1){ Ausgleich =152; } } if(GM==7) { Ausgleich =181; if (r2==1){ Ausgleich =182; } } if(GM==8) { Ausgleich =212; if (r2==1){ Ausgleich =213; } } if(GM==9) { Ausgleich =243; if (r2==1){ Ausgleich =244; } } if(GM==10) { Ausgleich =273; if (r2==1){ Ausgleich =274; } } if(GM==11) { Ausgleich =304; if (r2==1){ Ausgleich =305; } } if(GM==12) { Ausgleich =334; if (r2==1){ Ausgleich =335; } } double J = (int)(1721058 + 1461 * q + 365 * b - r2 - r1 + GD + Ausgleich); JOptionPane.showMessageDialog(null,J); Bis dahin rechnet man den Gregorianischen Kalender in den islamischen um. Ein Kollege der nur C beherrscht hat mir dazu eine Erweiterung geschrieben (in C natürlich, das ich nicht kann). Hier ist sein Code: /***************************************************/ /* Islamic Tabular Calendar Date */ /* Calculate month, day, and year from Julian date */ /* Day 1 starts at Saturday 1800, sunset */ /* return 1, if valid, 0 otherwise */ /***************************************************/ //const long islamicMuharram = 1948440; // civil calendar epoch const long islamicMuharram = 1948439; // astronomical calendar epoch int DllExport JD2DMY_Islamic ( double J, int &day, int &month, long &year, double &ut, int &DOW ) { ut = frac(J+0.5); J = J-ut+0.5; ut *= 24.; if (J<islamicMuharram) return(0); // invalid date long L = (long)(J-islamicMuharram+10632); long N = (long)((L-1)/10631); L = L-10631*N+354; long j = int((10985-L)/5316)*int((50*L)/17719)+int(L/5670)*int((43*L)/15238); L = L-int((30-j)/15)*int((17719*j)/50)-int(j/16)*int((15238*j)/43)+29; month = int((24*L)/709); day = L-int((709*month)/24); year = 30*N+j-30; if (year<1) return(0); // invalid date return(1); } /***************************************************/ /* Islamic Tabular Calendar Date */ /* Calculate Julian date from month, day, and year */ /* Day starts at sunset of J */ /* return 1, if valid, 0 otherwise */ /***************************************************/ int DllExport DMY2JD_Islamic ( int day, int month, long year, double &J ) { if (year<1) return(0); // invalid date J = int((11*year+3)/30)+354*year+30*month-int((month-1)/2)+day+islamicMuharram-385; return(1); } static const char* monthsIslamic[] = { "", "Muharram", "Safar", "Rabi'a I", "Rabi'a II", "Jumada I", "Jumada II", "Rajab", "Sha'ban", "Ramadan", "Shawwal", "Dhu al-Q'adah", "Dhu al-Hijjah"}; const DllExport char* MonthIslamic ( int month ) { if (month<1 || month>12) return(""); return monthsIslamic[month]; } Kann jemand den Code "javasieren"? Vielen Dank Mit freundlichen Grüßen Ahlu-Sunnah
  4. Hallo Leut! Ich glaub das Thema hatte ich schon mal erstellt hier, aber durch nutzen der Suchfunktion hab ich es nicht gefunden. Dann eben nochmal. Wie ihr wisst bastle ich schon lange an einen Programm das den gregorianischen Kalender in den islamischen konvertiert. Dazu muss man erstmal den gregorianischen Kalender in den Julianischen umrechnen. Hier mein Code: import javax.swing.*; public class Umrechnung { public static void main (String[]args) { int GD = Integer.parseInt(JOptionPane.showInputDialog(null,"Geben Sie einen gergorianisches Tag ein")); int GM = Integer.parseInt(JOptionPane.showInputDialog(null,"Geben Sie einen gregorianischen Monat ein")); int GJ = Integer.parseInt(JOptionPane.showInputDialog(null,"Geben Sie ein gregorianischen Jahr ein")); double s = (int)(GJ/100); double s1 = GJ % 100; double s2 = (int)(1-(s1/100)); double p = (int)(GJ/400); double p1 = GJ %400; double p2 = (int)(1 - (p1 / 400)); double q = (int)(GJ / 4); double b = GJ % 4; double q2 = (int)(1 - (b / 4)); double r = s %4; double r1 = 3 * p + r - 2; double r2 = q2 + p2 - s2; double Ausgleich = 0; { if(GM==1) { Ausgleich =0; } if(GM==2) { Ausgleich =31; } if(GM==3) { Ausgleich =59; if (r2==1){ Ausgleich =60; } } if(GM==4) { Ausgleich =90; if (r2==1){ Ausgleich =91; } } if(GM==5) { Ausgleich =120; if (r2==1){ Ausgleich =121; } } if(GM==6) { Ausgleich =151; if (r2==1){ Ausgleich =152; } } if(GM==7) { Ausgleich =181; if (r2==1){ Ausgleich =182; } } if(GM==8) { Ausgleich =212; if (r2==1){ Ausgleich =213; } } if(GM==9) { Ausgleich =243; if (r2==1){ Ausgleich =244; } } if(GM==10) { Ausgleich =273; if (r2==1){ Ausgleich =274; } } if(GM==11) { Ausgleich =304; if (r2==1){ Ausgleich =305; } } if(GM==12) { Ausgleich =334; if (r2==1){ Ausgleich =335; } } double J = (int)(1721058 + 1461 * q + 365 * b - r2 - r1 + GD + Ausgleich); JOptionPane.showMessageDialog(null,J); Bis dahin rechnet man den Gregorianischen Kalender in den islamischen um. Ein Kollege der nur C beherrscht hat mir dazu eine Erweiterung geschrieben (in C natürlich, das ich nicht kann). Hier ist sein Code: /***************************************************/ /* Islamic Tabular Calendar Date */ /* Calculate month, day, and year from Julian date */ /* Day 1 starts at Saturday 1800, sunset */ /* return 1, if valid, 0 otherwise */ /***************************************************/ //const long islamicMuharram = 1948440; // civil calendar epoch const long islamicMuharram = 1948439; // astronomical calendar epoch int DllExport JD2DMY_Islamic ( double J, int &day, int &month, long &year, double &ut, int &DOW ) { ut = frac(J+0.5); J = J-ut+0.5; ut *= 24.; if (J<islamicMuharram) return(0); // invalid date long L = (long)(J-islamicMuharram+10632); long N = (long)((L-1)/10631); L = L-10631*N+354; long j = int((10985-L)/5316)*int((50*L)/17719)+int(L/5670)*int((43*L)/15238); L = L-int((30-j)/15)*int((17719*j)/50)-int(j/16)*int((15238*j)/43)+29; month = int((24*L)/709); day = L-int((709*month)/24); year = 30*N+j-30; if (year<1) return(0); // invalid date return(1); } /***************************************************/ /* Islamic Tabular Calendar Date */ /* Calculate Julian date from month, day, and year */ /* Day starts at sunset of J */ /* return 1, if valid, 0 otherwise */ /***************************************************/ int DllExport DMY2JD_Islamic ( int day, int month, long year, double &J ) { if (year<1) return(0); // invalid date J = int((11*year+3)/30)+354*year+30*month-int((month-1)/2)+day+islamicMuharram-385; return(1); } static const char* monthsIslamic[] = { "", "Muharram", "Safar", "Rabi'a I", "Rabi'a II", "Jumada I", "Jumada II", "Rajab", "Sha'ban", "Ramadan", "Shawwal", "Dhu al-Q'adah", "Dhu al-Hijjah"}; const DllExport char* MonthIslamic ( int month ) { if (month<1 || month>12) return(""); return monthsIslamic[month]; } Vielen Dank! Mit freundlichen Grüßen Ahlu-Sunnah
  5. Hallo Leute! Durch Benutzen von Google und des Windows 2003 Server Handbuchs bin ich leider in Bezug auf folgende Frage nicht schlauer geworden:Wie richte ich einen lokalen User auf den Windows 2003 Server ein? Kann mir jemand helfen? Mfg Ahlu-sunnah
  6. Morgen, gute Frage, wie find ich das heraus, bin neu in Visual Basic 8. Vielen Dank! Ahlu-Sunnah
  7. Hi, hab ich schon versucht. Das klappt, aber nach mehrmaligen debuggen kommt die Fehlermeldung wieder. Mfg Ahlu-Sunnah
  8. Hallo Leute, schaut euch mal folgenden Code an. Ich möchte mir in Visual Basic ein Programm schreiben das den Gregorianischen Kalender in den Islamischen konvertiert. Allerdings muss man erst das den GregKalender in den Julianischen konvertieren. Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim GregJ As Double = InputBox("Geben Sie ein gregorianisches Jahr ein") Dim GregM As Integer = InputBox("Geben Sie einen gregorianischen Monat ein") Dim GregD As Integer = InputBox("Geben Sie einen gregorianischen Tag ein") Dim s As Double = Int(GregJ / 100) Dim s1 As Double = GregJ Mod 100 Dim s2 As Double = Int(1 - (s1 / 100)) Dim p As Double = Int(GregJ / 400) Dim p1 As Double = GregJ Mod 400 Dim p2 As Double = Int(1 - (p1 / 400)) Dim q As Double = Int(GregJ / 4) Dim b As Double = GregJ Mod 4 Dim q2 As Double = Int(1 - (b / 4)) Dim r As Double = s Mod 4 Dim r1 As Double = 3 * p + r - 2 Dim r2 As Double = q2 + p2 - s2 Dim Ausgleich As Double If GregM = 1 Then Ausgleich = 0 End If If GregM = 2 Then Ausgleich = 31 End If If GregM = 3 Then Ausgleich = 59 If r2 = 1 Then Ausgleich = 60 End If End If If GregM = 4 Then Ausgleich = 90 If r2 = 1 Then Ausgleich = 91 End If End If If GregM = 5 Then Ausgleich = 120 If r2 = 1 Then Ausgleich = 121 End If End If If GregM = 6 Then Ausgleich = 151 If r2 = 1 Then Ausgleich = 152 End If End If If GregM = 7 Then Ausgleich = 181 If r2 = 1 Then Ausgleich = 182 End If End If If GregM = 8 Then Ausgleich = 212 If r2 = 1 Then Ausgleich = 213 End If End If If GregM = 9 Then Ausgleich = 243 If r2 = 1 Then Ausgleich = 244 End If End If If GregM = 10 Then Ausgleich = 273 If r2 = 1 Then Ausgleich = 274 End If End If If GregM = 11 Then Ausgleich = 304 If r2 = 1 Then Ausgleich = 305 End If End If If GregM = 12 Then Ausgleich = 334 If r2 = 1 Then Ausgleich = 335 End If End If Dim JD As Double = 1721085 + 1461 * q + 365 * b - r2 - r1 + GregD + Ausgleich End Sub End Class Wenn ich auf Debuggen (F5) gehe, kommt nach dem ich den Button anklick folgende Fehlermeldung: (ist als Jpeg angehängt) Ich hoffe ihr könnt mir helfen. Mit freundlichen Grüßen ahlu-sunnah
  9. Hi Tommy, soweit ich weiß kannst du in Hamburg, Europäisches Wirtschaftsrecht und BWL ohne Abitur, aber mit mittlerer Reife studieren
  10. Hi Jaraz, Ich hab dieses Programm -mit den begrenzten Wissen das ich habe- selbst geschrieben. Leider bin ich nicht so fit in Sachen programmieren. Was meinst du mit die Rückgab in einer Variablen speichern? MFG Ahlu-Sunnah
  11. Morgen Leute! schaut euch bitte folgenden Code an: import javax.swing.*; public class TestProgramm { public static void main (String[]args) { int a=0; int b=0; int c=0; int d=0; JOptionPane.showMessageDialog(null,"Denken Sie sich eine Zahl zwischen 0 und 15!"); if (JOptionPane.showConfirmDialog(null, "Ist die Zahl unter diesen: 9 3 11 13 7 1 15 5 ?", "Auswahl der Zahl " , JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION); if (false) { a=0; } if (true) { a=1; } if (JOptionPane.showConfirmDialog(null, "Ist die Zahl unter diesen: 2 10 6 3 15 11 7 14 ?", "Auswahl der Zahl " , JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION); if (false) { b=0; } if (true) { b=1; } if (JOptionPane.showConfirmDialog(null, "Ist die Zahl unter diesen: 12 14 4 7 15 6 13 5 ?", "Auswahl der Zahl " , JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION); if (false) { c=0; } if (true) { c=1; } if (JOptionPane.showConfirmDialog(null, "Ist die Zahl unter diesen: 14 15 12 11 8 10 13 9 ?", "Auswahl der Zahl " , JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION); if (false) { d=0; } if (true) { d=1; } if (d==0 && c==0 && b==0 && a==0) { JOptionPane.showMessageDialog(null,"Ihre Zahl ist 0"); } if (d==0 && c==0 && b==0 && a==1) { JOptionPane.showMessageDialog(null,"Ihre Zahl ist 1"); } if (d==0 && c==0 && b==1 && a==0) { JOptionPane.showMessageDialog(null,"Ihre Zahl ist 2"); } if (d==0 && c==0 && b==1 && a==1) { JOptionPane.showMessageDialog(null,"Ihre Zahl ist 3"); } if (d==0 && c==1 && b==0 && a==0) { JOptionPane.showMessageDialog(null,"Ihre Zahl ist 4"); } if (d==0 && c==1 && b==0 && a==1) { JOptionPane.showMessageDialog(null,"Ihre Zahl ist 5"); } if (d==0 && c==1 && b==1 && a==0) { JOptionPane.showMessageDialog(null,"Ihre Zahl ist 6"); } if (d==0 && c==1 && b==1 && a==1) { JOptionPane.showMessageDialog(null,"Ihre Zahl ist 7"); } if (d==1 && c==0 && b==0 && a==0) { JOptionPane.showMessageDialog(null,"Ihre Zahl ist 8"); } if (d==1 && c==0 && b==0 && a==1) { JOptionPane.showMessageDialog(null,"Ihre Zahl ist 9"); } if (d==1 && c==0 && b==1 && a==0) { JOptionPane.showMessageDialog(null,"Ihre Zahl ist 10"); } if (d==1 && c==0 && b==1 && a==1) { JOptionPane.showMessageDialog(null,"Ihre Zahl ist 11"); } if (d==1 && c==1 && b==0 && a==0) { JOptionPane.showMessageDialog(null,"Ihre Zahl ist 12"); } if (d==1 && c==1 && b==0 && a==1) { JOptionPane.showMessageDialog(null,"Ihre Zahl ist 13"); } if (d==1 && c==1 && b==1 && a==0) { JOptionPane.showMessageDialog(null,"Ihre Zahl ist 14"); } if (d==1 && c==1 && b==1 && c==1) { JOptionPane.showMessageDialog(null,"Ihre Zahl ist 15"); } System.out.println(a+" "+b+" "+c+" "+d+" "); } } Ich möchte einen Zahlentrick programmieren. Am besten schaut ihr auf diese Seite:Zahlen erraten. Das funktioniert über Binärcode. Leider spuckt das Programm immer nur 15 aus, warum ist das so? Vielen Dank im voraus! MFG Ahlu-Sunnah
  12. Es soll sich so lange wiederholen bis ich es manuell beende.
  13. (in Anlehnung an folgenden Thema http://forum.fachinformatiker.de/java/111284-javaprog-exelieren.html#post1016539) Morgen Leute, meinen JAVA-Code könnte ihr oben nachlesen. Wenn die Eingabe bei meiner JAR-Datei abgeschlossen ist, wird das Ergebnis ausgegeben. Leider startet das Programm keine neue Abfrage. Wie kann ich das machen? Vielen Dank! MFG
  14. Morgen Leut, ich hab die Anweisung verstanden. Jetzt funktionierts. Vielen Dank!!! Wie programmiert man die Anwendung, wenn man will das sich das Programm nach dem Ausführen wiederholen soll? Mit einer Schleife? Wie schaut das ganze dann aus? MFG ahlu-sunnah
  15. Du musst doch nicht den ganzen Texte wort für wort übersetzen nur den Wortlaut wiedergeben. Ach komm, ich bin neu im Gewerbe. I need help!. Ab Punkt 5 hängts bei mir. MFG
  16. Vielen Dank für deine Hilfe! Kannst du das bitte übersetzen? Ich versteh da einiges nicht und die Google-Übersetzung ist nicht gut. MFG
  17. Vielen Dank für deine Hilfe, leider bin ich noch ein blutiger Anfänger. Wie mach ich das denn genau? Mein Englisch ist auch nicht so gut. Kannst du mir das bitte genau erklären? Vielleicht mit Hilfe von Screenshots? THX MFG
  18. Hallo Leute! import javax.swing.*; public class Streckenlänge { public static void main(String args[]) { double ax = Double.parseDouble(JOptionPane.showInputDialog(null,"Geben Sie die X-Koordinate des Punktes A ein")); double ay = Double.parseDouble(JOptionPane.showInputDialog(null,"Geben Sie die Y-Koordinate des Punktes A ein")); double bx = Double.parseDouble(JOptionPane.showInputDialog(null,"Geben Sie die X-Koordinate des Punktes B ein")); double by = Double.parseDouble(JOptionPane.showInputDialog(null,"Geben Sie die Y-Koordinate des Punktes B ein")); double laenge = 0; laenge = Math.sqrt((bx-ax)*(bx-ax)+(by-ay)*(by-ay)); JOptionPane.showMessageDialog(null,"die Länge beträgt "+laenge); JOptionPane.showMessageDialog(null,"das ist die Wurzel aus "+laenge*laenge); } } Das Programm hab ich geschrieben, damit kann man Streckenlängen im kartesischen Koordiantensystem ausrechnen. Man braucht nur die KOs der Punkte eingeben. Weiß einer von euch wie ich dieses Programm ausführen kann ohne den Eclipse-Hintergrund? So wie eine EXE-Datei. Weiß einer Rat? MFG
  19. Morgen Leute! Ich mache gerade eine Ausbildung zum Fachinformatiker/Systemintegration (im 4. Monat, das ist leicht zweideutig ich weiß). Hier meine Frage: Ich möchte nach der Systemintegration-Ausbildung eine weitere als AE anhängen. Um wie viel würde sich die Ausbildungszeit dann verkürzen? Auf 1 Jahr? Vielen Dank im voraus!

Fachinformatiker.de, 2024 by SE Internet Services

fidelogo_small.png

Schicke uns eine Nachricht!

Fachinformatiker.de ist die größte IT-Community
rund um Ausbildung, Job, Weiterbildung für IT-Fachkräfte.

Fachinformatiker.de App

Download on the App Store
Get it on Google Play

Kontakt

Hier werben?
Oder sende eine E-Mail an

Social media u. feeds

Jobboard für Fachinformatiker und IT-Fachkräfte

×
×
  • Neu erstellen...