Write a program that let the user input multiple float values and output the average and...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program that let the user input multiple float values and output the average and variance of the user input. Input -1 indicates the end of the input. Do not use arrays in this program. (40 points) Sample input: 1.1 2.3 3.4-1 Sample output: 2.266667 0.882 Hint: the definition of average and variance for data set a, a, a, are as follows Aeg-a Var-1- Avg= i=1 11 Write a program that let the user input multiple float values and output the average and variance of the user input. Input -1 indicates the end of the input. Do not use arrays in this program. (40 points) Sample input: 1.1 2.3 3.4-1 Sample output: 2.266667 0.882 Hint: the definition of average and variance for data set a, a, a, are as follows Aeg-a Var-1- Avg= i=1 11
Expert Answer:
Answer rating: 100% (QA)
The question is asking for a program that accepts multiple floatingpoint values from the user comput... View the full answer
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date:
Students also viewed these programming questions
-
The city of Witchita, Kansas, is considering building a hockey arena and entertainment complex. It will cost $60 million to build. It will take 2 years to build and $20 million is to be spent up...
-
An algorithm has been written in pseudocode to input some numbers. It only outputs any numbers that are greater than or equal to 100. The number 999 is not output and stops the algorithm. INPUT...
-
Two bars AB and BC of negligible weight are attached to a single spring of constant k that is unstretched when the bars are horizontal. Determine the range of values of the magnitude P of two equal...
-
Plaintiffs created an original screenplay and copyrighted it before trying to pitch it to a major motion picture producer, who rejected the screenplay. That same company, five years later, produced a...
-
What is your perception of CEO Joe Whinney? On what do you base your perception?
-
Why do action potentials travel more quickly down thicker axons than thinner ones?
-
The following data refer to one year. Fill in the blanks. Direct material inventory, January 1 . . . . . . . . . . . . . . . . . .a.__________ Direct material inventory, December 31 . . . . . . . . ....
-
Looking for some positive information to build on Analyze the evolving role of technology in one's discipline of study or chosen profession by investigating the influence of technology on modern...
-
The Ace Trucking Company must determine the number of drivers and trucks to have available on a weekly basis. The standard schedule is to send drivers over the pickup and delivery route on Monday and...
-
To buy your dream home you use a 4/16 reset loan that pays interest only (bullet loan) for the first 4 years, followed with a reset payment to amortize over the remaining 16 years. The loan amount is...
-
How do you set up sales tax for the provinces in which you do business if they are somewhere other than where your business is located?
-
Which costing category includes training departments' administrative salaries and training facility maintenance?
-
If this artwork were translated into an auditory form, what tonal qualities and melodic intricacies would characterize its hypothetical musical rendition?
-
I want a program to take input from user and build a new class that inherits existing parent class and its functions. is it possible to do so, if yes how do i do that? (Please include a short code)....
-
The financial director deploys a policy regarding approval of payments for travel reimbursements of employees. Payments must be approved by the accounting manager for all payments under $1,000 and...
-
1 What is the relationship between geographic information and opidemiology (branch of medicine which deals with the incidence, distribution, and possible control of diseases and other factors...
-
Respond to the ethical judgments required based on the following scenarios. Scenario 1. Assume you have collected a sample using MUS and that you have evaluated that sample to calculate a total...
-
Define named constants that you could use in Programming Project 6 in Chapter 1. Programming Project 6 Write an JavaFx application that displays the following pattern:
-
Write a JavaFX application that uses a text field to get the name of a file, reads the file byte by byte, and displays the bytes as characters. (Exercise 15 describes how to convert a byte value to a...
-
Modify the class LapTimer, as described in Exercise 13 of Chapter 9, as follows: Add an attribute for a file stream to which we can write the times Add a constructor LapTimer(n, person, fileName) for...
-
Nestls financial statements are presented in Appendix B. Financial statements of Delfi Limited are presented in Appendix C. Instructions Refer to the financial statements and answer the following...
-
Writing Financial statement information about four different companies is as follows. Instructions a. Determine the missing amounts. (Hint: For example, to solve for (a), Assets Liabilities = Equity...
-
The financial statements of TSMC are presented in Appendix A. The complete annual report, including the notes to the financial statements, is available at the companys website. Instructions Refer to...
Study smarter with the SolutionInn App