Answer: What grade work is this i would really like to know?
Explanation:
c language.
I have to display the highest average amongst 10 students + if there are 2+ students who both have the max average I need to display them both. How can I do that?
Answer:
The program in C is as follows:
#include <stdio.h>
int main(){
int scores[10];
for(int i = 0; i<10;i++){
scanf("%d", &scores[i]); }
int max = scores[0];
for(int i = 0; i<10;i++){
if(max<scores[i]){
max = scores[i]; } }
for(int i = 0; i<10;i++){
if(max==scores[i]){
printf("%d ", scores[i]);
} }
return 0;
}
Explanation:
This declares the average scores as an integer array
int scores[10];
The following iteration gets the average score for each student
for(int i = 0; i<10;i++){
scanf("%d", &scores[i]); }
This initializes the maximum to the first index
int max = scores[0];
This iterates through the 10 elements of the array
for(int i = 0; i<10;i++){
This makes comparison to get the maximum
if(max<scores[i]){
max = scores[i]; } }
This iterates through the 10 elements of the array
for(int i = 0; i<10;i++){
This prints all maximum in the array
if(max==scores[i]){
printf("%d ", scores[i]);
} }
return 0;
}
Type the correct answer in the box. Spell all words correctly.
To which type of domain does information on wikis belong?
The information on wikis belongs to the
domain.
Answer:
.cc type of Domain
Explanation:
:)
Answer:
The information on wikis belongs to the public domain.
Explanation:
tutorials on edmentum