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 12:50
Assume cd | ab are parallel. find m2. a) x= 50° (b) x = 70° c) x = 30° d) x = 60
Answers: 1
question
Mathematics, 21.06.2019 20:30
Which steps could be part of the process in algebraically solving the system of equations, y+5x=x^2+10 and y=4x-10
Answers: 2
question
Mathematics, 21.06.2019 20:30
What is always true about a positive integer raised to a negative odd power?
Answers: 1
question
Mathematics, 21.06.2019 22:00
Uestion 1(multiple choice worth 5 points) (05.02)alex wants to paint one side of his skateboard ramp with glow-in-the-dark paint, but he needs to know how much area he is painting. calculate the area of the isosceles trapezoid. isosceles trapezoid with top base 12 feet, bottom base of 18 feet, and height of 6 feet. 72 ft2 84 ft2 90 ft2 108 ft2
Answers: 1
You know the right answer?
Write a program which creates a list of randomly chosen donations to 15 different charities. first,...
Questions
question
Computers and Technology, 03.09.2019 03:20
Questions on the website: 13722360