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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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