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

  Function named quadratic that receives three parameters

Write the definition of a function named quadratic that receives three double parameters a , b , c . If the value of a is 0 then the function prints the message "no solution for a=0" and returns.

  Determine proper lower bound and upper bound on ?nal value

Determine the proper lower bound and upper bound on the ?nal value of the shared variable tally output by this concurrent program.

  Identify components that perform distinct service

Identify components that perform a distinct service. Although the details can be quite complex, these details are the basic principles of object-oriented programming

  Write application that inputs a telephone number as string

Write an application that inputs a telephone number as a string in the form (555) 555-5555. The application should String method split to extract the area code as a token.

  Explain drawbacks to using ajax technology

What are some of the other drawbacks to using AJAX technology? Why are some of these very significant items to consider before implementing AJAX on a given website?

  Draw a erd model a manufacturing company

Draw a ERD model A manufacturing company has several assembly plants in different cities. Each plant produces one product which requires certain parts in its assembly.

  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.

  Creating main function that opens the input file

Create a main function that opens the input file, reads each line, and based on first character in input line, calls the [A]dd function or [M]ultiply function.

  Use of various bash commands

Assignment On: This work will require scripting the use of various bash commands and / or small programs that involve directory and file structures.

  Create a dtd for a small xml data set

Create a DTD for a small XML data set drawn from the Stanford course catalog. There are multiple departments, each with a department chair.

  Develop a simple program for inventory system

You have to develop a simple program for an inventory system. You can choose any type of business (ie: Medical supplies, bakery, grocery shop, florist etc.)

  Define function that takes year as it-s input argument

Define and call a function fast_food_billions that takes the year as it's input argument and returns the prediction as it's result. Tell the user that entry of a year before 2005 will cause the program to stop.

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