A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Matematic geni ??

  1. #1

    Matematic geni ??

    Here comes a difficult thing that solve

    My youngest daughter has got in chore that muse on a program that can figure out
    rates on a magazine.

    If a newspaper have A-4 size shall the program be able to figure out how much each
    ad must cost in order to get together a certain amount.

    Example:

    The newspaper acquires 5000 USD in order to cover the expensive,
    then you shall be able to put in 5000 USD and the program shall figure out
    how much each ad shall cost.

    Example on adsformat of a A-4

    1/1, 1/2, 1/3, 1/4, 1/5, 1/6, 1/8, 1/10, 1/12

    The cost must vary between the size on the ad

    And the thing is that you don´t know how many of ads, in for example
    1/6 size there is, you have to have some fields to put in a number an
    then the program could count it out.

    Huuuu, this is way ower my head, but i know there is some matematic
    geni on this forum to make this in Flash ( MX ? )

    Thanks dudes
    Pleas excuse the bad English
    TravelingSwede

  2. #2
    Member
    Join Date
    Mar 2003
    Posts
    32
    I would really like to help you, but i'm not really sure what your question is.

    As far as i got it; u need a program.

    This program needs to calculate the price of adds in somePaper.

    These prices need to add up to someValue (for instance 5000 USD).

    But the amount of adds per type is unknown (im guessing u mean variable, cause elsewise it isn't solvable).

    Next i'm guessing the increase between to types is linearly dependant on the size (twice as big is twice as expensive), since there is no function given and this one makes the most sense.


    Given all this; i would add all amounts of types times there relative size (thios will give the total amount off adds in a-4 format) then divide the goal revenue by this number...the result is the cost per part of an a4...

    success!

  3. #3

    Thanks !!

    You got it !

    But how to make Flash to do this??

    Hard.hard.hard...

    Do you have any ideas?

    Best regards
    TravelingSwede

  4. #4
    Member
    Join Date
    Mar 2003
    Posts
    32
    sure

    Make some inputTextboxes (one for each type; half, quarter, etc)
    let em correspond with the right variable....

    make one dynamic textBox with the variable total

    make a button w/

    on(press){
    total = 5000/(0.5 * half + 0.25 * quarter etc.)
    }

    if u did this and everything goes right total will display the cost (in USD) per a4 needed to make a revenue of 5000 USD

  5. #5

    Thaaanks

    I know this is to much, but could you shove me a sourcefile??

    Can i pay you back in any way ?

    Some snow from Sweden ? ( ha,ha )

    Regards Swed
    TravelingSwede

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center