假设有40个学生被邀请来给餐厅的饮食和服务质量打分,分数划分为1~10这10个等级(1表示最低分,10表示最高分),编程统计并按如下格式输出餐饮服务质量调查结果。按要求在空白处填写适当的表达式或语句,使程序完整并符合题目要求。
" title="假设有40个学生被邀请来给餐厅的饮食和服务质量打分,分数划分为1~10这10个等级(1表示最低分,10表示最高分),编程统计并按如下格式输出餐饮服务质量调查结果。按要求在空白处填写适当的表达式或语句,使程序完整并符合题目要求。#include 
#define  M  40
#define  N  11
int main()
{
    int  i, j, grade, feedback[M], count[N] = {0};
    printf("Input the feedbacks of 40 students:\n");
    
    for (i=0; i<M; i++)
    {
        scanf("%d", &feedback[i]);
    }
    
    for (i=0; i<M; i++)
    {
        _____________;
    }
    printf("Feedback\tCount\tHistogram\n");
    for (_________; grade<=N-1; grade++)
    { 
        printf("%8d\t%5d\t", grade, count[grade]);
        for (j=0; ___________; j++)
        {
            printf("%c",'*');
        }
        printf("\n");
    }
    return 0;
}" />#include 
#define  M  40
#define  N  11
int main()
{
    int  i, j, grade, feedback[M], count[N] = {0};
    printf("Input the feedbacks of 40 students:\n");
    
    for (i=0; i<M; i++)
    {
        scanf("%d", &feedback[i]);
    }
    
    for (i=0; i<M; i++)
    {
        _____________;
    }
printf("Feedback\tCount\tHistogram\n");
    for (_________; grade<=N-1; grade++)
    { 
        printf("%8d\t%5d\t", grade, count[grade]);
        for (j=0; ___________; j++)
        {
            printf("%c",'*');
        }
        printf("\n");
    }
    return 0;
}
A、第16行:    count[feedback[i]]++第21行:    grade=1第24行:    j<count[grade]
B、第16行:    feedback[i]++第21行:    grade=1第24行:    j<N-1
C、第16行:    count[i]++第21行:    grade=0第24行:    j<N-1
D、第16行:    count[feedback[i]]++第21行:    grade=0第24行:    j<grade
喵查答案:第16行:    count[feedback[i]]++第21行:    grade=1第24行:    j<count[grade]