Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Vendor's profit or Loss. (business logic Question )

 
Bobby Sharma
Ranch Hand
Posts: 598
3
Google App Engine jQuery Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A vendor offers software services to a client. Each resource is billed at some dollar rate per hour. The total cost of the project for the client is therefore , the total number of hours contributed by all the vendor resources * the dollar rate/hour. There are however some variants. The vendor might have purchased hardware/software licenses needed for the project. The vendor might have utilized the external consultant for the project. The client looks at the vendor as a one-stop solution and hence external resources employed by the vendor need to be paid by the vendor. It might , however , be possible that the vendor's hardware and software purchases are bore by the client. In this case, The clients pays the vendor 30% of the hardware costs. In case of software licenses , the client pays the vendor 50% of the cost, if they are commonly available and used or 100% if the software is infrequently used or is proprietary client technology. The external consultants employed by the vendor will come at a dollar rate per hour. Accept the suitable values and display profit or loss incurred by the vendor.

I am not asking for a program but hints only. I will highly grateful to you , if your provide me with pseudo-code.
 
Roberto Perillo
Bartender
Posts: 2271
3
Eclipse IDE Java Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy, Bobby!

I am not asking for a program but hints only. I will highly grateful to you , if your provide me with pseudo-code.


Well, you know what would be more fun? What if you created some code that implements the idea you presented above (maybe some diagrams too) and presented to us? We would then start a discussion based on that.

How about that?!
 
Bobby Sharma
Ranch Hand
Posts: 598
3
Google App Engine jQuery Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes Sir. You are right.

Should I accept values for Vendor's totalBudget , "dollarRate/hour", and
totalNoOfHours.

Should I ask the user to choose from various variants(1 to 3) ? such as

1. If Client bears the cost of hardware and software.
2. If Client bears the cost of Software' license
3. If The software is infrequently used or proprietary client technology ?

Calculation of totalCost
totalCost = dollarRate/hour * totalNoHours;

and totalCost will tell us , if the vendor incurred a profit or loss ? please guide me. I am stuck here.
 
fred rosenberger
lowercase baba
Bartender
Pie
Posts: 12098
30
Chrome Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Should I accept values for Vendor's totalBudget , "dollarRate/hour", and totalNoOfHours.

Considering your initial post say you should "Accept the suitable values", I'd say yes.

Should I ask the user to choose from various variants(1 to 3) ?

That is one way. I'm sure there are others. I'm not sure it necessarily makes sense to ask the customer if the sofware will be use frequently or not.

Calculation of totalCost
totalCost = dollarRate/hour * totalNoHours;

I would say not quite. But are you talking "total cost to customer" or "total cost to client"?

totalCost = (rate * total hours) + hardware_costs + software_license_cost

Whether the vendor incurred a profit or loss depends on amount_billed - Vendor_total_cost.
 
Bobby Sharma
Ranch Hand
Posts: 598
3
Google App Engine jQuery Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you , Fred. So we don't have to choose from 30% , 50% or 100% situation ? If the client is getting either 30% or 50% or 100% cost of software/hardware , then the Vendor probably gets benefited. ? ? and I was talking about totalCost to Vendor .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic