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

  Find the height level of the tree

Find the height - level of the tree and how many leaves does the tree have - Find the probability that the battery will last between 11 and 15 hours.

  A week after the upgrade it is foud out that there are some

while maintaining your companys configuration management it is determined that you need to upgrade your switches. after

  Describe steps improving or maintaining relations with other

Describe the steps necessary for improving and maintaining relations with other business units

  Objectives of a backup and recovery strategy

Explain the objectives of a backup and recovery strategy for databases. Explain the types of backup plans and how they can be used to meet different recovery objectives.

  Computers with a fresh desktop that features

You want to ghost your network's computers with a fresh desktop that features Windows 8, as your computers currently use Windows 7.

  Engages in covered interest arbitrage

Determine the yield (percentage return on investment) to an investor from Mexico who engages in covered interest arbitrage.

  Determine the minimum cable force p

The cable is wrapped around the spool's inner core. The coefficients of static friction at A and B are µA = 0.3 and µB = 0.6 .

  Think of a programming task-other

Write a 200- to 300-word short-answer response for the following: Think of a programming task-other than the individual or team assignments in this course-in which you would choose to use a data file. Write the code to read or write the file. Expl..

  Describe the skills or knowledge a project manager

Describe the skills or knowledge a project manager would need to work on a project in each of your categories.

  Narrative description of the interview setting

Provide a list of people you have or will interview. Provide a narrative description of the interview setting and the intended process, before, during and following the interview.

  Percent market value of equity for firm

What is the percent market value of equity for this firm? (Answer to the nearest hundredth of a percent, but do not use a percent sign).

  What does it mean to have integrated requirements models

What does it mean to have integrated requirements models?

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