Zum Inhalt springen

Lincoln6Alcatraz

Mitglieder
  • Gesamte Inhalte

    4
  • Benutzer seit

  • Letzter Besuch

  1. /** * Write a description of class Math here. * * @author (your name) * @version (a version number or a date) */ public class Math { // instance variables - replace the example below with your own private int c; double a; int t; /** * Constructor for objects of class Math */ public Math() { // initialise instance variables c = 40; a = 2.033 ; t = 12; } /** * An example of a method - replace this comment with your own * * @param y a sample parameter for a method * @return the sum of x and y */ public int sampleMethod(int c) { // put your code here return c*(a^t); } }
  2. Ich hab seit der 6. Klasse kein Informatik mehr, und in Mathe machen wir nix mit Java . Schule fängt bei mir am Do an. Ich mache das hier nur zum ersten Mal, und finde kein Tutorial oder so. Selbsterklärend ist das also leider nicht. Und ich hab kein Buch. Ich weiß gar nicht, was wovon was bedeutet! Und um einfach ein Gefühl zu kriegen, hatte ich auf ein Beispiel gehofft. Dachte, das wären 5 Zeilen oder so... Hab bisher das hier. Was fehlt? /** * Write a description of class Math here. * * @author (your name) * @version (a version number or a date) */ public class Math { // instance variables - replace the example below with your own private int c; int a; int t; /** * Constructor for objects of class Math */ public Math() { // initialise instance variables c = 40; a = 2.033 ; t = 12; } /** * An example of a method - replace this comment with your own * * @param y a sample parameter for a method * @return the sum of x and y */ public int sampleMethod(int a) { // put your code here return x + y; } }
  3. Ich arbeite mich gerade in BlueJ ein und brauche ein Beispiel für ein kurzes Programm, das die Funktion 40 x 2,033^12 ausrechnen kann. (Die Zahlen sind zufällig gewählt) Könnte vllt. jemand die Zeilen posten? Das wäre echt super. Danke schonmal, Lincoln

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...