Programm – die neusten Beiträge

wie berechne ich das Produkt eines Arrays?

Ich habe echt alle jetzt hinbekommen aber jetzt fehlt mir das Produkt ich wollte das so machen

int produkt = 0;

produkt *= Array[i]; system.out... (produkt);

aber da kommt immer ein Fehler in der console undzwar :** Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2 at Array.main(Array.java:36) 0**

hier erstmal mein Code import java.util.Scanner;

public class Array {

public static void main(String[] args)
{
    // TODO Auto-generated method stub
    {
        Scanner input=new Scanner(System.in);
        int summe=0;
       

        System.out.print("Wie groß soll das Array sein?");
        int Arraygroeße=input.nextInt();

        int Array[]=new int[Arraygroeße]; // erstellt ein Array mit der
                                          // Größe
                                          // die man eingibt

        int i;
        for (i=0; i<Array.length; i++)
        {
            System.out.print("Feldwert an Stelle "+i+" eingeben: ");
            Array[i]=input.nextInt(); // soll den Wert einlesen den der
                                      // Nutzer
                                      // haben möchte bis das ganze Array
                                      // ausgefüllt ist
        }

        for (i=0; i<Array.length; i++)



            summe+=Array[i];
        System.out.println("Die Summe ist :"+summe);

        int max=Array[0];
        for (i=0; i<Array.length; i++)
            if (max<Array[i])
                max=Array[i];

        System.out.println("Größter Wert des Arrays ist "+max);

        int min=Array[0];
        for (i=0; i<Array.length; i++)
            if (min>Array[i])
                min=Array[i];

        System.out.println("Kleiner Wert des Array ist "+min);

        double mittel=0; // Mittelwert auf 0 setzen
        mittel=summe/Array.length; // Mittelwert berechnen durch Summe
                                   // geteielt durch die Anzahl der Zahlen
                                   // im Array
        System.out.println("Der Mittelwert beträgt:  "+mittel);
        
       
        input.close();

    }
  }
}

kann mir jemand bitte helfen wie ich das Produkt berechnen kann ? ( Java)

PC, Computer, Programm, programmieren, Java, Praktikum

Gerade seltsame E-Mail bekommen brauche dringend hilfe?

Ich habe gerade eine seltsame E-Mail bekommen auf Englisch im Titel war Hello Dear Ich habe eine Yahoo E-Mail In der E-Mail Stand dann das hier:

Hello Dear,

Please I want you to exercise some patience reading through this mail enable you have good understanding, meanwhile I will appreciate you to ignore and delete this mail from your mail box if you are not interested beeing my partner for the investment project in your country, meanwhile I got your email contact from Google from people chamber of commerce while I was searching for a reliable and honest person that will partner with me for the investment project to whose ever it may concern country.

Please permit me to introduce myself My names are Aisha Gaddafi, 37, years the only biological daughter of late Libya president Gaddafi, I want to use this opportunity to inform you that I need a very honest and reliable person that can help me look for a profitable business/ company to invest into there in your country then you let me know while and provide account where I can transfer the sum of$27.200.000.00 us d for the investment in your country Note you will have 30% of the total funds after the transfer of the funds to your account while I will further the process of the investment with remaining balance Please I will like to hear from you about the nature of the business to invest the money with and your experience, even if you are not interested in the business if you can assure me that my funds will be save once it is transferred into your account then you will still have the 30% of the total funds the sum $27.200.000.00 dollars About me.

The Gulf state has apparently turned a blind eye to the controversial pasts of family members wanted back home for squandering the wealth and privilege we enjoyed during the reign of my late father Colonel Gaddafi, who was deposed and killed in 2011 This is why I travel down to this country Burkina Faso where I deposited the $27.200.000.00 us dollars looking for a trust worthy and honest person that have a very good experience in any good business where I can invest the funds that will turns good profit enable me to carry on with my life and my 3 kids I will be waiting to hear from you with good positive respond urgently concerning this issue enable us to proceed further without any delay it is not good to continue suffering with my kids as a widow

Yours faithfully

Aisha Gaddafi

Jetzt meine Frage was ist das für eine E-Mail und habe ich jetzt einen Virus oder so was ich habe angst was jetzt mit meinem Laptop passiert ich habe ein Acer Aspiere E 17 mit Windows 8.1

Als Antivirusprogramm habe ich AVG Pro und also auch E-Mail Schutz

Und die E-Mail habe ich in Thunderbird geöffnet

Was ist das für eine E-Mail ???

PC, Computer, Internet, Gefahr, Windows, Technik, Virus, Programm

Welche Anforderungen sollte ein PC erfüllen, damit ich im Bereich 3D-Modelling, Animation, Redering etc problemlos arbeiten kann?

Hallo Community!

Da mein alter PC so allmählich komplett den Geist aufgegeben hat, muss ich mir einen neuen anschaffen. Da ich jemand bin, der seinen Kram gerne im Laden kauft und ich die Preise gerne vergleichen würde bei verschiedenen Fachgeschäften würde ich gerne einmal von den ein oder anderen Kennern wissen, welche Anforderungen ein Pc haben sollte, mit dem ich:

Im Bereich 3D-Modelling, Animation, Redering etc problemlos arbeiten kann (professionell)

Im Bereich Audio-/Sounddesign und editing (Cutten, Direkt Aufnehmen/Einsprechen, Rendern) problemlos arbeiten kann (professionell)

Arbeite zwar mit Software professionell, habe aber außerhalb der Programme nich wirklich viel Ahnung von Systemanforderungen ^^

Würde mir außerdem gerne ein Kabel anschaffen, mit dem man beide PC an einen Bildschirm anschließen kann und somit switchen kann, welchen PC man verwenden möchte, ohne jedes mal alles umstecken zu müssen.

Un wie sieht es aus mit Windows 10, ich gehe davon aus, dass das Betriebsystem vorinstalliert ist, wieweit stimmen die Gerüchte über die Kontrolle seitens Microsoft über benutzte Programme auf dem PC (angenommen zb Versionen eines Programmes von Freunden?)

Was mich auch interessieren würde ist in welcher Preisklasse man sich da bewet bzw. wie viel man ausgeben sollte oder wie viel angebracht wäre im Bezug auf Preis-Leistung.

Btw, wollte den PC nich selbst zusammenbauen, sondern schon fertig haben ^^

Wäre um jeden Rat dankbar (HA)

Danke im Vorraus, Liebe Grüße

PC, Computer, Windows, Microsoft, Programm, 3D, System, Sound, Systemanforderungen

Meistgelesene Beiträge zum Thema Programm