Advertisement
Guest User

Untitled

a guest
Jun 27th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.70 KB | None | 0 0
  1. public class NotendurchschnittAdvanced {
  2.  
  3. public static void main(String[] args) {
  4.  
  5. //Variablen
  6. int a = 1;
  7. int b = 1;
  8. int ab;
  9. int q;
  10.  
  11. //Richtiges Ergebnis
  12. q = a + b;
  13.  
  14. //Erklärung
  15. System.out.println("So wie der Name vom Tool sagt, kannst du hiermit deinen Notendurchschnitt errechnen.");
  16. Timer.wait(300);
  17. System.out.println("Du musst dazu nur den Anweisungen folgen.");
  18. Timer.wait(300);
  19.  
  20. //Testen ob man zählen kann (Erklärung)
  21. System.out.println();
  22. Timer.wait(300);
  23. System.out.println("Jetzt musst du eigentlicht die Anzahl deiner F\u00E4cher eingeben.");
  24. Timer.wait(300);
  25. System.out.println("Dazu m\u00FCsstest du die ganzen F\u00E4cher zusammenz\u00E4hlen.");
  26. Timer.wait(300);
  27. System.out.println("Es k\u00F6nnte aber theoretisch sein, dass du nicht z\u00E4hlen kannst.");
  28. Timer.wait(300);
  29. System.out.println("Deswegen werden wir jetzt testen, ob du z\u00E4hlen kannst.");
  30. Timer.wait(300);
  31. System.out.println("Wenn du alles gelesen hast, dr\u00FCcke ENTER.");
  32. int ugdfzuhduifh = Input.readInt();
  33.  
  34. //Testen ob man zählen kann (Rechnung)
  35. System.out.println();
  36. System.out.println("Also, ist ganz easy, du musst nur die folgenden Zahlen zusammen rechnen.");
  37. Timer.wait(500);
  38. System.out.println("Du wirst 3 Sekunden zeit haben!");
  39. Timer.wait(500);
  40. System.out.println("Dr\u00FCcke ENTER, sobald du bereit bist.");
  41. int dfguhdfhsduifhsduifh = Input.readInt();
  42.  
  43. System.out.println(a + "+" + b);
  44. Timer.wait(3000);
  45. System.out.println("3 Sekunden sind um!");
  46. Timer.wait(300);
  47. System.out.println();
  48. System.out.println("Gib jetzt das Ergebnis an.");
  49. ab = Input.readInt();
  50.  
  51. //Richtig gerechnet
  52. if(ab == q) {
  53.  
  54. //Variablen
  55. int x; //Anzahl der Fächer
  56. int y = 0; //Noten zusammmengrechenet
  57. int c = 0; //Counter
  58. int z = 0; //kp für was das hier is
  59.  
  60. System.out.println();
  61. System.out.println("WAS!?!?!?!?!?!??1?!?!??!?!?!?!uihuidfnvdfiubvuidbvnuidnvuihdc");
  62. Timer.wait(300);
  63. System.out.println("Du hast " + ab + " angegeben, die richtige L\u00F6sung ist " + q + ".");
  64. Timer.wait(300);
  65. System.out.println("Wenn du jetzt nicht blind bist, siehst du, dass du die richtige L\u00F6sung angegeben hast.");
  66. Timer.wait(300);
  67.  
  68. //Aufforderung die anzahl der fächer anzugeben
  69. System.out.println();
  70. System.out.println("Also, wir gehen jetzt davon aus, dass du z\u00E4hlen kannst.");
  71. Timer.wait(300);
  72. System.out.println("Gib jetzt bitte die Anzahl aller deiner F\u00E4cher zusammen an.");
  73. x = Input.readInt();
  74. Timer.wait(300);
  75.  
  76. if(x > 20) {
  77.  
  78. System.out.println();
  79. System.out.println("Welcher Mensch hat " + x + " Schulf\u00E4cher, gleichzeitig?!");
  80. System.exit(0);
  81.  
  82. }
  83.  
  84. System.out.println("Sehr gut! Jetzt nur noch hoffen, dass es stimmt!");
  85. Timer.wait(300);
  86.  
  87. //Noten angeben
  88. System.out.println();
  89. System.out.println("Jetzt musst du nur noch deine Noten, von den einzelnen F\u00E4chern, angeben.");
  90. Timer.wait(300);
  91.  
  92. while(x != 0) {
  93.  
  94. x--;
  95. c++;
  96.  
  97. y = z + y;
  98.  
  99. //Noten angeben
  100. System.out.println();
  101. System.out.println("Gib jetzt die Note von deinem " + c + ". Fach an.");
  102. z = Input.readInt();
  103. Timer.wait(300);
  104.  
  105. //Berechnung vom durchachnitt
  106. if(x == 0) {
  107.  
  108.  
  109. double zz = y + z;
  110. zz = zz / c;
  111.  
  112. Timer.wait(300);
  113. System.out.println();
  114. System.out.println("Dein Durchschnitt betr\u00E4gt " + zz + ".");
  115. Timer.wait(300);
  116.  
  117. if(zz >= 5) {
  118.  
  119. System.out.println("Weiter so!");
  120.  
  121. }
  122.  
  123. if(zz <= 1) {
  124.  
  125. System.out.println("Du bist etwas zu gut, werd' mal 'n bisschen schlechter!");
  126.  
  127. }
  128.  
  129. }
  130.  
  131. //Testausgaben
  132. // System.out.println();
  133. // System.out.println("Wert von x " + x);
  134. // System.out.println("Wert von c " + c);
  135. // System.out.println("Wert von y " + y);
  136. // System.out.println("Wert von z " + z);
  137.  
  138.  
  139.  
  140. //testen ob die noten zwishcen 0 und 7 sind
  141. if(z < 1 || z >= 7) {
  142.  
  143. System.out.println();
  144. System.out.println("Bist du krank im Kopf?! Welcher Mensch bekommt bitte eine " + z + "?");
  145. System.out.println("Fang nochmal von vorne an!");
  146. System.exit(0);
  147.  
  148. }
  149.  
  150. }
  151.  
  152. } else {
  153.  
  154. Timer.wait(300);
  155. System.out.println();
  156. System.out.println("So wie's aussieht, bist du zu dumm um das Ergebnis von 1+1 zu errechen!");
  157. Timer.wait(300);
  158. System.out.println("Ich bin mal so nett und helfe dir:");
  159. Timer.wait(300);
  160. System.out.println();
  161. System.out.println("Schritt 1: Handy entsperren.");
  162. Timer.wait(300);
  163. System.out.println("Schritt 2: Taschenrechner \u00F6ffnen.");
  164. Timer.wait(300);
  165. System.out.println("Schritt 3: 1 dr\u00FCcken.");
  166. Timer.wait(300);
  167. System.out.println("Schritt 4: + dr\u00FCcken.");
  168. Timer.wait(300);
  169. System.out.println("Schritt 5: 1 dr\u00FCcken.");
  170. Timer.wait(300);
  171. System.out.println("Schritt 6: = dr\u00FCcken.");
  172. Timer.wait(300);
  173. System.out.println("Wenn du alles verstanden hast, bitte Enter dr\u00FCcken.");
  174. int dfugh = Input.readInt();
  175.  
  176. //Variablen
  177. int f = 584;
  178. int g = 5654564;
  179. double fg = f + g;
  180.  
  181. int k;
  182.  
  183. Timer.wait(300);
  184. System.out.println();
  185. System.out.println("Hier nochmal eine Chance f\u00FCr dich:");
  186. Timer.wait(300);
  187. System.out.println("Du hast jetzt 2 Sekunden zeit, um 2 Zahlen zu addieren.");
  188. Timer.wait(300);
  189. System.out.println("Dr\u00FCcke ENTER sobald du bereit bist.");
  190. int sdghbzuhdgfz = Input.readInt();
  191. Timer.wait(300);
  192.  
  193. System.out.println(f + " + " + g);
  194. Timer.wait(2000);
  195. System.out.println("Gib das Ergebnis ein!");
  196.  
  197. k = Input.readInt();
  198. Timer.wait(300);
  199.  
  200. if(k == fg) {
  201.  
  202. System.out.println();
  203. System.out.println("Natoll, jetzt hast du das richtige Ergebnis, ich wollte eigentlich,");
  204. System.out.println("dass du ein falsches eingibst, weil ich momentan noch nicht wei\u00DF,");
  205. System.out.println("wie man an eine bestimmte Stelle im Code zur\u00FCckspringt.");
  206. System.out.println("Deswegen beendet sich das Tool in 2 Sekunden!");
  207. Timer.wait(2000);
  208. System.exit(0);
  209.  
  210. } else {
  211.  
  212. System.out.println();
  213. System.out.println("Bist du komplett dumm?!");
  214. Timer.wait(300);
  215. System.out.println("Warum schaffst du es nicht innerhalb von 3,5 Sekunden,");
  216. Timer.wait(300);
  217. System.out.println("diese Zahlen zu addieren?! " + f + " + " + g);
  218. Timer.wait(300);
  219. System.out.println("Also, ich w\u00FCrde es zwar auch nicht schaffen,");
  220. Timer.wait(300);
  221. System.out.println("aber es warum hast du es nicht geschafft?");
  222. Timer.wait(300);
  223. System.out.println("Also ich wei\u00DF es!");
  224. Timer.wait(300);
  225. System.out.println("Die Aufgabe war einfach zu schwer f\u00FCr dich!");
  226. Timer.wait(300);
  227. System.out.println("Es wird eine leichtere Aufgabe f\u00FCr dich geben, sobald du ENTER dr\u00FCckst!");
  228. int zdfhghudfsgiu = Input.readInt();
  229. Timer.wait(300);
  230.  
  231. System.out.println();
  232. System.out.println("Also, du bist bereit f\u00FCr die Aufgabe?");
  233. Timer.wait(300);
  234. System.out.println("Dr\u00FCcke nochmal ENTER!");
  235. int sdfggddgf = Input.readInt();
  236. Timer.wait(300);
  237.  
  238. System.out.println();
  239. System.out.println("Ich werde dir jetzt keine weitere Aufgabe geben, da es unn\u00F6tige Arbeit w\u00E4re!");
  240. Timer.wait(300);
  241.  
  242. System.out.println("Wir fangen jetzt an, mit dem Notendurchschnitt berechnen.");
  243. Timer.wait(300);
  244. System.out.println("Wenn du bereit bist, dr\u00FCcke die ENTER-Taste.");
  245. int ishdbfhi = Input.readInt();
  246.  
  247. //Variablen für die einzelnen Fächer
  248. boolean biologie;
  249. boolean chemie;
  250. boolean dug;
  251. boolean deutsch;
  252. boolean englisch;
  253. boolean erdkunde;
  254. boolean franzoesisch;
  255. boolean geschichtepolitik;
  256. boolean hauswirtschaft;
  257. boolean informatik;
  258. boolean kunst;
  259. boolean mathe;
  260. boolean musik;
  261. boolean physik;
  262. boolean philosophie;
  263. boolean religion;
  264. boolean sport;
  265. boolean technik;
  266. boolean textil;
  267. boolean wirtschaft;
  268.  
  269. //Variablen für den Notendurchschnitt
  270. int xy = 0; //Anzahl der Fächer
  271. int abc = 0; //Noten zusammmengrechnet
  272.  
  273. //Fächer
  274. String bio = "Hast du das Fach Biologie?";
  275. String chem = "Hast du das Fach Chemie?";
  276. String darstellenugestalden = "Hast du das Fach Darstellen und Gestalten?";
  277. String deut = "Hast du das Fach Deutsch?";
  278. String eng = "Hast du das Fach Englisch?";
  279. String erd = "Hast du das Fach Erdkunde?";
  280. String franz = "Hast du das Fach Franz\u00F6sisch?";
  281. String geschpoli = "Hast du das Fach Geschichte/Politik?";
  282. String haus = "Hast du das Fach Hauswirtschaft?";
  283. String info = "Hast du das Fach Informatik?";
  284. String kun = "Hast du das Fach Kunst?";
  285. String mathematik = "Hast du das Fach Mathe?";
  286. String msk = "Hast du das Fach Musik?";
  287. String phyk = "Hast du das Fach Physik?";
  288. String philo = "Hast du das Fach Philosophie?";
  289. String reli = "Hast du das Fach Religion?";
  290. String sprt = "Hast du das Fach Sport?";
  291. String tchnk = "Hast du das Fach Technik?";
  292. String text = "Hast du das Fach Textil?";
  293. String wirt = "Hast du das Fach Wirtschaft?";
  294.  
  295. //Abfrage der Fächer
  296.  
  297. System.out.println();
  298. System.out.println("Da du es nicht geschafft hast, die Aufgaben zu l\u00F6sen,");
  299. System.out.println("machen wir es anders.");
  300. Timer.wait(300);
  301. System.out.println("In den folgenden Schritten wirst du nach deinen F\u00E4chern gefragt.");
  302. Timer.wait(300);
  303. System.out.println("Es werden die Namen der F\u00E4cher angezeigt,");
  304. System.out.println("wenn du dieses Fach hast, gib TRUE ein, wenn nicht FALSE.");
  305. Timer.wait(300);
  306. System.out.println("Los geht's!");
  307. Timer.wait(300);
  308.  
  309. System.out.println();
  310. System.out.println("Wie gesagt, dir werden jetzt die Namen der F\u00E4cher angezeigt.");
  311. Timer.wait(300);
  312. System.out.println("Wenn du dieses Fach hast, gib TRUE ein, falls nicht, gib FALSE ein.");
  313.  
  314. System.out.println();
  315. System.out.println(bio);
  316. biologie = Input.readBoolean();
  317.  
  318. System.out.println(chem);
  319. chemie = Input.readBoolean();
  320.  
  321. System.out.println(darstellenugestalden);
  322. dug = Input.readBoolean();
  323.  
  324. System.out.println(deut);
  325. deutsch = Input.readBoolean();
  326.  
  327. System.out.println(eng);
  328. englisch = Input.readBoolean();
  329.  
  330. System.out.println(erd);
  331. erdkunde = Input.readBoolean();
  332.  
  333. System.out.println(franz);
  334. franzoesisch = Input.readBoolean();
  335.  
  336. System.out.println(geschpoli);
  337. geschichtepolitik = Input.readBoolean();
  338.  
  339. System.out.println(haus);
  340. hauswirtschaft = Input.readBoolean();
  341.  
  342. System.out.println(info);
  343. informatik = Input.readBoolean();
  344.  
  345. System.out.println(kun);
  346. kunst = Input.readBoolean();
  347.  
  348. System.out.println(mathematik);
  349. mathe = Input.readBoolean();
  350.  
  351. System.out.println(msk);
  352. musik = Input.readBoolean();
  353.  
  354. System.out.println(phyk);
  355. physik = Input.readBoolean();
  356.  
  357. System.out.println(philo);
  358. philosophie = Input.readBoolean();
  359.  
  360. System.out.println(reli);
  361. religion = Input.readBoolean();
  362.  
  363. System.out.println(sprt);
  364. sport = Input.readBoolean();
  365.  
  366. System.out.println(tchnk);
  367. technik = Input.readBoolean();
  368.  
  369. System.out.println(text);
  370. textil = Input.readBoolean();
  371.  
  372. System.out.println(wirt);
  373. wirtschaft = Input.readBoolean();
  374.  
  375. //Test ob die Fächer stimmen
  376. Timer.wait(300);
  377. System.out.println();
  378. System.out.println("Gib jetzt die Noten, von den folgenden F\u00E4chern an: ");
  379. Timer.wait(300);
  380.  
  381. if(biologie == true) {
  382.  
  383. xy++;
  384.  
  385. System.out.println("Biologie");
  386. int blg = Input.readInt();
  387.  
  388. abc = abc + blg;
  389.  
  390. //Testausgabe
  391. // System.out.println("Anzahl der Fächer" + xy);
  392. // System.out.println("Noten zusammen" + abc);
  393.  
  394. if(blg <= 0 || blg >= 7) {
  395.  
  396. System.out.println();
  397. System.out.println("Wie schaffst du es eine " + blg + " zu bekommen?!");
  398. System.exit(0);
  399. }
  400.  
  401. }
  402.  
  403. if(chemie == true) {
  404.  
  405. xy++;
  406.  
  407. System.out.println("Chemie");
  408. int chm = Input.readInt();
  409.  
  410. abc = abc + chm;
  411.  
  412. //Testausgabe
  413. // System.out.println("Anzahl der Fächer" + xy);
  414. // System.out.println("Noten zusammen" + abc);
  415.  
  416. if(chm <= 0 || chm >= 7) {
  417.  
  418. System.out.println();
  419. System.out.println("Wie schaffst du es eine " + chm + " zu bekommen?!");
  420. System.exit(0);
  421.  
  422. }
  423.  
  424. }
  425.  
  426. if(dug == true) {
  427.  
  428. xy++;
  429.  
  430. System.out.println("Darstellen und Gestalten");
  431. int drstlln = Input.readInt();
  432.  
  433. abc = abc + drstlln;
  434.  
  435. //Testausgabe
  436. // System.out.println("Anzahl der Fächer" + xy);
  437. // System.out.println("Noten zusammen" + abc);
  438.  
  439. if(drstlln <= 0 || drstlln >= 7) {
  440.  
  441. System.out.println();
  442. System.out.println("Wie schaffst du es eine " + drstlln + " zu bekommen?!");
  443. System.exit(0);
  444.  
  445. }
  446.  
  447. }
  448.  
  449. if(deutsch == true) {
  450.  
  451. xy++;
  452.  
  453. System.out.println("Deutsch");
  454. int duts = Input.readInt();
  455.  
  456. abc = abc + duts;
  457.  
  458. //Testausgabe
  459. // System.out.println("Anzahl der Fächer" + xy);
  460. // System.out.println("Noten zusammen" + abc);
  461.  
  462. if(duts <= 0 || duts >= 7) {
  463.  
  464. System.out.println();
  465. System.out.println("Wie schaffst du es eine " + duts + " zu bekommen?!");
  466. System.exit(0);
  467.  
  468. }
  469.  
  470. }
  471.  
  472. if(englisch == true) {
  473.  
  474. xy++;
  475.  
  476. System.out.println("Englisch");
  477. int eglisch = Input.readInt();
  478.  
  479. abc = abc + eglisch;
  480.  
  481. //Testausgabe
  482. // System.out.println("Anzahl der Fächer" + xy);
  483. // System.out.println("Noten zusammen" + abc);;
  484.  
  485. if(eglisch <= 0 || eglisch >= 7) {
  486.  
  487. System.out.println();
  488. System.out.println("Wie schaffst du es eine " + eglisch + " zu bekommen?!");
  489. System.exit(0);
  490.  
  491. }
  492.  
  493. }
  494.  
  495. if(erdkunde == true) {
  496.  
  497. xy++;
  498.  
  499. System.out.println("Erdkunde");
  500. int ek = Input.readInt();
  501.  
  502. abc = abc + ek;
  503.  
  504. //Testausgabe
  505. // System.out.println("Anzahl der Fächer" + xy);
  506. // System.out.println("Noten zusammen" + abc);
  507.  
  508. if(ek <= 0 || ek >= 7) {
  509.  
  510. System.out.println();
  511. System.out.println("Wie schaffst du es eine " + ek + " zu bekommen?!");
  512. System.exit(0);
  513.  
  514. }
  515.  
  516. }
  517.  
  518. if(franzoesisch == true) {
  519.  
  520. xy++;
  521.  
  522. System.out.println("Franz\u00F6sisch");
  523. int frnzsch = Input.readInt();
  524.  
  525. abc = abc + frnzsch;
  526.  
  527. //Testausgabe
  528. // System.out.println("Anzahl der Fächer" + xy);
  529. // System.out.println("Noten zusammen" + abc);
  530.  
  531. if(frnzsch <= 0 || frnzsch >= 7) {
  532.  
  533. System.out.println();
  534. System.out.println("Wie schaffst du es eine " + frnzsch + " zu bekommen?!");
  535. System.exit(0);
  536.  
  537. }
  538.  
  539. }
  540.  
  541. if(geschichtepolitik == true) {
  542.  
  543. xy++;
  544.  
  545. System.out.println("Geschichte/Politik");
  546. int gp = Input.readInt();
  547.  
  548. abc = abc + gp;
  549.  
  550. //Testausgabe
  551. // System.out.println("Anzahl der Fächer" + xy);
  552. // System.out.println("Noten zusammen" + abc);
  553.  
  554. if(gp <= 0 || gp >= 7) {
  555.  
  556. System.out.println();
  557. System.out.println("Wie schaffst du es eine " + gp + " zu bekommen?!");
  558. System.exit(0);
  559.  
  560. }
  561.  
  562. }
  563.  
  564. if(hauswirtschaft == true) {
  565.  
  566. xy++;
  567.  
  568. System.out.println("Hauswirtschaft");
  569. int hswrtscht = Input.readInt();
  570.  
  571. abc = abc + hswrtscht;
  572.  
  573. //Testausgabe
  574. // System.out.println("Anzahl der Fächer" + xy);
  575. // System.out.println("Noten zusammen" + abc);
  576.  
  577. if(hswrtscht <= 0 || hswrtscht >= 7) {
  578.  
  579. System.out.println();
  580. System.out.println("Wie schaffst du es eine " + hswrtscht + " zu bekommen?!");
  581. System.exit(0);
  582.  
  583. }
  584.  
  585. }
  586.  
  587. if(informatik == true) {
  588.  
  589. xy++;
  590.  
  591. System.out.println("Informatik");
  592. int infmtk = Input.readInt();
  593.  
  594. abc = abc + infmtk;
  595.  
  596. //Testausgabe
  597. // System.out.println("Anzahl der Fächer" + xy);
  598. // System.out.println("Noten zusammen" + abc);
  599.  
  600. if(infmtk <= 0 || infmtk >= 7) {
  601.  
  602. System.out.println();
  603. System.out.println("Wie schaffst du es eine " + infmtk + " zu bekommen?!");
  604. System.exit(0);
  605.  
  606. }
  607.  
  608. }
  609.  
  610. if(kunst == true) {
  611.  
  612. xy++;
  613.  
  614. System.out.println("Kunst");
  615. int kst = Input.readInt();
  616.  
  617. abc = abc + kst;
  618.  
  619. //Testausgabe
  620. // System.out.println("Anzahl der Fächer" + xy);
  621. // System.out.println("Noten zusammen" + abc);
  622.  
  623. if(kst <= 0 || kst >= 7) {
  624.  
  625. System.out.println();
  626. System.out.println("Wie schaffst du es eine " + kst + " zu bekommen?!");
  627. System.exit(0);
  628.  
  629. }
  630.  
  631. }
  632.  
  633. if(mathe == true) {
  634.  
  635. xy++;
  636.  
  637. System.out.println("Mathe");
  638. int mth = Input.readInt();
  639.  
  640. abc = abc + mth;
  641.  
  642. //Testausgabe
  643. // System.out.println("Anzahl der Fächer" + xy);
  644. // System.out.println("Noten zusammen" + abc);
  645.  
  646. if(mth <= 0 || mth >= 7) {
  647.  
  648. System.out.println();
  649. System.out.println("Wie schaffst du es eine " + mth + " zu bekommen?!");
  650. System.exit(0);
  651.  
  652. }
  653.  
  654. }
  655.  
  656. if(physik == true) {
  657.  
  658. xy++;
  659.  
  660. System.out.println("Physik");
  661. int phsk = Input.readInt();
  662.  
  663. abc = abc + phsk;
  664.  
  665. //Testausgabe
  666. // System.out.println("Anzahl der Fächer" + xy);
  667. // System.out.println("Noten zusammen" + abc);
  668.  
  669. if(phsk <= 0 || phsk >= 7) {
  670.  
  671. System.out.println();
  672. System.out.println("Wie schaffst du es eine " + phsk + " zu bekommen?!");
  673. System.exit(0);
  674.  
  675. }
  676.  
  677. }
  678.  
  679. if(philosophie == true) {
  680.  
  681. xy++;
  682.  
  683. System.out.println("Philosophie");
  684. int phlsph = Input.readInt();
  685.  
  686. abc = abc + phlsph;
  687.  
  688. //Testausgabe
  689. // System.out.println("Anzahl der Fächer" + xy);
  690. // System.out.println("Noten zusammen" + abc);
  691.  
  692. if(phlsph <= 0 || phlsph >= 7) {
  693.  
  694. System.out.println();
  695. System.out.println("Wie schaffst du es eine " + phlsph + " zu bekommen?!");
  696. System.exit(0);
  697.  
  698. }
  699.  
  700. }
  701.  
  702. if(religion == true) {
  703.  
  704. xy++;
  705.  
  706. System.out.println("Religion");
  707. int rgn = Input.readInt();
  708.  
  709. abc = abc + rgn;
  710.  
  711. //Testausgabe
  712. // System.out.println("Anzahl der Fächer" + xy);
  713. // System.out.println("Noten zusammen" + abc);
  714.  
  715. if(rgn <= 0 || rgn >= 7) {
  716.  
  717. System.out.println();
  718. System.out.println("Wie schaffst du es eine " + rgn + " zu bekommen?!");
  719. System.exit(0);
  720.  
  721. }
  722.  
  723. }
  724.  
  725. if(sport == true) {
  726.  
  727. xy++;
  728.  
  729. System.out.println("Sport");
  730. int spt = Input.readInt();
  731.  
  732. abc = abc + spt;
  733.  
  734. //Testausgabe
  735. // System.out.println("Anzahl der Fächer" + xy);
  736. // System.out.println("Noten zusammen" + abc);
  737.  
  738. if(spt <= 0 || spt >= 7) {
  739.  
  740. System.out.println();
  741. System.out.println("Wie schaffst du es eine " + spt + " zu bekommen?!");
  742. System.exit(0);
  743.  
  744. }
  745.  
  746. }
  747.  
  748. if(technik == true) {
  749.  
  750. xy++;
  751.  
  752. System.out.println("Technik");
  753. int tch = Input.readInt();
  754.  
  755. abc = abc + tch;
  756.  
  757. //Testausgabe
  758. // System.out.println("Anzahl der Fächer" + xy);
  759. // System.out.println("Noten zusammen" + abc);
  760.  
  761. if(tch <= 0 || tch >= 7) {
  762.  
  763. System.out.println();
  764. System.out.println("Wie schaffst du es ein " + tch + " zu bekommen?!");
  765. System.exit(0);
  766.  
  767. }
  768.  
  769. }
  770.  
  771. if(textil == true) {
  772.  
  773. xy++;
  774.  
  775. System.out.println("Textil");
  776. int txtl = Input.readInt();
  777.  
  778. abc = abc + txtl;
  779.  
  780. //Testausgabe
  781. // System.out.println("Anzahl der Fächer" + xy);
  782. // System.out.println("Noten zusammen" + abc);
  783.  
  784. if(txtl <= 0 || txtl >= 7) {
  785.  
  786. System.out.println();
  787. System.out.println("Wie schaffst du es eine " + txtl + " zu bekommen?!");
  788. System.exit(0);
  789.  
  790. }
  791.  
  792. }
  793.  
  794. if(wirtschaft == true) {
  795.  
  796. xy++;
  797.  
  798. System.out.println("Wirtschaft");
  799. int wrtschft = Input.readInt();
  800.  
  801. abc = abc + wrtschft;
  802.  
  803. //Testausgabe
  804. // System.out.println("Anzahl der Fächer" + xy);
  805. // System.out.println("Noten zusammen" + abc);
  806.  
  807. if(wrtschft <= 0 || wrtschft >= 7) {
  808.  
  809. System.out.println();
  810. System.out.println("Wie schaffst du es eine " + wrtschft + " zu bekommen?!");
  811. System.exit(0);
  812.  
  813. }
  814.  
  815. }
  816.  
  817. Timer.wait(300);
  818. System.out.println();
  819. System.out.println("Dein Notendurchschnitt wird jetzt berechnet ...");
  820. Timer.wait(500);
  821.  
  822. double qq = abc / xy;
  823.  
  824. System.out.println("Dein Durchschnitt betr\u00E4gt " + qq);
  825.  
  826. }
  827.  
  828. }
  829.  
  830. }
  831.  
  832. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement