wood burning stoves 2.0*
The moose likes Design and the fly likes Vendor's profit or Loss. (business logic Question ) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » Design
Bookmark "Vendor Watch "Vendor New topic
Author

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

Bobby Sharma
Ranch Hand

Joined: Mar 18, 2008
Posts: 574
    
    1

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.


Back to Java , again.
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2265
    
    3

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?!


Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
Bobby Sharma
Ranch Hand

Joined: Mar 18, 2008
Posts: 574
    
    1

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

Joined: Oct 02, 2003
Posts: 11257
    
  16

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.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Bobby Sharma
Ranch Hand

Joined: Mar 18, 2008
Posts: 574
    
    1

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 .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Vendor's profit or Loss. (business logic Question )