There are 3 people, 4 courses, and the programming is required to implement the input grade, which

Updated on technology 2024-05-23
7 answers
  1. Anonymous users2024-02-11

    Why are your loops written like this? for (i=1;i<3;i++)i, j, etc. should be 0, should be for (i=0; i<3;i++)for (j=0;j<4;j++) because the count of the array starts from 0, and your loop is missing curly braces, conditional statements are missing parentheses, and there are more semicolons, in short, there are a lot of small problems, and the basic knowledge needs to be strengthened, and the program should be:

    #include

    int ever (int ary [3][4])int i,j,b[3],n=0;

    for (i=0;i<3;i++)

    b[i]=0;

    for (j=0;j<4;j++)

    b[i]+=ary[i][j];

    n++;if(n==4)

    b[i]=b[i]/n;

    n=0;for (i=0;i<3;i++)printf ("%d",b[i]);

    void main ()

    int a[3][4]=,,}

    ever (a);

    Running normally.

  2. Anonymous users2024-02-10

    Oh, my God! O depraved college students! The cup of education. Can you also use your brain a little, it's so simple!!

  3. Anonymous users2024-02-09

    This can be done directly with Excel! You can learn how to operate excel.

  4. Anonymous users2024-02-08

    Example: Using an object-oriented approach, enter grades for three courses and find the total and average scores.

  5. Anonymous users2024-02-07

    The details are as follows:

    The data is selected as float, and the specific display and test results are as above!

  6. Anonymous users2024-02-06

    The procedure is as follows:

    Direct compilation, arbitrary input in the program output result.

    Enter 4 digits, and the program execution result is shown in the following figure:

    1.Every program must include the main() function, although there are no restrictions on function naming in C.

    2.The printf function will never wrap the word and can only be used to implement it, and the line wrap made by the enter key will give an error message in the compilation.

    3.Compiled in vs2008. The test needs to be added with system("pause");to pause the Dos auto-exit causing printf to fail to display.

    4.All custom variables must be declared before they can be used.

  7. Anonymous users2024-02-05

    ** There are 30 students, and the data of each student includes student number, name, mathematics, English, computer 3 course grades and total score.

    Ask to write a C program that completes the following tasks:

    1.Enter the data information of 30 students from the keyboard, calculate the total score of each student's 3 courses, and output the student number, name, 3 course grades and total score of each student according to the total score.

    2.Count the highest and lowest scores of each lesson, and output the data information of the corresponding students.

    3.The number of students who passed and failed each class is counted, and the corresponding students' data information is output.

    #include

    #define n 30

    struct student

    struct student stu[n];

    void print_student(struct student user)

    int main()

    int sort[n];

    int ss[3][n];

    for(i=0; i= 60)

    printf("%s Number of Passing Students (%d):", score[k], j);

    for(i=0; i

    That's it.

Related questions
7 answers2024-05-23

Is the router used at school the same as at home? Different routers have different qualities. If it's a cat at home, it's not as good as a router for school. >>>More

7 answers2024-05-23

1. A sole proprietorship enterprise shall meet the following conditions: >>>More

41 answers2024-05-23

I cut it and was stolen to change the concept. 25 yuan in the boss's hand, three yuan in the hands of the three people, and two yuan in the waiter's hand. Nine yuan and two yuan are not in the same system.

19 answers2024-05-23

In this question, let's first look at "3 left in the average score of 7 people, and 2 left in 8 people", we can see that if there is no remainder, if we want to find out the number of numbers where the product of 7 is less than the product of 8 and the product "1", we use the enumeration method to be more intuitive: >>>More

4 answers2024-05-23

3-day route: Day 1 Go to Sentosa to visit Vientiane Singapore, Underwater World, Dolphin Land, Merlion Tower and other attractions, then watch the Song of the Sea (** Fountain) and then return to the hotel, on the way back to the hotel, stop by Chinatown China Town for dinner (local food) and visit the night market. >>>More