subject

Sarah and kelly are devoted to donating to several different causes. both want to receive the prize for the "number 1 donor of the department" they work in. the rules for the prize specify that the winner will be the donor with the maximum average donation, as long as some conditions are satisfied: 1. the winner must have donated to at least 5 different causes; 2. the total amount donated is at least 300 dollars. if the average is the same, the winner is the one with most donations. sarah and kelly want to compare their donations to determine who among them would win the prize (if any). they each take note of their total donation to each cause (as non-negative integer value) and signify the end of the list with a negative value. • for the donations below, sarah wins sarah: 100 200 50 100 100 51 -10 kelly: 100 100 100 100 100 100 100 100 -40 • for the donations below, kelly wins sarah: 500 700 -100 kelly: 50 100 50 50 50 -100 • for the donations below, no one qualifies for the prize sarah: 10 200 50 10 10 5 -10 kelly: 1000 -40 • for the donations below, they tie sarah: 100 200 50 100 100 50 -10 kelly: 10 130 50 140 80 190 -40 your task in this problem is to write a function void bestdonor(int* kellydonations, int* sarahdonations) that takes as input their donations and prints the outcome: either sarah or kelly wins, they tie, or they do not qualify for the prize

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 09:30
Write a function called checkfactor that takes two arrays of positive numbers, firstnumberrow and secondnumberrow. checkfactor checks if the first entry in firstnumberrow is divisible by the first entry in secondnumberrow, and performs the same operation on the next array elements until all entries have been checked. all the numbers are positive and the number of entries in the arrays are the same. the function should return the identified divisible numbers in two row arrays named firstdivisible and seconddivisible.restrictions: branches or loops should not be used. the code must use the internal mod and logical functions.hint: the mod function should be used to determine if two numbers are divisible. ex: for num1 and num2 if mod(num1,num2) is 0, then the two numbers are divisible.this is matlab
Answers: 2
question
Computers and Technology, 23.06.2019 18:30
List 3 items that were on kens resume that should have been excluded
Answers: 1
question
Computers and Technology, 24.06.2019 01:00
Answer these and get 40 points and brainliest
Answers: 1
question
Computers and Technology, 24.06.2019 05:30
Why is hard disk space important to an audio engineer? why are usb ports and firewire ports useful for an audio engineer? explain in 2-3 sentences. (3.0 points) here's a list of different audio software: ableton live apple inc.'s garageband apple inc.'s logic studio digidesign's pro tools propellerhead sofware's reason sony creative software's acid pro steinberg cubase steinberg nuendo choose one of the software programs listed above, and then go to that software program's web site. read about what the software program is used for, and then write 4-5 sentences about what you learned. (10.0 points) which type of software license is the most limiting? why? explain in 2-3 sentences. (3.0 points) when sending a midi channel voice message, how can you control the volume of the sound? explain in 2-3 sentences. (4.0 points)
Answers: 1
You know the right answer?
Sarah and kelly are devoted to donating to several different causes. both want to receive the prize...
Questions
question
Mathematics, 27.04.2021 20:20
question
History, 27.04.2021 20:20
question
Mathematics, 27.04.2021 20:20
Questions on the website: 13722360