Use Java Simple Array Program Use External Class Demo Program Wish May Break Methods Requi Q37055209

USE JAVA

This is a simple array program which does not use an “externalclass & demo program”

If you wish, you may break it down into methods, but that is notrequired.

-Set up 4 arrays which each hold 6 employee’s data:

      int[ ] empid

      int[ ] hours

      double[ ] rate

      double[ ] wages

-Set up loops to load the empid, hours and rate arrays

– Set up a loop to calculate values for the wages array.

TAKE OVERTIME [hours > 40], INTO CONSIDERATION,

thru the use of the IF statement

[overtime is time and a half as usual]

-Set up a loop to print the empid and wages for

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.