Create a program that the asks the user to enter the array size and assign its...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Create a program that the asks the user to enter the array size and assign its content one by one from the user input. The program must display: a. all the inputted numbers b. the smallest number c. the biggest number d. and the average of all the stored numbers. (Individual work- unique source code) Sample Output: How many numbers you want?: 5 Enter number1: 10 Enter number2: 14 Enter number3: 5 Enter number 4: 1 Enter number5: 4 You typed: Smallest : : Biggest Average : 10 1 14 6.8 14 5 1 Create a program that the asks the user to enter the array size and assign its content one by one from the user input. The program must display: a. all the inputted numbers b. the smallest number c. the biggest number d. and the average of all the stored numbers. (Individual work- unique source code) Sample Output: How many numbers you want?: 5 Enter number1: 10 Enter number2: 14 Enter number3: 5 Enter number 4: 1 Enter number5: 4 You typed: Smallest : : Biggest Average : 10 1 14 6.8 14 5 1
Expert Answer:
Answer rating: 100% (QA)
sample program in Python def main Ask the user to enter the array size arraysize intinputHow many ... 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
-
What type of industry is Macy's operating? New industry? Mature? Explain in detail and also Provide examples. You should understand the stage of the industry so you can also understand some of the...
-
Create a program that evaluates checksum is a value that is computed based upon some information. It is functional in the sense that given the same information, the exact same value will be computed....
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
During extension, why do we sometimes get joints (and veins) and other times shear fractures and faults?
-
Suppose Toys Forever buys $200,000 of LEGO toys on credit terms of 2/15, n/45. Some of the goods are damaged in shipment, so Toys Forever returns $25,000 of the merchandise to LEGO. Assuming Toys...
-
Describe your thoughts on the usefulness and applications of modular fixturing, consisting of various individual clamps, pins, supports, and attachments mounted on a base plate?
-
Some states do not follow the Federal Rules of evidence. For instance, although permitted under Federal Rules, evidence of prior bad acts to attack a witnesss credibility is not allowed in some state...
-
Carnival Corporation has recently placed into service some of the largest cruise ships in the world. One of these ships, the Carnival Dream, can hold up to 3,600 passengers and cost $750 million to...
-
Consider a limousine that gets m(v) = (120 - 2v) 6 mpg at speed v (in mph), the chauffeur costs $15/h, and gas is $3.50/gal. (a) Find the cost (in dollars) per mile at speed v. C(v) = (b) Find the...
-
Since the early 1990s, woodstove sales have declined from 1,200,000 units per year to approximately 100,000 units per year. The decline has occurred because of (1) stringent new federal EPA...
-
A company has discovered that one of its employees has been stealing office supplies for personal use. The employee has been taking a ream of paper each week for the past 3 months. A ream of paper...
-
Dianelys is older than Lillian. Their ages are consecutive integers. Find Dianelys's age if the sum of the square of Dianelys's age and 2 times Lillian's age is 118.
-
Identify a conflict situation that you directly or indirectly experienced that affected others in the workplace. Explain what may have caused the conflict, and explain the effects of the conflict on...
-
You have landed your spaceship on the Moon and want to determine the acceleration due to gravity using a simple pendulum of length 1.00 m. If the period of this pendulum is 5.00s, what is the value...
-
A roller-coaster car has a mass of 508 kg when fully loaded with passengers. The path of the coaster from its initial point shown in the figure to point B involves only up-and-down motion (as seen by...
-
Should state legislators have a say in the redistricting of boundaries that impact their own reelection prospects? Explain your answer. What are the benefits and costs of this system? If you want to...
-
The density of copper is 8.94 10 kg/m, and its atomic mass is 63.5 amu. If resistivity of the copper at 20C is: p=1.72x1080-m. What is relaxation time (t) of electron? Each copper atom contributes...
-
Design an experiment to demonstrate that RNA transcripts are synthesized in the nucleus of eukaryotes and are subsequently transported to the cytoplasm.
-
Write an exception class that is appropriate for indicating that a time entered by a user is not valid. The time will be in the format hour:minute followed by am or pm.
-
Repeat Programming Project 5 but in addition ask the user if he or she is a. Sedentary b. Somewhat active (exercise occasionally) c. Active (exercise 34 days per week) d. Highly active (exercise...
-
Find the documentation for the Java Class Library on the Oracle Web site. (At this writing, the link to this documentation is https://docs.oracle.com/javase/8/docs/api/.) Then find the description...
-
Assume that an account has the following characteristics: Number of items in the account-300 Recorded amount- \(\$ 600,000\) Sample size-100 Required: a. If the sample mean is \(\$ 1,800\) and mean...
-
You desire to estimate the amount of the inventory of your client. Draper. Inc. You satisfied yourself earlier as to the inventory quantities. During the audit of the pricing and extension of the...
-
The following data for a substantive test using sampling are available: Population recorded amount- \(\$ 200,000\) Tolerable misstatement \(\$ 10,000\) Number of items in the population-200 Risk of...
Study smarter with the SolutionInn App