Let s take a look at a C program that enters 10 students and 5 grades, and uses functions to achieve

Updated on technology 2024-03-12
7 answers
  1. Anonymous users2024-02-06

    I'll fix it, friend, I don't want to divide it, hehe.

    r=0; c=1;It is to assign an initial value to r and c.

    h=highest(&r,&c);It is called float highest(r,c) to find the maximum value, the parameters are r,c, the address of these two things, and the specific content of the function you can take a look at, mainly the use of the for statement, and then if a student's score is larger than the initial default value, the maximum value will be replaced, and the position of r,c will always stay in the position with the largest score. Therefore, after the function is called, the output can get the maximum score, the first number of students, and the first number of grades.

    r=i+1;

    c=j+1;

    After judging by the if statement, if a new maximum value is generated, the original number of students and the first grades will be replaced.

    That's right, your float highest(r,c) int *r,*c;

    Why don't you write float highest(int *pr, int *pc); It is best to use the same thing as the actual ginseng to make it easy to distinguish.

  2. Anonymous users2024-02-05

    There is no reward, and the requirements are so high.

  3. Anonymous users2024-02-04

    The main body is grades, which are divided into 5 subjects, and each subject has 30 values.

    a[30], b[30], c[30], d[30], e[30], how many failed grades are in the summary of each traversal;

    It would be nice to get the maximum of 5 values;

  4. Anonymous users2024-02-03

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

  5. Anonymous users2024-02-02

    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-01

    As follows

    #include

    #include

    int main()

    else if(x <= 10)

    elseprintf("%f",result);

    return 0;

    Expand your information:

    C DAO calculates the simple algebra code of the special value of the piecewise function

    #include

    #include

    int main()

  7. Anonymous users2024-01-31

    As follows: copy:

    #include

    #include

    intmain()

    elseif(x

    10)else

    printf("%f",result);

    return0;}

    Extended information: Simple **:

    #include

    #include

    intmain()

Related questions
8 answers2024-03-12

You can use the "Interval Statistics" function. In the **figure, move the cursor to 2319 points**, hold the right button, and then pull the cursor to aim at 3186 points**, a rectangular box will be pulled, as soon as you let go, it will prompt you "interval statistics", click on it, and the result will pop up, not only telling you that there are 87 numbers in this range, but also a lot of information. If the time span is used, it should be reduced by one, that is, 86 trading days have passed. >>>More

10 answers2024-03-12

Here's a C implementation that assigns an array a[10] to p[n]: >>>More

17 answers2024-03-12

Family education directly determines a child's future development. Every child is born with a blank slate, and how they spend their lives is mostly related to the education of their parents, who will change themselves according to their parents' living habits, and when they grow up, they will judge the right and wrong of things and change themselves. <> >>>More

10 answers2024-03-12

LZ read your message above, and I can be sure that A will definitely not marry you. Although you love him very much. But I have to advise you to give up, you know? >>>More