Represent the logic of a program that allows the user the decide if an employee is eligible for overtime pay. If the employee is hourly, then output "Eligible for overtime," and if the employee is salaried, then output "Not eligible for overtime."Represent the logic of a program decides which award to give an employee based on years of service. Someone with more than 25 years of service gets a gold watch, and someone with 25 years or less of service receives a pen and pencil set.Represent the logic of a program that allows the user to enter a value between 1 and 100. The program determines if the value is even or odd, and outputs either "The number is even," or "The number is odd."

Respuesta :

Answer and Explanation:

Employee wage at $$ per hr=>"eligible for overtime"

Employee wage at $$ per month=> "not eligible for overtime"

Employee years> 25 years of service= gold watch

Employee years=<25 years of service= pen and pencil set

Input value

Min 1, Max 100

Divide input value by 2

Output number is even if divided by 2

Else output number is odd

From the above, we have used pseudo code to state program logic which we can use to transform logic into code that can be compiled.

Logics in computer programs are used to make decisions by determining the truth values of a conditional statement.

Program (a): Overtime pay

Input pay, rate

If rate =="Hourly" then

  print "Eligible for overtime"

Else if rate =="Monthly" then

  print "Not eligible for overtime"

Program (b): Service year

Input years

If years > 25 then

  print "Gold"

Else

  print "Pen and Pencil"

Program (c): Even or Odd

Input number

If number % 2 = 0 then

  print "Even"

Else

  print "Odd"

Read more about logical operators at:

https://brainly.com/question/2467366

ACCESS MORE