# Calculating ideal values for multiple variables - PHP script

I need a small website script to be made in PHP.

User enters any number of different wines and their MSRP prices into a form:

WINE NAME MSRP PRICE MAX QTY MIN QTY

[_________] [_________] [_______] [______]

[_________] [_________] [_______] [______]

[_________] [_________] [_______] [______]

[_________] [_________] [_______] [______]

[_________] [_________] [_______] [______]

[+ Add More]

Offer price: \$[______]

[Calculate Ideal Values]

Example Output

Wine MSRP MAX MIN QTY

White \$10 - 360 V

Red \$20 - - W

Rose \$30 120 - X

Porto \$96 - 2 Y

TOTAL Z

--|-------------

Script will calculate:

- V, W, X, Y: How many of each bottle is ideal situation allowed; such that the ‘average price of all bottles’ has to be at least 25% higher than offer price; and that the values are within any optional MAX/MIN caps that were entered

- Z: The lowest total QTY possible

There will also be a ‘slider’ underneath the Z value, such that the user can slide it to increase it manually. As user slides it, the values for V, W, X, Y change.

“Ideal situation” is such that the highest-priced wines have the maximum-quantity possible, and that the lowest-priced wine has the lowest-quantity possible.

Compétences : Algorithme, Javascript, Mathématiques, Matlab and Mathematica, PHP

Concernant l'employeur :
( 18 commentaires ) Scottsdale, United States

N° du projet : #2335677

## Décerné à :

mathisfun

I'm a math phd and am good at programming. I already have an idea on how to solve this problem.

130 \$ USD en 4 jours
(5 Commentaires)
4.2

## 10 freelance font une offre moyenne de \$195 pour ce travail

gopalvora

ready to start Thanks

200 \$ USD en 10 jours
(169 Commentaires)
6.8
sritechnocrat

Sri Technocrat is marvelous in its quality. We have been maintaining the quality in every field whether it is services or training. We have proved our stability. We have been working with the same grace & quality. Our Plus

250 \$ USD en 10 jours
(47 Commentaires)
6.9
Dunkoh

Lets do this

200 \$ USD en 1 jour
(88 Commentaires)
6.6
AndreiMk

I have created many calculators before. I can complete this job fast.

250 \$ USD en 3 jours
(57 Commentaires)
6.5
op2i

Hi, I am interested. please see pmb.

250 \$ USD en 4 jours
(35 Commentaires)
6.3
gvuyk

Hello, please check PM

90 \$ USD en 2 jours
(24 Commentaires)
5.0
ecitius

Hello, My name is Ankit, a technical team leader from E-citius Infotech Pvt Ltd. I'm interested in the position of "PHP Developer" you recently posted. During past 5 years we have designed, developed & managed Web Plus

250 \$ USD en 5 jours
(2 Commentaires)
3.4
rakhon

Piece of Cake...

80 \$ USD en 4 jours
(6 Commentaires)
2.8
H4dH6FGi2

Custom software development - <b><i>Removed by Admin</i></b>

250 \$ USD en 1 jour
(0 Commentaires)
0.0