wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Revenue Calculation --Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Revenue Calculation --Problem" Watch "Revenue Calculation --Problem" New topic
Author

Revenue Calculation --Problem

atul kumar
Greenhorn

Joined: Nov 14, 2008
Posts: 7
ABC sales team sells different products and each product has different margins. As an example refer the following table


Sl. No Product Margin
1 Mutual Fund 2% of Revenue
2 Insurance 15% of Revenue




In addition to the direct margins, there are volume overrides. For example if the total mutual fund sale is greater than 1 crore then the margin becomes 2.25%. Similarly for other products as well.


Define a class structure and write a program to calculate the total revenue using the same. Make the design flexible to incorporate easy addition of new products and criteria for incentive calculation. Assume inputs are available as data objects. Identify all unit test cases and write a few of those.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41085
    
  43
This sounds like a homework problem that you should be working on in order to learn something: DoYourOwnHomework

Have you had any thoughts on how to approach this? ShowSomeEffort


Ping & DNS - my free Android networking tools app
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Revenue Calculation --Problem
 
Similar Threads
test
Indian Attitude
Removing multiple if conditions
What is ETO (Exchange Traded Option)?
Help wit h code