Develop a c console application that implements two int


I need help with the following C# programming assignment:

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.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Develop a c console application that implements two int
Reference No:- TGS02651594

Now Priced at $20 (50% Discount)

Recommended (92%)

Rated (4.4/5)