C++ Project

Concluído Postado há 7 anos Pago na entrega
Concluído Pago na entrega

Suppose you are in charge of a non-profit organization that receives donated gifts and distributes them to disadvantaged children. You are given a list of children with their ages.

For each gift, you are given the following information:

Retail price

Size of gift (cubic feet)

Range of suitable ages

Let: P = sum of retail prices of the gifts

N = total number of children

ei = | P/N – sum of retail prices for gifts given to child i |

You must minimize Σ ei for the N children, subject to the following constraints:

1. Each gift must be given to exactly one child.

2. No child may be given a gift that is not intended for their age.

3. Each child must receive at least one large or two medium sized gifts, where 1 ft3<=medium gift <= 2 ft3, and 2 ft3 < large gift.

4. The number of gifts received by each child can be no less than the average – 1 and no more than the average + 1.

Important:

The sum of the e_i values should be the absolute lowest value that is possible for the given input file.

Base code is attached.

Programação C++

ID do Projeto: #13242745

Sobre o projeto

17 propostas Projeto remoto Ativo em há 7 anos

Concedido a:

Gupca

I am a passionate c++ coder ,responsable and very attentive to detail. I have a strong focus on productivity and quality ,working constantly on improving my own skills.

$15 USD em 10 dias
(1 Comentário)
0.4

17 freelancers estão ofertando em média $31 nesse trabalho

hbxfnzwpf

I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 7 years. My work is online game developing, and mainly focus on server side, using c++ under Linux environ Mais

$80 USD em 1 dia
(141 Comentários)
7.0
xeathprynx

Hello, I am expert in java/c/c++/python/C# and i can deliver your task in the least time and least payments. The code will be well commented and well formatted for better understanding. I believe in long term relations Mais

$20 USD em 1 dia
(105 Comentários)
5.6
vtatarenko

A proposal has not yet been provided

$35 USD in 3 dias
(10 Comentários)
3.3
Sheraz18

Hi!! I have read your requirements and I can help you with this. As a software engineering student I have a rich experience and knowledge of C++ programming. I can solve anything related to your assignment and I have Mais

$25 USD in 0 dias
(10 Comentários)
3.2
Minaxi19

Hello, I am an expert in coding with more than 6 years of expertise. I can do this task with perfection and in minimum time. eagerly awaiting to hear from you. Thanks, Meenakshi

$30 USD em 1 dia
(3 Comentários)
2.3
techprober

Hello, We have an offer for you that you can not reject! We will provide you a sample of your project without any milestone or job acceptance, if you like the sample award the job to us and turnaround time will b Mais

$30 USD in 0 dias
(0 Comentários)
0.0
Ch3shireC4t

I write software for physics and mathematics in C++, so this kind of project is the best one for me.

$25 USD em 1 dia
(0 Comentários)
0.0
BoonJussive

i have strong grip over c and i have done lot of work now a days working with jf 17 thunder simulator. thanks for reading my proposal.

$55 USD in 2 dias
(0 Comentários)
0.0
mirage254

A proposal has not yet been provided

$15 USD in 0 dias
(2 Comentários)
0.6