Write out logic of program that allows user to enter a value

Assignment Help Computer Engineering
Reference no: EM132283616

Question: 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."

Reference no: EM132283616

Questions Cloud

What can you find in the literature : Discuss which emerging technologies will have the largest impacts on B2B EC. Some say that e-commerce signifies a move from a transaction focus.
What are network externalities : MAN 4054: MANAGING INNOVATION : What are network externalities? How do network externalities influence value of a product/service?
Explain essential responsibility of command center operator : Please explain least three (3) essential responsibilities of a command center operator? There are five main types of glass, list and write at least one.
Prepare business plan to open surgical instruments : I would like to prepare a business plan to open a surgical instruments, scopes, and equipment company.
Write out logic of program that allows user to enter a value : Write out the logic to the following problems. Write out the logic to the following problems.Represent the logic of a program that allows the user to enter.
What business or cultural norms would you have to be aware : What business or cultural norms would you have to be aware of to lead successfully in this new environment?
Give an example of work of art or architecture : Give an example of a work of art or architecture that shows an artist’s personal need to create and another example of a work that shows a communal need.
What is your opinion of the protestant work ethic : Discuss the advantages of bringing a cooperative spirit to the workplace. What is your opinion of the Protestant Work Ethic?
Describe how firm intends to create and sustain value : Describe how a firm intends to create and sustain value for its shareholders

Reviews

Write a Review

Computer Engineering Questions & Answers

  Describe the methodology behind constructing one

Define a work breakdown structure and describe the methodology behind constructing one. Contains at least five main tasks, one for each of the PMBOK process areas.

  Write a program asking the user to enter two names

Write a program asking the user to enter two names. Compare and if they are the same, display a message saying so.

  Write a proper c program that makes use of a function

Write a proper C program that makes use of a function to accept user inputs and updatesmembers of a structure.

  When do you think operations people should get involved

What should the systems analyst do if management's goals and priorities are in conflict? When do you think operations people should get involved in a project?

  Which process is the best choice

In SQL Server, multiple WHERE statements can accomplish almost everything that a UNION can. TRUE OR FALSE. Justify your reply . This question is not asking that method is the best choice or the more efficient. It is simply asking is it possible.

  Identify specific issues addressed in given article

Identify specific issues addressed in article, discuss whether information in article applies to this course and how the author could expand on main points.

  Explain about doing ethics technique

The Doing Ethics Technique (DET), ensuring you address each of the DET questions and relating specific clauses from this code to the ethical issue/s, you have identified.

  How much of a difference is there for different sizes

how much of a difference is there for different sizes, you should record this in your 'readme' file Both the unsorted and sorted lists must be written.

  Transmitting the rtp stream

Consider that a sender transmits a silence suppressed the RTP stream of G.711 audio to the receiver (G.711 refers to the name of standard for 64Kbps PCM we discussed in class).

  The bookstore wants you to make an object-oriented model

student bookstore at pleasant creek community college situation the bookstore staff at pleasant creek community college

  Demonstrate a connection to your current work environment

Demonstrate a connection to your current work environment. If you are not employed, demonstrate a connection to your desired work environment.

  Create the logic for an application that contains an array

Create the logic for an application that contains an array of 10 multiple-choice questions related to your favorite hobby.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd