Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in C/C++ Jim works at a food bank and is trying to schedule the volunteers. He has three volunteers. The volunteers that is available for

in C/C++ image text in transcribed
Jim works at a food bank and is trying to schedule the volunteers. He has three volunteers. The volunteers that is available for the maximum number of hours will be provided the morning shift, the volunteer that provides the second maximum number of hours will be given the afternoon shift and the volunteer that can work the least number of hours will be given the night shift. Write a program that takes the input of the volunteers' names and an available number of hours and determines what shift they have been assigned. If two volunteers enter the same hours, then you can choose your own criteria to break the tie. Your program must work as follows: fallafali-virtual-machine: volunteer 1 please enter your nane : Jlm $./ labz Jolunteer 1 please enter your nane 4 inm Volunteer 2 please enter of hours you can volunteer : 6 Kolunteer 2 please enter your nane : Kim Koly please enter nurber of hours you can volunteer : 8 Volunteer 3 please enter your nane : Sam Sam please enter nurber of hours you can volunteer :10 Saan will work in the norning, Kin willi work in the after noon, and Jim will work th the eventing Volunteer 1 please enter your nane : Joe Jill please enter nurber of hours you can volunteer :10 Volunteer 3 please enter your nape : Pam Jill will work in the morning, Joe will work in the after noon, and Pan will work in the eventing

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database Design A Practical Approach

Authors: Marilyn Campbell

1st Edition

1587193175, 978-1587193170

More Books

Students also viewed these Databases questions

Question

state what is meant by the term performance management

Answered: 1 week ago