Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

in C/C++ programming 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

The Database Relational Model A Retrospective Review And Analysis

Authors: C. J. Date

1st Edition

0201612941, 978-0201612943

More Books

Students also viewed these Databases questions

Question

What is meant by organisational theory ?

Answered: 1 week ago

Question

What is meant by decentralisation of authority ?

Answered: 1 week ago

Question

Briefly explain the qualities of an able supervisor

Answered: 1 week ago

Question

Define policy making?

Answered: 1 week ago

Question

Define co-ordination?

Answered: 1 week ago