subject
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.

ansver
Answers: 1

Another question on Mathematics

question
Mathematics, 21.06.2019 14:00
Which of the following is the missing term, a2, of the geometric sequence in which a1=2 and a3=200
Answers: 2
question
Mathematics, 21.06.2019 14:30
Simonne used the following steps to simplify the given expression. 12 - 3(-2x + 4) step 1: 12 + (–3)·(–2x) + (–3)·(4) step 2: 12 + 6x + (–12) step 3: 12 + (–12) + 6x step 4: 0 + 6x step 5: 6x what property of real numbers was used to transition from step 3 to step 4? a. identity property of addition b. inverse property of addition c. associative property of addition d. commutative property of addition
Answers: 1
question
Mathematics, 21.06.2019 16:00
What is the standard form of -5x^2+2x^4-11+x^3+3x
Answers: 2
question
Mathematics, 21.06.2019 17:10
Jessica and martha each have a bag of cookies with unequal quantities. they have 30 cookies total between the two of them. each of them ate 6 cookies from their bag. the product of the number of cookies left in each bag is not more than 80. how many more cookies will jessica have martha? if x represents the number of cookies jessica started with, complete the statements below.the inequality that describes the relationship between the number of cookies each one of them has is x^2 - x +224 > = 0.jessica has at least cookies more than martha.
Answers: 3
You know the right answer?
Write a program which creates a list of randomly chosen donations to 15 different charities. first,...
Questions
question
Geography, 14.10.2019 01:30
question
Mathematics, 14.10.2019 01:30
question
Social Studies, 14.10.2019 01:30
question
Biology, 14.10.2019 01:30
Questions on the website: 13722362