Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3623430
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T23:22:57+00:00 2026-05-18T23:22:57+00:00

This is not homework, for I am not a student. This is for my

  • 0

This is not homework, for I am not a student. This is for my general curiosity. I apologize if I am reinventing the wheel here.The function I seek can be defined as follows (language agnostic):

int getPercentageOfA(double moneyA, double workA, double moneyB, double workB)
{
    // Perhaps you may assume that workA == 0
    // Compute result
    return result;
}

Suppose Alice and Bob want to do business together … such as … selling used books. Alice is only interested in investing money in it and nothing else. Bob might invest some money, but he might have no $ available to invest. He will, however, put in the effort in finding a seller, a buyer, and doing maintenance.

There are no tools, education, health insurance costs, or other expenses to consider. Both Alice and Bob wish to split the profits “equally” (A different weight like 40/60 for advanced users). Both are entrepreneurs, so they deal with low ROI/wage, and high income alike. There is no fixed wage, minimum wage, fixed ROI, or minimum ROI. They try to find the best deal possible, assume risks and go for it.

Now, let’s stick with the 50/50 model. If Alice invests $100, Bob invests work, and they will end up with a profit (or loss) of $60, they will split it equally – either both get $30 for their efforts/investments, or Bob ends up owing $30 to Alice.

A second possibility: Both Alice and Bob invest 100, then Bob does all the work, and they end up splitting $60 profit. It looks like Alice should get only $15, because $30 of that profit came from Bob’s investment and Bob’s effort, so Alice shall have none of it, and the other $30 is to be split 50/50.

Both of the examples above are trivial even when A and B want to split it 35/65 or what have you. Now it gets more complicated: What if Alice invests $70, and Bob invests $30 + does all of the work. It appears simple: (70,30) = (30,30) + (40,0) … but, if only we knew how to weigh the two parts relative to each other. Another complicated (I think) example: what if Alice and Bob invest $70 and $30 respectively, and also put in an equal amount of work?

I have a few data points:

  • When A and B put in the same amount of work and the same $ – 50/50.
  • When A puts in 100% of the money, and B does 100% of the work – 50/50.
  • When A does all of the work and puts in all of the money – 100 for A / 0 for B (and vice-versa).
  • When A puts in 50% of the money, and B puts in 50% of the money as well as does all of the work – 25 for A, and 75 for B (and vice-versa).

If I fix things such that always workA = 0%, workB = 100% of the total work, then getPercentageOfA becomes a function: height z given x and y. The question is – how do you extrapolate this function between these several points? What is this function?

If you can cover the cases when workA does not have to be 0% of the total work, and when investment vs work is split as 85/15 or using some other model, then what would the new function be?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T23:22:57+00:00Added an answer on May 18, 2026 at 11:22 pm

    To answer this question depends on which variable you consider to have more weight. Based on your data points, I’m going to assume that 100% of the work is equivalent to investing 100% of the money.

    int getPercentageOfA(double moneyA, double workA, double moneyB, double workB)
    {
        // Perhaps you may assume that workA == 0
    
        aWorkPercentage = getPercentageOfAForWork(double workA, double workB);
        aMoneyPercentage = getPercentageOfMoney(double moneyA, double moneyB);
    
        weightMoney = 1;
        weightWork = 1;
    
        result = ( weightWork*aWorkPercentage + weightMoney*aMoneyPercentage) / 2
    
        return result;
    }
    

    Compute each variable separately and then average them together. The advantage of this formula is that if person A and person B decide to treat work as being more valuable than money or vice versa, then the “weights” could be adjusted to reflect the final percentage.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This IS NOT a Homework question! While building my current student database project I
This is NOT a homework question, actually I am doing this for fun. Here
(This is not homework) We have some extra exercices we can do, and i
Note: Please do not tag this as homework! I am not a student and
This is not homework, I need this for my program :) I ask this
Please note that this is not homework and i did search before starting this
This is not exactly homework but it is related to my studies: A grammar
This is not a homework problem. This questions was asked to one of my
this one is not homework, it just the fact that i've been out of
I'm trying to solve this problem, its not a homework question, its just code

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.