Create a program that generates random numbers, store them in a 10 X 10 array, and...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Create a program that generates random numbers, store them in a 10 X 10 array, and find the average for each row, column, as well as whole numbers. Section 1 Set a random number seed with 2 followed by the last 3 digits of your student ID. Section 2 Generate random numbers, each ranging from 0 to 9, and store them in a 10 X 10 array. Section 3 Calculate the average for each row, column and whole. Section 4 Show the result to the screen. Averages must show 2 digits below the decimal point. */ Output examples : C:\Windows\system32\cmd.exe 1 5 1 7 3 7 6 6 9 4 5 4 6 1 4 5 4 5 3 9 0 7 3 8 32 7 9 1 2 9 3 7 8 0 6 7 2 9 4 3 4 1 2 1 2 2 0 0 4 6 4.90 4.90 2.20 4.60 5.20 3.60 4.50 3.80 Press any key to continue 1 2 2 4 9 6 0 0 8 00 8 5 1 8 2 6 9 1 1 2 1 6 2 7 1 3 0 6 6 8 2 7 8 5 3 9 4 3 1 9 5.10 4 6 5 4 8 8 8 8 8 1 6.00 CO X 4.70 4.00 3.40 5.80 2.90 5.70 4.10 3.80 4.70 5.70 4.48 Create a program that generates random numbers, store them in a 10 X 10 array, and find the average for each row, column, as well as whole numbers. Section 1 Set a random number seed with 2 followed by the last 3 digits of your student ID. Section 2 Generate random numbers, each ranging from 0 to 9, and store them in a 10 X 10 array. Section 3 Calculate the average for each row, column and whole. Section 4 Show the result to the screen. Averages must show 2 digits below the decimal point. */ Output examples : C:\Windows\system32\cmd.exe 1 5 1 7 3 7 6 6 9 4 5 4 6 1 4 5 4 5 3 9 0 7 3 8 32 7 9 1 2 9 3 7 8 0 6 7 2 9 4 3 4 1 2 1 2 2 0 0 4 6 4.90 4.90 2.20 4.60 5.20 3.60 4.50 3.80 Press any key to continue 1 2 2 4 9 6 0 0 8 00 8 5 1 8 2 6 9 1 1 2 1 6 2 7 1 3 0 6 6 8 2 7 8 5 3 9 4 3 1 9 5.10 4 6 5 4 8 8 8 8 8 1 6.00 CO X 4.70 4.00 3.40 5.80 2.90 5.70 4.10 3.80 4.70 5.70 4.48
Expert Answer:
Answer rating: 100% (QA)
To create a program that generates random numbers stores them in a 10x10 array calculates the averag... View the full answer
Related Book For
Managerial Decision Modeling Business Analytics With Spreadsheet
ISBN: 9781501515101
4th Edition
Authors: Nagraj Balakrishnan, Barry Render, Ralph Stair, Charles Munson
Posted Date:
Students also viewed these programming questions
-
The 1H NMR spectrum of an ether A shows a triplet at 8 1.2 ppm (J7 Hz) and a quartet at 8 3.5 ppm (J7 Hz). Which compound is consistent with these data? 1-methoxypropane. dipropyl ether. diethyl...
-
Two-dimensional array operations: Movie Ratings program ** You have recently collected reviews from four movie reviewers where the reviewers are numbered 1-4. Each reviewer has rated six movies where...
-
Need help in this homework In this problem, you will learn how to perform an impressivemagic trick. As all tricks, once you understand it, it becomes lessimpressive. But then you can impress other...
-
Hot Locks Company developed the following information for its hair dryer sales: Sales price $ 125.00 per unit Variable manufacturing cost $ 44.75 per unit Variable selling expense ...
-
Discuss the factors that would make the heat pump described in Problem 6.106 an irreversible cycle.
-
Morelli Electric Motor Corporation manufactures electric motors for commercial use. The company produces three models, designated as standard, deluxe, and heavy-duty. The company uses a job-order...
-
With reference to Exercise 11.69, find the proportion of variance in the amount of NOx explained by the amount of additive. Data From Exercise 11.69 11.69 A chemical engineer found that by adding...
-
Harmsen Maintenance Corporation was organized in early 2012 with 60,000 shares of no-par common stock authorized. During 2012, the following transactions occurred: a. Issued 31,000 shares of stock at...
-
Captain Jack Sparrow has been marooned on an island in the Atlantic by his crew, and decides to build a raft to escape. The wind seems quite steady, and first blows him due east for 11 km, and then...
-
6. Write an SQL script that does the following and save this script as CIS276DA_FinalExercise6_MEID.sql . Save the output of this script as CIS276DA_FinalExercise6_MEID.csv Your results should...
-
If you squeeze an air-filled balloon, which of the following increases? volume density mass weight
-
What effect does an antagonist drug have over the receptors ?
-
a. If Canace Company, with a break-even point at $398,400 of sales, has actual sales of $480,000, what is the margin of safety expressed (1) in dollars and (2) as a percentage of sales? Round the...
-
Desserts by Jacki's variable overhead cost information for pies last quarter was as follows Actual production in pies 18,000 pies Standard variable overhead cost per pie 3/4 hour $5 per hour Actual...
-
In 2022 Lucia gave a relative, Matias 425 shares of School Products Incorporated., common stock. Lucia paid $9,350 for the stock in 2016. At the date of the gift, the FMV of the stock was $6,800....
-
Why is glucose considered the preferred energy source for cellular respiration ? Explain
-
Consider a monopoly host on Airbnb that sets both their nightly price (p) and their cleaning fee (f). However, Airbnb only reveals the nightly price to consumers so there is a chance that consumers...
-
A copper sphere of 10-mm diameter, initially at a prescribed elevated temperature T;, is quenched in a saturated (1 atm) water bath. Using the lumped capacitance method, estimate the time for the...
-
Find the intersection of each of the following sets of constraints. (a) 10X + 8Y = 800 and X + 4Y = 100 (b) 2X + 4Y 28 and 3X 12Y 6 (c) 4X + 9Y 180 and 8X + 2Y 240 (d) 4X 7Y 75 and 5X 9Y 35
-
Richard Muszynskis Gas and Wash has an automatic car wash, and customers purchasing gas at the station receive a discounted car wash, depending on the number of gallons of gas they buy. The car wash...
-
Create a template in Excel, including all of the appropriate Solver settings, that would accommodate a standard assignment problem with 6 people to be assigned to 6 jobs to maximize effectiveness.
-
WorldCom overstated its sales by holding its books open at the close of a reporting period. True/False
-
If a company overstates merger reserves at the time of acquiring another company, it can release the surplus reserves into earnings in a later period without decreasing net income at the time of the...
-
WorldCom prepared its financial statements to meet the expectations of securities analysts despite needing to report actual earnings and accurate financial results. True/False
Study smarter with the SolutionInn App