2023 Develop a C console application that implements two int arrays One array will hold 10 randomly generated integer numbers the | Assignment Collections
Computer Science 2023 Develop A C# Console Application That Implements Two Int Arrays. One Array Will Hold 10 Randomly Generated
2023 Develop a C console application that implements two int arrays One array will hold 10 randomly generated integer numbers the | Assignment Collections
Develop a C# console application that implements two int arrays. One array will hold 10 randomly generated integer numbers, the second array will hold 10 integer numbers entered from the console.
Implement 2 ‘for’ loops, the first to fill the array using the Random class to generate 10 random integers between 1 and 100 (see p241, section 7.9) and a second ‘for’ loop that will fill the second array with input entries between 1 and 100 taken from the console.
Implement a third ‘for’ loop to iterate through both arrays and perform the following comparisons of the corresponding (identical subscripts) array entries:
if the entered array value is less than the corresponding random array value then print “The entered number XX is less than YY”, otherwise
if the entered array value is greater than the corresponding random array value then print “The entered number XX is greater than YY” otherwise
print “The entered number XX is equal to YY”
Use the array length variable to stay within the array bounds for all three loops.
Possible output might look like this:
Enter an integer number between 1 and 100: 1
Enter an integer number between 1 and 100: 8
Enter an integer number between 1 and 100: 44
Enter an integer number between 1 and 100: 22
Enter an integer number between 1 and 100: 16
Enter an integer number between 1 and 100: 88
Enter an integer number between 1 and 100: 41
Enter an integer number between 1 and 100: 77
Enter an integer number between 1 and 100: 10
Enter an integer number between 1 and 100: 52
The entered number 1 is less than 64
The entered number 8 is less than 44
The entered number 44 is less than 80
The entered number 22 is less than 91
The entered number 16 is less than 95
The entered number 88 is greater than 39
The entered number 41 is less than 79
The entered number 77 is greater than 27
The entered number 10 is less than 35
The entered number 52 is less than 65
We give our students 100% satisfaction with their assignments, which is one of the most important reasons students prefer us to other helpers. Our professional group and planners have more than ten years of rich experience. The only reason is that we have successfully helped more than 100000 students with their assignments on our inception days. Our expert group has more than 2200 professionals in different topics, and that is not all; we get more than 300 jobs every day more than 90% of the assignment get the conversion for payment.