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

  Write program that prompts user to pick either seat or price

Write a program that prompts users to pick either a seat or a price. Mark sold seats by changing the price to 0. When a user specifies a seat, make sure it is available.

  Design an employee class

Design an Employee class that has fields for the following pieces of information: Employee Name Employee Number Next, design a class named ProductionWorker that extends the Employee class.

  Create a class titled schooltextbook that contains fields

Create a class titled SchoolTextBook that contains fields for the author, title, page count, ISBN, and price. This SchoolTextBook class will also provide setter and getter methods for all fields.

  Prepare a program that utilizes the computer class

Be sure to use variables, the Scanner class and calculations. The program should output the values of the instance variables and the results of any calculations.

  Atmega128 is being used to monitor humidity inside test cham

Atmega128 is being used to monitor humidity inside test chamber 03. The device uses two sensors to have some fault tolerance. They are connected to ADC channels 0 and 1. The program uses the average and maximum error of the two values.

  Demonstrates the use of the command line compiler

Write some usable code that demonstrates the use of the command line compiler to compile the code into a java.class file. Place at least one debug line in the code using a Java library utility such as print. Be sure to upload both the notepad file wi..

  Executing intrusion detection system

Your company is trying to decide whether to execute intrusion detection system (IDS), or intrusion prevention system (IPS).

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Smallest exponent that can be stored using this 16 bit stand

storing number in a string of 16 bits, the first bit is used for the sign of the number, and the next 5 bits store the exponent plus the bias, and the remaining 10 bits store the mantissa.  The bias is 15. What is the smallest exponent that can be st..

  Write a program that uses an array of structs

Write a program that uses an array of structs. The structs will have the following data attributes: integer i_value float f_value Allow the user to enter 10 different integers and 5 different float numbers.

  What frequency of radio waves corresponds to wavelength

Radio amateurs are allowed to communicate on "10 meter band." What frequency of radio waves corresponds to wavelength of 20m?

  Describe method to execute account harvesting

Describe the threat of account harvesting. Suggest a method to execute an account harvesting attack on a Windows platform.

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