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

920 > Files > Exercise#2.htm Exercise#2.htm Download Exercise#2.htm (3.11 KB) Su

ID: 3748037 • Letter: 9

Question

920 > Files > Exercise#2.htm Exercise#2.htm Download Exercise#2.htm (3.11 KB) Suppose an employee gets paid every two weeks and earn $1700 00 each pay period In a year the employee gets paid 26 times. Write a program that defines the following variables pay Amount This variable will hold the amount of pay the employee earns each pay period Initialize the variable with 1700 00 payPeriods This variable will hold the number of pay periods in a year Intialize the variable with 26 annualPay This variable will hold the employee's total annual pay, which will be caleulated The program should calculate the employee's total annual pay by multiplying the emplovee's pay amount by the number of pay periods in a year and store the result in the annualPay variable Display the total annual pay on the screen

Explanation / Answer

Since you have not mentioned the language you are supposed to write the code in, I am preferring JAVA.

Hope this helps!! If yes, then do give a thumbs up!