# 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.
Military
good job
Customer 456821, October 24th, 2022
Education
Great work. Keep it up
Customer 463647, December 22nd, 2022
Other
Good work.
Customer 463001, May 27th, 2022
Communications
best writer and customer service. Thanks Tony!
Customer 462787, August 30th, 2022
Other
Customer 459155, May 31st, 2022
Education
yes I did
Customer 453969, February 11th, 2020
Military
Excellent job
Customer 456821, November 30th, 2022
SEO
All instructions well followed.
Customer 463813, March 8th, 2023
Other
This discussion paper is satisfactory and I will accept it "as is." There are changes that need to be made, but I will make them myself rather than requesting revisions and waiting hours for the completed work.
Customer 452455, February 22nd, 2023
English 101
Good job
Customer 454209, June 2nd, 2020
Public Relations
Good Job, Keep up the good work!
Customer 452621, February 5th, 2020
Quora
The instructions were followed but, there are a few mistakes you should correct
Customer 452441, March 25th, 2022
11,595
Customer reviews in total
96%
Current satisfaction rate
3 pages
Average paper length
37%
Customers referred by a friend