1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

please i need your help

Discussion in 'C#' started by OM MAJED, Nov 12, 2010.

  1. OM MAJED

    OM MAJED New Member

    Joined:
    Nov 12, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Given the following two arrays with their initializations:
    AnsiString StudentName[5]={“Aliâ€, “Ranaâ€, “Samiâ€, “Hudaâ€, “Ramiâ€};
    int StudentMark[5]={80,76, 85, 92, 67};
    Write a C++ program to accomplish the followings (all in one program):
    a. declare a structure of two variables: StudentName and StudentMark of type string and integer respectively and then define an object of 5 records.
    b. copy all data of each array to its corresponding variable name of the defined records such that (“Ali†and 80) represents the first record and so on for the rest of data.
    c. using the declared structure, count and print number of PASS students if you know that the passing mark is 50.
    d. again, use the declared structure to find and print the maximum two marks (use a nested loops for this)
     
  2. servalsoft

    servalsoft New Member

    Joined:
    Apr 17, 2010
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
    1/ This is c sharp section
    2/ If you do not show any substantial attempt I doubt anyone would help since I really dont think anyone is prepared to do your homework for you.
     
  3. techgeek.in

    techgeek.in New Member

    Joined:
    Dec 20, 2009
    Messages:
    572
    Likes Received:
    17
    Trophy Points:
    0
    Occupation:
    EOC (exploitation of computers)..i m a Terminator.
    Location:
    Not an alien!! for sure
    Home Page:

Share This Page