We need you!

We're working hard on the next version of Developer Fusion. Let us know what you think we should be up to!

Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

can you help me? about array..please help me asap

Last post 04-26-2008 10:31 AM by sukatoa. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 04-22-2008 8:41 AM

    • xaimei
    • Not Ranked
    • Joined on 03-08-2008
    • Philippines
    • New Member
    • Points 45

    can you help me? about array..please help me asap

    how will i do this one?? 

    every number  1 message box except the no.4 the message box in no. 4 must be like in my example

    1.accept student information
        *students name
        *course
    2.ask user how many subjects enrolled
    3.input subjects & corresponding grades
    4.check if     grades >=75---passed
                grades<75----failed
    if nos. of pass>failed---congratulations!!
    if nos. of pass<failed---sorry strive more!!!!
    if nos. of pass>failed---congratulations!!
    if nos. of pass==failed---keep moving!!

     

    the output must be this one

    example:

     xaimei fernando

    BSCS

    prog1 78 passed

    coarc 80 passed

     english 74 failed

     

    in no. 3 it depends on how many subjs. the user was inputed in no.2

    in no. 4 the program will check if you're grade was passed or failed 

    • Post Points: 10
  • 04-26-2008 10:31 AM In reply to

    • sukatoa
    • Not Ranked
    • Joined on 12-02-2007
    • Philippines
    • New Member
    • Points 25

    Re: can you help me? about array..please help me asap

    What have you done so far? Here is the incomplete code, [CODE]

    public void AnAssignment(){ System.out.print("Enter your name: "); String name = scan.nextLine(); System.out.print("Enter course: "); String course = scan.nextLine(); System.out.print("Enter # of subjects: "); int num = scan.nextInt(); System.out.println("\n\n"); int x = 0; while(x= 75) System.out.print("Passed "); else System.out.print("Failed "); System.out.print("\n\n"); x++; } }[CODE]

    You can manipulate it. hope it helps, sukatoa
    • Post Points: 5
Page 1 of 1 (2 items)