Question
Asked by:
Tiki2
Tiki2
Rating : No Rating
Questions Asked: 3
Tutorials Posted: 0
 

$10.00 Two overloaded methods named computeWeeklySalary()

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)


   
   
   
   
 
Available Tutorials to this Question
Posted by:
DoctorD
DoctorD
Rating (9): A-
Questions Asked: 0
Tutorials Posted: 28, earned $420.43
 

$10.00 Hand drawn flowchart of weekly salary problem

  • This tutorial was purchased 2 times and hasn't been rated yet.
  • Posted on Dec 11, 2008 at 3:47:21PM
A:
Preview: ... rawn f ...

The full tutorial is about 4 words long plus attachments.

Attachments:
weeklysalary1.pdf (1002K) (Preview)
weeklysalary2.pdf (1212K) (Preview)
Posted by:
sdsiedentop
sdsiedentop
Rating : No Rating
Questions Asked: 0
Tutorials Posted: 1, earned $6.00
 

$10.00 ComputeWeeklySalary() Two Overloaded Methods Complete and Correct Flowchart in PDF format

  • This tutorial was purchased 1 time and hasn't been rated yet.
  • Posted on Dec 11, 2008 at 9:41:10PM
A:
Preview: ... oaded methods. One accepts YearlySalary, the other accepts HourlyRate and Hours ...

The full tutorial is about 56 words long plus attachments.

Attachments:
sof_compute_weekly_salary_two_overloaded_methods.zip (240K)
   
Join Now or Log In
Get Tutoring
Get Paid
Academic Honesty