How to create code to display report card from user imput

Anonymous
2022-01-06T09:30:35.56+00:00

How do i create a code that will print out a report card like this;

Name; john smith
Student number: 1234567
Home Room: 222

Marks: Courses:
75 math
66 english
95 computers
55 french

student average: 70%

so that it takes all student input and displays it as well as calculating student average

very stuck

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,819 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Karen Payne MVP 35,401 Reputation points
    2022-01-06T20:08:21.14+00:00

    No matter the source of the data, first plan out the relationships using the following as a base (which of course does not match your exact requirements)

    You can then load data from models. When using a DataSet, setup relationships while with Entity Framework via database first models are created with the proper relations.

    From there query the data and format to suit your requirements.

    Use Average to get averages.

    This all may seem vague, it is but is a solid path to complete your task. If and when you get stuck come back and explain in detail (be very specific e.g. it doesn't work will not due) the problem and what you tried.

    We are not mind readers so be specific with questions and details.

    162900-school.png


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.