Write program that generates an array filled

Assignment Help Basic Computer Science
Reference no: EM132003034

Write program that generates an array filled up with random positive integer number ranging from 15 to 20, and display it on the screen. After the creation and displaying of the array, the program displays the following:

[P]osition [R]everse, [A]verage, [S]earch, [Q]uit

Please select an option:

Then,if the user selects:

-P(lowercase or uppercase): the program displays the array elements position and value pairs for all member elements of the array.

-­R(lowercase or uppercase):the program displays the reversed version of the array

-­A(lowercase or uppercase): the program calculates and displays the average of the array elements

-­S(lowercase or uppercase): the program asks the user to insert an integer number and look for it in the array, returning the message whether the number is found and its position(including multiple occurrences ), or is not found.

-­Q(lowercase or uppercase): the program quits.

NOTE:Until the last option ('q' or 'Q') is selected, the main program comes back at the beginning, asking the user to insert a new integer number.

Reference no: EM132003034

Questions Cloud

Keep track of a cd or dvd collection : This program will allow the user to keep track of a CD or DVD collection. This can only work exclusively with either CDs or DVDs since some of the data
Cpmare practices of flower divination of and prescriptions : Compare and contrast the purpose and practices of flower divination of and prescriptions for achieving cukam (see Daniel, Ch. 5) with the purpose.
Currency format for all money outputs : Note: Use the Currency Format for all money outputs and assume that the tax rate is 8.75%.
Explain three ways that these riots supported the myth : This action set off a chain reaction that led to draft riots, which demonstrated Northern racism and casualties between blacks and whites.
Write program that generates an array filled : Write program that generates an array filled up with random positive integer number ranging from 15 to 20, and display it on the screen.
Explain the list of driving forces that led to the civil war : Describe two (2) outcomes of the 3/5ths Compromise, Missouri Compromise of 1820, Compromise of 1850, Kansas-Nebraska Act.
Intialize the pointer array with the sequence of upper : Intialize the pointer array with the sequence of upper/lower case alphabet pairs,Aa Bb Cc .... Xx Yy Zz.(The first element of the array isAa
Coupon bond paying semiannual interest : A coupon bond paying semiannual interest is reported as having an ask price of 119% of its $1,000 par value. what is the invoice price of the bond?
What will your total dividend amount be in year two : You own 1,000 shares of stock in Avondale Corporation. What will your total dividend amount be in year two?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  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..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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