```cpp
看好要求的格式,不要忘了加换行符号!!!
include[HTML_REMOVED]
include[HTML_REMOVED]
using namespace std;
int main(){
double n1,n2,n3,n4,x,y,z;
cin>>n1>>n2>>n3>>n4;
x=(2n1+3n2+4*n3+n4)/10.0;
printf(“Media: %.1lf\n”,x);
if(x>=7.0){
printf(“Aluno aprovado.”);
}
else if(x<5.0){
printf(“Aluno reprovado.”);
}
else{
printf(“Aluno em exame.\n”);
cin>>y;
printf(“Nota do exame: %.1lf\n”,y);
z=(x+y)/2.0;
if(z>=5.0){
printf(“Aluno aprovado.\nMedia final: %.1lf\n”,z);
}
else{
printf(“Aluno reprovado.\nMedia final: %.1lf\n”,z);
}
}
return 0;
}