4. Write a program that receives floating numbers from a user and put in an numbers...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
4. Write a program that receives floating numbers from a user and put in an numbers [10] array. Total up all the inputs and assign to a sum variable. Count how many times user entered the numbers and assign to the count variable. Display both of the variables. Output: BlueJ: Terminal Window - Input Options Please enter floating point number :3.5 Total of floating numbers is:3.5 Total of numbers entered is:1 Please enter floating point number: 4.2 Total of floating numbers is:7.7 Total of numbers entered is:2 Please enter floating point number: 3.3 Total of floating numbers is:11.0 Total of numbers entered 18:3 Please enter floating point number: 4. Write a program that receives floating numbers from a user and put in an numbers [10] array. Total up all the inputs and assign to a sum variable. Count how many times user entered the numbers and assign to the count variable. Display both of the variables. Output: BlueJ: Terminal Window - Input Options Please enter floating point number :3.5 Total of floating numbers is:3.5 Total of numbers entered is:1 Please enter floating point number: 4.2 Total of floating numbers is:7.7 Total of numbers entered is:2 Please enter floating point number: 3.3 Total of floating numbers is:11.0 Total of numbers entered 18:3 Please enter floating point number:
Expert Answer:
Answer rating: 100% (QA)
Here is a simple C program that achieves the described functionality include int main const int SIZE ... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Truman, an HR Manager, was recently hired at Fang corp. to help make the organization a more attractive place to work. Whereas their competitors have the resources to offer expensive benefits and...
-
Burger Doodle is a fast-food restaurant that processes an average of 680 food orders each day. The average cost of each order is $6.15. Four percent of the orders are incorrect, and only 10% of the...
-
1. How many terms are there in the binomial expansion of (x + y)19? 2. How many terms are there in the binomial expansion of (x + y)25? 3. Determine the first three terms in the binomial expansion of...
-
Use the given categorical data to construct the relative frequency distribution. Here are the countries with the five highest estimated costs of software piracy: United States ($9.1 billion), China...
-
A parallel-plate capacitor with a plate area of \(50 \mathrm{~mm}^{2}\) and air between the plates can hold \(5.5 \mathrm{pC}\) of charge per volt of potential difference across its plates. When a...
-
Upper Division of Lower Company acquired an asset with a cost of $600,000 and a four-year life. The cash flows from the asset, considering the effects of inflation, were scheduled as follows: Year...
-
11. An incompressible liquid is kept in a container having a weightless piston with a hole. A capillary tube of inner radius 0.1 mm is dipped vertically into the liquid through the airtight piston...
-
You, CA, an audit senior at Grey & Co., Chartered Accountants, are in charge of this year's audit of Plex-Fame Corporation (PFC). PFC is a rapidly expanding, diversified, publicly owned entertainment...
-
A friend of main is planning to construct a school that can accommodate 200 students, now the school has 150 students. the total cost of construction is RO 700,000. They will have a bank loan...
-
Disney Motors, LLC, a Florida limited liability company, ships 100 motorcycles to its California dealership. The truck driver transporting the motorcycles to California stops at a bar New Mexico....
-
Customer Profitability Analysis Colleen Company has gathered the following data pertaining to activities it performed for two of its major customers. Jerry, Inc. Kate Co. Number of orders 5 30 Units...
-
this about the essay i uploaded 4 days ago please check that before answering here: Problem/ Solution topic is about Global Warming from fossils fuel and food waste; The Proposal is the first formal...
-
Select a Health Policy topic to research. Write an outline based on this topic. Health Policy Topic Ideas : Choose a topic for Health Policy Project. Here are some sources you can use to get ideas...
-
Please use complete sentences. Initial discussions should be approximately 250 words. All of us must make decisions based on opportunity costs every day. What are five decisions based on opportunity...
-
Consider the following repurchase proposal in 2006 for Blaine Kitchenware, Inc: buy back 23 million shares at a price of $18.50 per share with $209 million of cash and 216.5 million new debts at...
-
Archangel Corporation prepared the following variance report. Instructions Fill in the appropriate amounts or letters for the question marks in the report. ARCHANGEL CORPORATION Variance...
-
Evaluate the following expressions as C++ would: a. 8 * 9 + 2 b. 6 * 3 / 4 c. 3 / 4 * 6 d. 6.0 * 3 / 4 e. 15 % 4
-
Rewrite the following so that it uses using declarations instead of the using directive: #include using namespace std; int main() { double x; cout < < "Enter value: "; while (! (cin >> x) ) { cout <...
-
Provide method definitions for the class described in Chapter Review Question 5 and write a short program that illustrates all the features. Data From Question 5 Define a class to represent a bank...
-
Telemark-Kjemi AS manufactures an industrial solvent in two departments mixing and cooking. This question focuses on the Cooking Department. During June 2022, 90 tonnes of solvent were completed and...
-
Le Roi du Plastique Sarl has two processes extrusion and thermo-assembly. Consider the June 2022 data for physical units in the thermo-assembly process of Le Roi du Plastique: opening work in...
-
Consider the following data for the satellite Assembly Division of Aro-France: Exercise4.11 Europe Electronics SNC manufactures microchips in large quantities. Each microchip undergoes assembly and...
Study smarter with the SolutionInn App