Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

2) Develop an application using an array of structures that will determine the g

ID: 3603250 • Letter: 2

Question

2) Develop an application using an array of structures that will

determine the gross pay for any number of employees input. The company pays

"straight-time" for the first 30 hours worked, double time for

all hours worked in excess of 30 hours but less than 50 hours,

and triple time for any hours worked over 50 hours.

The program should be able to loop and input the employee's name,

hours worked, and the rate of pay. Once this has been done then output

this information including the gross pay in the form of a paycheck.

The process starts all over

again until you input an invalid rate of pay or hours worked. This

means a negative rate of pay or negative number of hours worked is

not acceptable.

Prinout like a company Paycheck with format:

   Company

   Address

   Name:   Amount: numerical

   Amount: English

Signature:

Explanation / Answer

System.out.println( "Age greater than or equal to 65" );


else

System.out.println( "Age is less than 65 )";

total += x;
++x;


}

total += x;
++x;

System.out.println( y );
++y;

4.10 What does the following program print?

public class Mystery {

public static void main( String args[] )
{

int y, x = 1, total = 0;
while ( x <= 10 ) {

y = x * x;
System.out.println( y );
total += y;
++x;

}
System.out.println( "Total is " + total );

}

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote