주 콘텐츠로 건너뛰기

 locked
Arrays from C# programming RRS feed

  • 질문

  • Write a C# program that ask the user for the number of Students in the Class. When the User Enters the number of students, the Program should request for the Names of the Students and Capture them into an Array. The Program should then Request for the Exams Marks for at least 3 Course for Each student. The Program should display the Result of each Student as Shown below.

    Student Name: Samuel Badu

    Course Title                              Marks      Grade          CHrs          WA

    Object Oriented of Prog.          78            A                 3                234

    Computer Hardware                 87           A                 3                261

    Environmental Studies              65           B                 3                195

    CWA : 76.66

    NB: WA = Marks * CHrs

    CWA = Sum of WA / Sum of CHrs

    𝑪𝑾𝑨 = ∑𝑾𝑨 / ∑ 𝑪𝑯𝒓s

    2020년 7월 20일 월요일 오후 12:22

모든 응답

  • Hi Brewmowl,
    Based on your description, what problem did you encounter?
    If possible, could you provide the relevant code?
    And I have a suggestion you can refer to.
    First, you can store the data in a table of database. 
    Then you can query the total number in the table.
    Next, you can query by the student’s name and store the query results in an array.
    Best Regards,
    Daniel Zhang


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    2020년 7월 21일 화요일 오전 6:53
  • Most people that try to help others are reluctant to write an entire program, especially when it is a class assignment. If you have a specific question that you have tried to solve then you are much more likely to get help.


    Sam Hobbs
    SimpleSamples.Info

    2020년 8월 2일 일요일 오후 6:51