RE: SLC21 Week2 - Programming arrays

You are viewing a single comment's thread from:

SLC21 Week2 - Programming arrays

in slc21w2sergeyk •  3 months ago 
Task Comment Grade
1) Declare an array of any type: explain how to use an array, how to access array elements.Assign values ​​to some of its elements, and use those values ​​display) What are the advantages of an array over ordinary variables Good, but very concise 1.1/1.5
2) What is **the name** of the array? What will happen if you display this value on the screen? What does `cout<&lta+2;`that mean (cout<&lta-2;)? If `cout<&lta;` displays 4,000, then how much will it be`a+1?` This task is described in detail, which is good - it's a shame that the other tasks are not so detailed. 1.5/1.5
3) Can an array have two dimensions? ok 1/1
4) Write a random number in the variable k. `int k=(rand()%101) * (rand()%101) * (rand()%101)+500;` Try to solve the task of finding divisors from the last lesson more efficiently (so that the divisors are found faster) and write the results (not on the screen) but in an array. _Since the transfer of arrays to a function is not a simple topic - filling the array should not be done in the form of a function!!!_ There are very few explanations, I would say none at all. There are several non-obvious and interesting points in the problem, and you did not describe them. 0.7/2
5) Fill the array with 55 numbers with random numbers from 10 to 50. If there is a number 37 among the elements of the array, print it `yes`, and if there is no such number, print it `no` very briefly 0.7/1
6) Fill an array of 66 numbers with random numbers from 12 to 60. Replace even elements with 7 and odd elements with 77 It is better to display the array as a string, it is also worth showing the output data - to check the correctness 0.6/1
7) Fill the array of 77 numbers with random numbers from 102 to 707. Find the two largest numbers. But the phrase "the two largest numbers" can have many interpretations. Therefore, first explain well how this phrase was understood. And then solve the problem. It was necessary to display the generated array to control the solution. There are no explanations again. And in the problem I clearly asked you to indicate how you understand two identical ones. And from this understanding there will be different solutions. 1/2
Total: 6.6/10

The code is well written, but there are no explanations, very short, very concise. Only task 2 has good explanations.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Yes definitely I will take care of it for next time
Thanks a lot for verification