Write program-compute average using floating-point numbers

Assignment Help Programming Languages
Reference no: EM1362153

Q1) Write a program that will accept as input between 2 and 25 numbers and then calculate the average of the numbers.

Make sure you use floating-point numbers in case the average is not a whole number.

You should create the program to work in a loop to accept the input until you instruct the program that no more input is forthcoming and to then calculate the average.

Your output should include the numbers used as input and then the average of the input numbers.

Reference no: EM1362153

Questions Cloud

Explain characteristics of the modern bureaucracy : Characteristics of the Modern Bureaucracy - Show your view regarding the modern bureaucracy, particularly regarding the size of the bureaucracy
What is the new value of energy stored in it : what is the new value of energy stored in it. What is the force that is acting between them.
Cultural perceptions undermine health education efforts : To what extent do cultural perceptions undermine health education efforts? To what extent do cultural perceptions enhance health communication efforts?
Evalute your results to the nearest hundredth of a percent : Find a 95% confidence interval for the true percent of car owners in this city who recieved a speeding ticket this year. Evalute your results to the nearest hundredth of a percent.
Write program-compute average using floating-point numbers : Write a program that will accept as input between 2 and 25 numbers and then calculate the average of the numbers. Make sure you use floating-point numbers in case the average is not a whole number.
Show ideal bureaucracy : Describe how you would adjust, amend, or reform the current bureaucracy to meet the needs of the United States in the 21st century.
How much time passes before the brick lands on the ground : how much time passes before the brick lands on the ground.
Explain top leaders in government and business : Explain Top leaders in government and business today are and held to higher ethical standards than in the past
Illustrate what would happen to the total employment : Illustrate what would happen to the total employment, the size of the labor force, and the unemployment rate? Show the results graphically.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a program to read student data from standard input

Write a program to read student data from standard input, sort it by last name / first name, and print result to standard output.

  Write a web application which will give report of balance

Write a web application which will provide a report of the balance held in the visitor's account during the past several months.

  Creating message box to display member name

Ddefine for your class is a method to design a message box to display member name, car year and model, and year member joined club.

  Identify all the pure-strategy nash equilibria of game

Identify all of the pure-strategy Nash Equilibria of this game. Identify at least one mixed-strategy Nash Equilibrium, and show that it is a Nash Equilibrium.

  Deisgn child class that overrides parent method

Deisgn child class named Box, that contains additional data field named depth and a computeSurfaceArea() method that overrides the parent method appropriately for a three-dimensional box

  Create class to include fields for length-width in inches

Create a class name Tape that includes fields for length and width in inches and properties for each field. Also include a ToString () method that returns a string constructed from the return value

  Explain about lexical analyzer

Explain about Lexical Analyzer

  Write a vhdl code for soda vending machine

Write a VHDL code that implements the above soda machine. You have to turn in the following: A state diagram showing the implementation of your design. Clearly show all the states and the conditions on which transitions occur.

  Writing code in client program to enter score

Write down code in a client program to perform the following: prompt user to enter score and set score data member for player1.

  Write a program that bounces blue ball inside jpanel

Write a program that bounces a blue ball inside JPanel. The ball should begin moving with a mousePressed event. When the ball hits the edge of the JPanel.

  Design a flowchart displays item-s data

Design a flowchart or pseudocode for the following: displays the item's data only if it is a best-selling item. Best-selling items are those that sell more than 2000 pounds per month.

  Ruby program that continuously reads in number

Write down Ruby program that continuously reads in number, x, from screen, and then calculates and displays its: factorial, if x is less than 15.

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