Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Write a description of class ExerciseThirteen here.
- * Kailey McNeal
- * 10-2-14
- * #13 p 191
- */
- public class ExerciseThirteen
- {
- public static void main (String []args)
- {
- pay(5.50,6);
- }
- public static void pay (double hours, double pay)
- {
- if (hours<8.00)
- {
- pay=hours * pay;
- System.out.print(pay);
- }
- else
- {
- double overhours=(hours-8.00);
- pay=(overhours*(pay*1.5)) + (hours*pay);
- System.out.print(pay);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement