Question
Asked by:
$10.00 Two overloaded methods named computeWeeklySalary()
- From Computer-Science: Programming-Methods , Computer-Science: Object-Oriented-Programming
- Closed, but you can still post tutorials
- Due on Dec. 08, 2008
- Asked on Dec. 08, 2008 at 09:52:55AM
Q:I really need this flowchart by tonight. Need to pass this class. If i could get it no later than Tues morning that would be great. I am really running out of money trying to get the correct chart. :)
Use Visio to create the flowchart that computes the weekly salary.
In this project you will create two methods named computeWeeklySalary(). These will be overloaded methods since the names of the two methods are the same. Keep in mind that overloaded methods differ in one of two ways:
1. they have a different number of parameters
2. if they have the same number of parameters, at least one of the parameters has a different type.
The overloaded methods you are to create will each determine the weekly salary based on information sent to the method. In one, the annual salary will be sent. In the other hours worked and pay rate will be sent. I'll leave it to you to determine what processing steps are needed to determine the weekly salary with the given information. Both methods will return a weekly salary.
You are also to create a main line logic flowchart. In that flowchart, you will
1. prompt the user, asking whether to compute weekly salary based on annual salary or on hours and pay rate.
2. get user's response
3. Base a decision on the user's response
4. call one of the overloaded methods in each path of the decision.
5. Upon exiting the selection structure you will print the weekly salary returned by the method.
Remember that these methods return a value. What do you need in your flowchart to allow you to use the returned value?
I have paid for this once and cannot seem to get the right flowchart.Attachments:
overload method.doc (25K)



