Mathematics
Mathematics, 19.08.2019 17:10, johnboat

Write a program which creates a list of randomly chosen donations to 15 different charities. first, your program should first create a list of 100 donations, choosing both a random charity (1 - 15) and a random donation ($1.00 - $100.00). you should print the the charity and donation, and also record both the charity and the donation in two arrays, one integer and one float. when you are done creating the individual donations, go back through the data, and create a third array, and total the donations for each charity. (this array is subscripted by the charity number (1 - 15) and contains floating point totals. at the same time, create yet a fourth array that contains the count of the number of donations for each charity. this will be used below. print out the total for each charity and the average donation for each of the charities. finally, go back through the original data yet again, and for each donation, print out whether it was below, equal to, or above the average donation for that charity, and how much it differed from the average.

answer
Answers: 1

Other questions on the subject: Mathematics

image
Mathematics, 21.06.2019 14:00, ninaaforever
Alawn mower manufacturer incurs a total of 34,816 in overhead costs and 388 per lawn mower in production costs. how many lawn mowers were manufactured if the average cost of productions is 660
Answers: 3
image
Mathematics, 21.06.2019 19:30, vtrvfrfvrvfvnkjrf
What is the slope of the line shown below?
Answers: 2
image
Mathematics, 21.06.2019 20:30, mikey952
You’re giving a cube with a length of 2.5 cm and a width of 2.5 cm and a high of 2.5 cm you place it on a scale and it is 295 g calculate the density
Answers: 1
image
Mathematics, 22.06.2019 01:00, pineapplepizaaaaa
Which number produces an irrational number multiplied by 1/3
Answers: 1
Do you know the correct answer?
Write a program which creates a list of randomly chosen donations to 15 different charities. first,...

Questions in other subjects:

Konu
Mathematics, 06.10.2019 11:30
Konu
Mathematics, 06.10.2019 11:30
Konu
English, 06.10.2019 11:30