Home / Expert Answers / Computer Science / solve-in-python-please-student-council-is-looking-to-organize-a-school-brunch-wher-pa300

(Solved): Solve in python please Student council is looking to organize a school brunch, wher ...



Solve in python please

student submitted image, transcription available below

Student council is looking to organize a school brunch, where the proceeds will be put towards a year-end trip for the graduating class. The council members decide that the price depends on how many years you have been at the school. For someone who has been at the school for one year , the price will be , for someone who has been at the school for two years , the price will be , the three-year price will be , and the price for someone who has been there all four years will be . Out of all the proceeds, can be saved towards the year-end trip, as the other is spent on the various costs to run the brunch. Given the following input data, calculate whether or not the council will need to raise additional funds. Input Specification The input contains 10 trips, at 3 lines of data per trip. - For each of the trips, the first line will show the cost of the trip as an integer to . - The next line contains four floating point numbers and representing the percentages of the total number of students from years 1 through 4 respectively. - The third line contains a single number , which contains the total number of students attending the brunch . Note: You cannot have less than a whole person (e.g., 1.8 people is the same as 1 person). Any missing or extra people should be removed from or added to the group with the highest percentage of attendees. There will always be exactly one group with the highest percentage of attendees. Output Specification Output YES if the student council needs to find other funding, and NO if the council has raised sufficient funds. Sample Input 4000 400 6000 0.10 .10 .450 .35 2000


We have an Answer from Expert

View Expert Answer

Expert Answer



We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe