Question: i need help with this problem and how you will start the problem is also given Problem: The Sangree Old Folks Home is in deep

i need help with this problem and how you will start the problem is also given
i need help with this problem and how you will start the
problem is also given Problem: The Sangree Old Folks Home is in

Problem: The Sangree Old Folks Home is in deep financial trouble and the owner, old Doc's Sangree, decides to go on a massive fundraising campaign. The local high school offers to help by sponsoring a dance marathon. Old Doc Sangree would like you to write a program to process the data gathered on the couples who will dance and their sponsors. Input: Every couple that dances is given a unique ID number. Each sponsor is asked how much they are willing to donate for each hour the couple dances and the maximum number of hours they are willing to pay for. Data: a) The first number is the ID number of the couple being sponsored (ID) b) The second number represents the maximum number of hours the sponsor is willing to pay for (HRS) c) The third number is a real value which gives the dollar per hour amount that the sponsor will donate (RATE). Dutput: class dancer f int id, hrs; float rate; public: dancer (); void read_val(ifstream \&); void print_val(ofstream &); void sort_by_id(dancer a[], int); void sort_by_rate(dancer a[], int); int couple_counter(dancer a[], int); // Total amount earned by EACH couple and the /I number of sponsors void u id(dancer a[], ofstream \&); 1/ Money earned from each performance. float get_earnings(dancer a[], int); int get id () ; int get_hrs(); float get_rate(); I/ Total money earned by ALL dancers float total_raised(dancer a[]); void swap(int, int, dancer a[]); \}; void best_couple (dancer a[], ofstream \&)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!