Develop a c# console application

Assignment Help Basic Computer Science
Reference no: EM13488388

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

Reference no: EM13488388

Questions Cloud

Explain the significance of the source of employment : Comment on the proposals as submitted by the HKICPA and evaluate whether they are desirable or undesirable in terms of the ideal objectives and characteristics of a good tax system.
What is the speed of the capsule relative to the ship : If a spaceship is approaching the earth at 0.18c and a message capsule is sent toward it at 0.46c relative to the earth, what is the speed of the capsule relative to the ship
How many bits in the instruction are used : How many bits in the instruction are used for the opcode?
How long do they live as viewed in the laboratory : Particles called ?-mesons are created by accelerator beams. If these particles travel at 2.80 ? 108 m/s and live 2.60 ? 10-8 s, how long do they live as viewed in the laboratory
Develop a c# console application : 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.
What is the mass of the system after the collision : A lump of putty with a mass of 0.210 kg and a speed of 0.830 c collides head-on, What is the mass of the system after the collision
Estimate the width of the central maximum : Light of wavelength 700 nm falls on a 0.47 mm wide slit and forms a diffraction pattern on a screen 1.3 m away. Find the width of the central maximum
Analyze the corrective actions taken by bcbst : Analyze the corrective actions taken by BCBST that were efficient and those that were not adequate.
The most frequent cause of it implementation failures : An evaluation of what you think is the most frequent cause of IT implementation failures. Justify your answer. Explain how change in management can help solve software implementation failures.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Distinguish online learning with classroom learning

Write the exploratory essay in which you distinguish online learning with classroom (on-ground) learning. Your estimation may incorporate preparation time.

  The text files boynames.txt

The text files boynames.txt and girlnames.txt contain a list of the 1,000 most popular boy and girl names in the U.S. for the year 2003 as compiled by the Social Security Administration.

  Generate profits often referred to as creating

When the output of some units can be used as inputs to othe units, or if two organizations pools markets and expertise that results in lower costs and generate profits it is often referred to as creating?

  How the organisation has used is-it to address

how the organisation has used IS/IT to address and service its' market, not just on the products it provides.

  Describe operational-tactical and strategic reporting

Describe operational, tactical and strategic reporting. How do requirements drive reporting system inputs requirements and write down the ramifications of ignoring user requirements.

  Calculates how many km had went a man

Write a program that calculates how many km had went a man and how far he was from the initial point .

  Function that uses a switch statement

To locate nearest numbered cross street for a given avenue address, the following algorithm can be used: cancel last diget of the address, divide by two,

  Write a regular expression defining strings

1.Write a regular expression defining strings that begin with an a and end with a b and can contain any number (including zero) of c's or d's in the middle. Every c that is in the string must be followed by at least one d.

  Involved in implementing a database for the restaurant

Draw a conceptual ER diagram in Information Engineering format as discussed in the course that  describes the following aspects involved in implementing a database for the restaurant.

  Create a simple program that manipulates vectors

Create a simple program that manipulates vectors as follows.

  Write the c statements that will cause all to be output

Write the C statements that will cause all 1's to be output on the upper four bits of Port H, and inverts the states of the lower four bits. Assume that all Port H pins are already configured as outputs.

  Compare time complexity of convolution with kernel

Compare the time complexity of convolution with a n x n kernel when using: direct convolution with the 2-D mask, and separable kernel.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd