Computers and Technology

Considere o seguinte programa escrito em linguagem c: int main(){ float notas[10][4]; float media, soma; for (i=0; i< 10; i++){ printf("aluno %d: ",i+1); for (j=0; j< 4; j++){ printf("entre com a nota: "); scanf("%f",& notas[i][j]); } printf("\n"); } for (i=0; i< 10; i++){ soma = 0; for (j=0; j< 4; j++) soma = soma + notas[i][j]; media = soma/4; printf("a media do aluno %d foi: %.2f", i+1, media); } system("pause"); return 0; } sobre este programa, analise as seguintes sentenças: i. em resumo, o programa l? e armazena 4 notas de 10 alunos e em seguida calcula e apresenta a média destas notas para cada aluno. ii. o programa faz uso de uma matriz, que é do tipo de dado float, tem o nome notas e foi declarado que ela possui 2 dimens? es. iii. a instruç? o que corresponde a declaraç? o da matriz é "float media, soma; ". iv. na matriz utilizada, as linhas representam os alunos e as colunas representam as notas.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 06:00, dkargbo6034
Write a function that draws a pool ball. this function should take as parameters, the color, the number that should go on the pool ball, and the location of the center of the pool ball. the radius of the pool balls should be pool_ball_radius, and the font of the number should be pool_ball_font. the text of the pool ball font should be white. drawpoolball(color. orange, 5, 100, 100); drawpoolball(color. green, 6, 50, 200); drawpoolball(color. red, 3, 150, 350); drawpoolball(color. blue, 2, 250, 140); to center the numbers on the pool ball, you should use the getwidth() and getheight() methods. you are allowed to call these methods on your text object, such as txt.
Answers: 3
image
Computers and Technology, 22.06.2019 19:20, bob4059
1)consider the following code snippet: #ifndef book_h#define book_hconst double max_cost = 1000.0; class book{public: book(); book(double new_cost); void set_cost(double new_cost); double get_cost() const; private: double cost; }; double calculate_terms(book bk); #endifwhich of the following is correct? a)the header file is correct as given. b)the definition of max_cost should be removed since header files should not contain constants. c)the definition of book should be removed since header files should not contain class definitions. d)the body of the calculate_terms function should be added to the header file.
Answers: 1
image
Computers and Technology, 23.06.2019 21:20, nicki76
In microsoft word, when you highlight existing text you want to replace, you're in              a.  advanced mode.    b.  automatic mode.    c.  basic mode.    d.  typeover mode
Answers: 1
image
Computers and Technology, 24.06.2019 10:00, lashaunahard
Each time you save a document, you will need to type in the file type in which it should be saved you can select the save button to save it with the same file name if it has been previously saved you will need to select the location to save the file you will need to use the save as dialog box
Answers: 1
Do you know the correct answer?
Considere o seguinte programa escrito em linguagem c: int main(){ float notas[10][4]; float media,...

Questions in other subjects:

Konu
Mathematics, 24.03.2020 17:01