Write out the logic to the given problems

Assignment Help Programming Languages
Reference no: EM132411951

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

Put your solutions in a Word document,

Reference no: EM132411951

Questions Cloud

How are employers increasingly using workplace monitoring : Why and how are employers increasingly using workplace monitoring? What are the capabilities of advanced surveillance technologies, and what ethical issues do.
Why is controlling changes to requirements important : Why is controlling changes to requirements important? Why should both the customer (or representative) and developers be involved in decisions on requirements.
Determine the cost of goods available for sale : Inventory as on January 31, 2020 represents three deluxe mixer purchased at a unit cost of $595. Determine the cost of goods available for sale
What privacy issues governing the cyber domain : The CIO of the MAYO CLINIC HOSPITAL you chose read your letter and would like to meet with you to discuss the legal, ethical, and privacy issues governing.
Write out the logic to the given problems : Write out the logic to the following problems. Represent the logic of a decision whether to wear a coat if the temperature is less than 60 degrees Fahrenheit.
What journal entry records the acquisition of the bonds : The bonds mature 10 years from the date of purchase, on December 31. What journal entry records the acquisition of the bonds on January 1, 20X7
Describe the steps of threat modeling : Compare and contrast the process/steps of threat modeling/vulnerability scanning in the following cloud service providers' environments.
Describe the format of the meeting that you attended : Describe the format of the meeting that you attended and provide details about the atmosphere or experience of being in the meeting.
What portion of income included in consolidated return : What portion of Prisha's and Riya's income for current year will be included in consolidated return, assuming its income is earned evenly throughout the year

Reviews

Write a Review

Programming Languages Questions & Answers

  Design tower of hanoi puzzle program

Implement and design Tower of Hanoi Puzzle program using C# and Windows Presentation Foundation WPF template in Visual Studio 2012 or newer.

  Utilize branching and looping syntax with parameters

the file"values.txt" with following data: 88 85 89 64 78 85 92 60 91 96 63 59 83 89 74 93 92 92 63 100. write down the program which will give the following output.

  Evaluate the use of an ide for development of applications

D/615/1618-Programming-Pearson BTEC Levels 4 and 5 Higher Nationals in Computing Specification- Define basic algorithms to carry out an operation.

  Display all names and phone numbers

Allow the user to input a last name; then search the file and display all names and phone numbers corresponding to that last name

  Create and work with an array of strings

Create a simple program which will create and work with an array of strings. This array will then be populated with values, printed out to the console

  Arrays have been declared with the same data type

As you know when two arrays have been declared with the same data type, one array can be assigned to the other. The assignment statement would look like this

  Recursive method to replace all occurrences of character

Write down the program which uses the recursive method to replace all occurrences of character with another character in given sentence.

  Assignment program on crawler game

Update the Crawler game attached to allow a user to traverse the Cave. They should be prompted in each room to pick an exit or quit

  Design and algorithm that compute numbers of married men

Design and algorithm that will read through the file and compute the numbers of married men, single men, married women and single women.

  Write a method named maxelement

Write a method named maxElement, which returns the largest value in an array that is passed as an argument. The method should use recursion to find the largest element. Demonstrate the method in a program.

  Create a tic-tac-toe program

Without using the Graphics API In Raptor Programming software could you please create a tic-tac-toe program that allows two to three players using a two dimensional string array with three rows and three columns as the board

  Explain the interaction framework

Explain the Interaction Framework discussed by Steven Heim (2008). Choose a computing device (like an ATM machine or the self-check-out at a grocery store

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