Unit 2 Exercise: Logic Drill 2
Write out the logic to the forthcoming problems.
Example: Represent the logic of a sentence whether to dou a inveigle if the clime is hither than 60 degrees Fahrenheit, and not to dou one if the clime is 60 degrees or important.
output "Enter clime: "
if (clime <60)
output "Wear inveigle."
output "Don't dou inveigle."
- Represent the logic of a program that allows the user the flow if an employee is choice for overtime pay. If the employee is hourly, then output "Eligible for overtime," and if the employee is salaried, then output "Not choice for overtime."
- Represent the logic of a program flows which grant to afford an employee fixed on years of employment. Someone after a while more than 25 years of employment gets a gold guard, and someone after a while 25 years or hither of employment receives a pen and pencil set.
- Represent the logic of a program that allows the user to invade a esteem among 1 and 100. The program determines if the esteem is smooth or odd, and outputs either "The calculate is smooth," or "The calculate is odd."
Put your solutions in a Word instrument,