Results 1 to 5 of 5
  1. #1
    ozgurkicirdar is offline Member
    Join Date
    May 2012
    Posts
    2
    Rep Power
    0

    Default Hi my java project is very important

    Help for java projects

    After entering the number of companies such as First, the company entered into two more months after the company's first girdkten us whether the first name of the company after the 2 of us After entering a monthly profit of the company's name, whether you appear again, then write the name of the annual average profit of the company, the maximum profit that month, at least 8%, according to bird by snow up to the month and a minimum tax, which taxes the company that prints the program name and the tax amount can you. Below I tried to write the output of the program
    =======
    Sirket Sayisini Giriniz-->>
    2
    1. sirketin adını giriniz-->> HP
    HP sirketin1 .ci aydaki kar miktarı :-->
    5
    HP sirketin2 .ci aydaki kar miktarı :-->
    6
    HP sirketin3 .ci aydaki kar miktarı :-->
    8
    HP sirketin4 .ci aydaki kar miktarı :-->
    9
    HP sirketin5 .ci aydaki kar miktarı :-->
    4
    HP sirketin6 .ci aydaki kar miktarı :-->
    5
    HP sirketin7 .ci aydaki kar miktarı :-->
    6
    HP sirketin8 .ci aydaki kar miktarı :-->
    7
    HP sirketin9 .ci aydaki kar miktarı :-->
    8
    HP sirketin10 .ci aydaki kar miktarı :-->
    9
    HP sirketin11 .ci aydaki kar miktarı :-->
    1
    HP sirketin12 .ci aydaki kar miktarı :-->
    0
    2. sirketin adını giriniz-->> LG
    LG sirketin1 .ci aydaki kar miktarı :-->
    5
    LG sirketin2 .ci aydaki kar miktarı :-->
    6
    LG sirketin3 .ci aydaki kar miktarı :-->
    12
    LG sirketin4 .ci aydaki kar miktarı :-->
    65
    LG sirketin5 .ci aydaki kar miktarı :-->
    987
    LG sirketin6 .ci aydaki kar miktarı :-->
    56
    LG sirketin7 .ci aydaki kar miktarı :-->
    23
    LG sirketin8 .ci aydaki kar miktarı :-->
    57
    LG sirketin9 .ci aydaki kar miktarı :-->
    12
    LG sirketin10 .ci aydaki kar miktarı :-->
    56
    LG sirketin11 .ci aydaki kar miktarı :-->
    12
    LG sirketin12 .ci aydaki kar miktarı :-->
    8
    HP sirketinin;
    Yıllık Ortalam Karı -->5.0
    en fazla kar ettiği ay 4
    en az kar ettiği ay 12
    LG sirketinin;
    Yıllık Ortalam Karı -->108.0
    en fazla kar ettiği ay 5
    en az kar ettiği ay 12
    En fazla vergi veren şirket-->> LG (vergi miktarı da yazacak)
    En az vergi veren sirket-->> HP (vergi miktarı da yazacak)
    ================================================== ==
    import java.util.Scanner;
    public class SirketKar {

    public static void main(String[] args) {

    int i=0;
    int j=0;
    Scanner klavye=new Scanner(System.in);
    System.out.print("Sirket Sayisini Giriniz-->>");
    int sirketsayisi=klavye.nextInt();
    int dizim [][] = new int[sirketsayisi][12];
    // Sirket Sayisi Büyüklüğügünde ve 12 ay oldugu için 12 elmanlı bir dizi
    for(i=0; i<dizim.length; i++)

    for(j=0; j<12; j++)
    {
    System.out.print((i+1) + " . sirketin" + (j+1) +" .ci aydaki kar miktarı :-->");
    dizim[i][j]=klavye.nextInt();
    }
    // Şimdi Her Şirketin Ortalamasını Bulalım
    float[] ortalama = new float[12]; // Her Sirket İçin Ortalama Tutacaz
    int toplam=0;
    for(i=0; i<dizim.length; i++)
    {
    for(j=0; j<12; j++)
    {
    toplam+=dizim[i][j];

    }
    ortalama[i]=toplam/12;
    System.out.println((i+1) +".ci sirketin Yıllık Ortalam Karı -->" +ortalama[i]);
    toplam=0; // Toplamı bir daha sıfırlıyoruz cunku diger sirketin ortalmasıyla karısmamalı
    }
    // Her Şirketin En Fazla Kar Ettiği Ayların Bulalım

    int max=0;
    int maxay=0;
    for(i=0; i<dizim.length; i++)
    {
    for(j=0; j<12; j++)
    {
    if(dizim[i][j]>max)
    {
    max=dizim[i][j];
    maxay=j;
    }

    }
    System.out.println((i+1)+ ".ci sirketin en fazla kar ettiği ay " +(maxay+1) );
    maxay=0;
    // maxay+1 dememizin sebebi dizmizin ilk elemanı olacak olan Ocak ayının dizide sıfırıncı
    //indise denk gelmesi. Eğer +1 yapmasak ocak 0. ay olarak gözükecektir.
    }

    // Şimdi Her Şirketin En Az Kar Ettiği Ayı bulalım

    int min=0;
    int minay=0;
    for(i=0; i<dizim.length; i++)
    {
    for(j=0; j<12; j++)
    {
    if(dizim[i][j]<=min)
    {
    min=dizim[i][j];
    minay=j;
    }

    }
    System.out.println((i+1)+ ".ci sirketin en az kar ettiği ay " +(minay+1) );
    maxay=0;
    // maxay+1 dememizin sebebi dizmizin ilk elemanı olacak olan Ocak ayının dizide sıfırıncı
    //indise denk gelmesi. Eğer +1 yapmasak ocak 0. ay olarak gözükecektir.
    }

    }


    }

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: Hi my java project is very important

    OK, what you've done so far is tell us that your homework is very important, and then you've dumped your assignment and some code in here without actually asking a question. If you truly need our help, then 1) please summarize your problem in your question title, not "my question is very important" since that tells us nothing useful, but rather a summary of what your question actually is, and then in your post, please actually ask an answerable question.

  3. #3
    ozgurkicirdar is offline Member
    Join Date
    May 2012
    Posts
    2
    Rep Power
    0

    Default Re: Hi my java project is very important

    I'm sorry I can tell you the following way. We are entering this program, the two companies. After entering the name of the company than the first, and then enter the name of the second company. profits until the first month on the second month of the first companies to be entered. the same for the second company are being processed. Then write the name of the annual average profit of the company, the more profit the month shows that the least profitable months. giving the name of the company more than ten percent tax and octal. program, which gives its name to the company's least profitable

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: Hi my java project is very important

    OK, but you're still posting nothing but requirements without asking any questions, and of course, no one is going to do this for you. Having said that, I'll also say that we'll be more than glad to help you, but you still need to show what you've done so far, and then ask *as specific a question or questions as possible*. If your question is "I'm totally lost", then please have a look at Patricia Shanahan's wonderful page, So, You Need to Write a Program but Don't Know How to Start.

    Best of luck.

  5. #5
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,234
    Rep Power
    19

    Default Re: Hi my java project is very important

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. What exactly is networking and why is it important?
    By ricardodav in forum Networking
    Replies: 2
    Last Post: 11-23-2010, 02:55 PM
  2. pleaze an important requst
    By mash800 in forum NetBeans
    Replies: 1
    Last Post: 03-17-2010, 12:46 AM
  3. [SOLVED] something important i want to know
    By pheonix in forum New To Java
    Replies: 5
    Last Post: 04-11-2008, 06:44 PM
  4. IMPORTANT: Applet Problem Please Help!
    By nvidia in forum Java Applets
    Replies: 1
    Last Post: 01-22-2008, 02:25 AM
  5. Important : Referer Problem
    By berkdulger in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 07-17-2007, 01:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •