Prompt for and read numbers into an array

Assignment Help Computer Engineering
Reference no: EM132210540

Write a program that prompts for and reads numbers into an array.

The array should be big enough to hold 20 numbers. You keep reading until the user enters a negative number. You should then print the numbers they entered.

You then use a function that is passed the array and the number of items they entered and returns the average of the numbers.

Then call two functions which take the same parameters. The first returns the largest number in the array and the second returns the smallest number bin the array. Print the average, the largest, and the smallest number.

Reference no: EM132210540

Questions Cloud

Write a little man program that prints out the sums of odd : Write a Little Man program that prints out the sums of the odd values from 1 to 39. The output will consist of 1, 1+3, 1+3+5, 1+3+5+7... No input is required.
How much cash after taxes would sandra receive : How much cash after taxes would Sandra receive from her investment in the first year if BAL is organized as either an LLC or a C corporation
Display the total net gross amounts and their averages : The program output should show each employee's name, gross pay, and net pay, and should also display the total net gross amounts and their averages.
Produce a table of decimal numbers and roman numerals : Write a program to produce a table of decimal numbers and roman numerals from 1 to 1000.
Prompt for and read numbers into an array : The array should be big enough to hold 20 numbers. You keep reading until the user enters a negative number. You should then print the numbers they entered.
Discuss the concept of true and fair in an auditor report : How as a company auditor you would audit transmission of shares? Discuss the concept of 'true and fair' in an auditor's report
Explain in brief the powers and duties of company auditor : Explain clearly the meaning of 'Verifications of Liabilities' as shown in a Balance Sheet. Explain in brief the powers and duties of company auditor
Calculate a statement of comprehensive income : Calculate a Statement of Comprehensive Income with both expenses (classified by function) and revenues disclosed on the face of the statement
Calculate its net income : If Brownstone's sales revenue is $100 greater than its break-even sales in dollars, calculate its net income

Reviews

Write a Review

Computer Engineering Questions & Answers

  Public black and white printer

Publicly available to everyone on the network to read, but only management is able to modify.

  Discuss conduct a risk assessment for an organization

Describe a methodology that can be used to conduct a risk assessment for an organization

  Find a set of criteria for assessment of video clips

find a set of criteria for assessment of video clips suitable for inclusion in Multimedia presentations over the web. Discuss your choices and where they differ from choices you would make for a CD presentation.

  Write a report based about applications of embedded system

Write a 3000 words (excluding diagram, chart, table, references and cover letter) report based on research about applications of embedded system in one these ar

  How did your team plan the group presentation

How did your team plan the group presentation? What worked well during the group presentation? What did not work so well during the group presentation? If you had to do the presentation again, what would you do differently?

  How ip addressing work with dns servers to process a request

Draw a map, labeling every aspect, which represents how IP addressing works with DNS servers to process a request for a web page from your computer that returns the web page. Assume that it takes a few DNS servers to find the IP address.

  You are designing a program which will benbsp capable to

you are designing a program that will be able to detect if any of the standard operating system files on a pc have been

  What do you estimate is the bandwidth of a local loop

The telephone line that connects your house or business to the central office carries your conversation. What do you estimate is the bandwidth of a local loop?

  Find the contiguous subarray within an array

Find the contiguous subarray within an array (containing at least one number) which has the largest product. Return an integer corresponding to the maximum.

  Implementing the java program

Write down a Java program which allows the user to enter the loan amount and loan period in number of years and show the monthly and total payments.

  Design an application that enables users to enter two values

Design an application that enables users to enter two values of type int. Write a method that retrieves the values and stores them and their products.

  Purpose of testing

Describe the purpose of testing. Discuss how tests are carried out at different levels within the system.

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