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

  Design modular program asks how many tickets each class

There are three seating categories at a stadium

  How has the progression of communication technology

How has the progression of communication technology affected the business environment?

  Simplify the functional expressions using boolean algebra

The Apostrophes represent a line over the letter that it is after. The last set of parenthesis has a line over it as well as the x and y in them.

  Test pseudocode by creating test plans and desk checks

Write down pseudocode for main menu. Write pseudocode for options, only code to navigate menu is required. Sketch flowchart for a main menu.

  Describe the effect of an organization strategic planning

Describe the effect of an organization's strategic planning on the IT systems it uses. Address how strategic planning simplifies and complicates IT system development and use. This only has to be 200 words.

  Code scheme to meet marketing managers requirements

Design a code scheme that will meet the marketing managers stated requirements.

  What software must be considered to provide adequate

Based on the Vosevich (2012) article, what software must be considered to provide adequate security and risk management across the enterprise?

  Tradeoffs involved to improve overall system performance

What are your thoughts on the tradeoffs involved when attempting to improve overall system performance. Provide examples where an increase in the performance of one resource.

  Kinds of support and tools are available with visual basic

What kinds of support and tools are available with Visual Basic? Sum-up your research, and make sure to reply to each of the questions.

  What will a back-propagation network for problem

What will a back-propagation network predict for this example, assuming that it has been trained and reaches a global optimum?

  Data blocks accesses to fetch record using linear search

How many data blocks accesses on the average are required to fetch the record using linear search? How many data blocks accesses are required to fetch a record using binary search?

  Recognize the make and model of one 1 laser printer and one

identify the make and model of one 1 laser printer and one 1 inkjet printer that are similarly priced. evaluate the

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