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)
Heres a Python program that takes multiple float values from the user and calculates the average and ... 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...
-
Complete this question by entering your answers in the tabs below. Required 1 Required 2 Required 3 Required 4 Required 5 Compute the following factory overhead cost variances using a four-variance...
-
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...
-
List the four major steps for assembling an SM printed wiring assembly (only SM technology).
-
The UKs NHS has been subject to considerable government-driven change in recent years. Many of these changes have involved policy initiatives to modernize the NHS and subject it to market...
-
Starbucks Corporation and PepsiCo formed a joint venture to produce and distribute Starbucks bottled Frappuccino coffee drink throughout North America. Assume that the 50/50 joint venture had a book...
-
Sims Company has a line of credit with Bay Bank. Sims can borrow up to $400,000 at any time over the course of the 2013 calendar year. The following table shows the prime rate expressed as an annual...
-
Smiley Corporation wholesales repair products to equipment manufacturers. On April 1 , Year 1 , Smiley issued $ 1 2 , 7 0 0 , 0 0 0 of five - year, 1 1 % bonds at a market ( effective ) interest rate...
-
Answer the following question. How many U.S. dollars can you buy for C$750 if one Canadian dollar is worth US$0.8168?
-
2)Suggest a reasonable strategy for the synthesis of the dipeptide Leu-Phe, using established protocol for peptide synthesis.
-
A high vacuum apparatus is to be designed so that electrons accelerated at one end of chamber cross through the chamber unimpeded before being collected at the other side. Make an estimate of the...
-
The graph below represents the demand graph of a monopolist. This firm uses price discrimination to increase its profits. What is the change in the consumer surplus due to the price discrimination?...
-
A set S R^n is convex if for all x, y S and t [0, 1], we have (1 t)x + t y S (in other words, if S contains the points x and y, it contains the entire line segment between them). (a) If W R^n is a...
-
Looking for some guidance, Produce a summary of this segment of the conclusive article and submit it by Thursday to allow time for feedback to/from peers. You will be rated on your workshop...
-
What is the public's general expectation on program implementation?
-
Somewhere around the Mediterranean, a group of n Roman legionaries is fight- ing against n Carthaginian solders. Each Roman carries special arch, which can throw an arrow that kills the enemy...
-
Do animals have rights? If so, what are they? What duties do human beings have toward animals? Does KFC protect animal welfare at an acceptable level?
-
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...
-
Define cash equivalents and give three examples.
-
B-You is a consulting firm that works with managers to improve their interpersonal skills. Recently, a representative of a high-tech research firm approached B-Yous owner with an offer to contract...
-
Two supplementary schedules frequently accompany a statement of cash flows prepared by the direct method. Briefly explain the content of these schedules.
Study smarter with the SolutionInn App