# Logic drills | Computer Science homework help

Write out the logic to the following problems.

Example: Represent the logic of a decision whether to wear a coat if  the temperature is less than 60 degrees Fahrenheit, and not to wear one  if the temperature is 60 degrees or greater.

Solution:

start

Declarations

integer temperature

output “Enter temperature: “

input temperature

if (temperature <60)

output “Wear coat.”

else

output “Don’t wear coat.”

end if

stop

1. 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.”
2. 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.
3. 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.”
Calculate the price
Pages (550 words)
\$0.00
*Price with a welcome 15% discount applied.
Pro tip: If you want to save more money and pay the lowest price, you need to set a more extended deadline.
We know how difficult it is to be a student these days. That's why our prices are one of the most affordable on the market, and there are no hidden fees.

Instead, we offer bonuses, discounts, and free services to make your experience outstanding.
How it works
Receive a 100% original paper that will pass Turnitin from a top essay writing service
step 1
Fill out the order form and provide paper details. You can even attach screenshots or add additional instructions later. If something is not clear or missing, the writer will contact you for clarification.
Pro service tips
How to get the most out of your experience with Australia Assessments
One writer throughout the entire course
If you like the writer, you can hire them again. Just copy & paste their ID on the order form ("Preferred Writer's ID" field). This way, your vocabulary will be uniform, and the writer will be aware of your needs.
The same paper from different writers
You can order essay or any other work from two different writers to choose the best one or give another version to a friend. This can be done through the add-on "Same paper from another writer."
Copy of sources used by the writer
Our college essay writers work with ScienceDirect and other databases. They can send you articles or materials used in PDF or through screenshots. Just tick the "Copy of sources" field on the order form.
Testimonials
See why 20k+ students have chosen us as their sole writing assistance provider
Check out the latest reviews and opinions submitted by real customers worldwide and make an informed decision.
Retail
Well done. Looking foward to working with you again
Customer 463463, December 12th, 2022
Good work!
Customer 463337, March 10th, 2023
Medicine
Always and on time delivery
Customer 453879, September 4th, 2023
Military
Very good job
Customer 456821, May 11th, 2022
We crafted. Thanks
Customer 463647, November 29th, 2022
Thank you!
Customer 453187, January 11th, 2022
Nursing
Great Job! Thank you for your help :)
Customer 454007, May 24th, 2020
lesson plan
great work
Customer 454025, April 10th, 2020
Ethics
Writer did do a good job in answering my question and assignment!
Customer 454777, July 8th, 2020
Other
great job, thanks
Customer 462485, March 18th, 2022
Military
good job
Customer 456821, November 21st, 2021
English 101
Good response. Next time, properly capitalize headings in the requested style.
Customer 460641, March 30th, 2022
11,595
Customer reviews in total
96%
Current satisfaction rate
3 pages
Average paper length
37%
Customers referred by a friend