请问这道C++程序设计题怎么做?

如图 简答题 要怎么回答才能满分
2024-10-29 06:03:21
推荐回答(2个)
回答1:

int choose(int score[], int N, int below[]) { int sum = 0, i, number = 0; for (i = 0; i < N; i++) { sum = sum + score[i]; } for (i = 0; i < N; i++) { if (score[i] * N < sum) { below[number] = score[i]; number++; } } return number;}

回答2:

#include
#define a 10.2//定义a 的值为10.2
using namespace std;
int main()
{
float x,y;
cin>>x;
y=3*a*x*x+4*a*x-1;
cout< return 0;
}