Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Lab Task 2 Write a method named pay that accepts two parameters: a real/double number for a TA's salary, andan integer for the number of

image text in transcribed
Lab Task 2 Write a method named pay that accepts two parameters: a real/double number for a TA's salary, andan integer for the number of hours the TA worked this week. The method should return how much moneyto pay the TA. For example, the call pay(5.50,6) should return 33.0 The TA should receive "overtime" pay of 1 normal salary for any hours above 8. For exarm ple, the call pay(4.00, 11) should return (4.00 8) (6.00 3) or 50.0 If the maximum passed is less than the minimum, the method produces no output Lab Task 2 Write a method named pay that accepts two parameters: a real/double number for a TA's salary, andan integer for the number of hours the TA worked this week. The method should return how much moneyto pay the TA. For example, the call pay(5.50,6) should return 33.0 The TA should receive "overtime" pay of 1 normal salary for any hours above 8. For exarm ple, the call pay(4.00, 11) should return (4.00 8) (6.00 3) or 50.0 If the maximum passed is less than the minimum, the method produces no output

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts Of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

4th Edition

0619064625, 978-0619064624

More Books

Students also viewed these Databases questions

Question

Remove direct left recursion from the following grammar:

Answered: 1 week ago

Question

What are the purposes of promotion ?

Answered: 1 week ago

Question

1. Select the job or jobs to be analyzed.

Answered: 1 week ago