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 depends on how many years you have been at the school. For someone who has been at the school for one year (Y₁), the price will be $12, for someone who has been at the school for two years (Y₂), the price will be $10, the three-year (Y3) price will be $7, and the price for someone who has been there all four years (Y) will be $5. Out of all the proceeds, 50% can be saved towards the year-end trip, as the other 50% 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 ($50 to $50 000). • The next line contains four floating point numbers Y₁. Y₂ Y₂ Y₁ (0 < Y₁, Y2, Y3, Y₁ ≤ 1 and Y₁+Y₂+ Y3+ Y₁ = 1) representing the percentages of the total number of students from years 1 through 4 respectively. • The third line contains a single number N, which contains the total number of students attending the brunch (4≤ N≤ 2000). 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.
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 depends on how many years you have been at the school. For someone who has been at the school for one year (Y₁), the price will be $12, for someone who has been at the school for two years (Y₂), the price will be $10, the three-year (Y3) price will be $7, and the price for someone who has been there all four years (Y) will be $5. Out of all the proceeds, 50% can be saved towards the year-end trip, as the other 50% 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 ($50 to $50 000). • The next line contains four floating point numbers Y₁. Y₂ Y₂ Y₁ (0 < Y₁, Y2, Y3, Y₁ ≤ 1 and Y₁+Y₂+ Y3+ Y₁ = 1) representing the percentages of the total number of students from years 1 through 4 respectively. • The third line contains a single number N, which contains the total number of students attending the brunch (4≤ N≤ 2000). 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.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Solve in python please
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 5 steps with 3 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education