Design a flowchart or pseudo code for the following

Assignment Help Basic Computer Science
Reference no: EM131096516

Diana Lee, a supervisor in a manufacturing company, wants to know which employees have increased their production this year over last year so that she can issue them certificates of commendation and bonuses. Design a flowchart or pseudo code for the following:

a. A program that continuously accepts each worker's first and last names, this year's number of units produced, and last year's number of units produced. Display each employee with a message indicating whether the employee's production has increased over last year's production.

b. A program that accepts each worker's data and displays the name and a bonus amount. Th e bonuses will be distributed as follows:

If this year's production is greater than last year's production and this year's production is:

• 1,000 units or fewer, the bonus is $25

• 1,001 to 3,000 units, the bonus is $50

• 3,001 to 6,000 units, the bonus is $100

• 6,001 units and up, the bonus is $200

c. Modify Exercise 9b to reflect the following new facts, and have the program execute as efficiently as possible:

• Thirty percent of employees have greater production this year than last year.

• Sixty percent of employees produce over 6,000 units per year; 20 percent produce 3,001 to 6,000 units; 15 percent produce 1,001 to 3,000 units; and only 5 percent produce fewer than 1,001 units.

10. In many programming languages you can generate a random number between 1 and a limiting value named LIMIT by using a statement similar to random Number = random(LIMIT). Create the logic for a guessing game in which the application generates a random number and the player tries to guess it. Display a message indicating whether the player's guess was correct, too high, or too low.
(After you finish Chapter 4, you will be able to modify the application so that the user can continue to guess until the correct answer is entered.)

Reference no: EM131096516

Questions Cloud

Securities and exchange commission : The Securities and Exchange Commission (SEC) filed a suit in a federal district court against Darla and others for alleged violations of, among other things, SEC Rule 10b-5. [ SEC v. Falbo 14 F.Supp.2d 508 (S.D.N.Y. 1998)]
Give explanation for this based on price discrimination : The Taos Pueblo is an ancient American Indian community in New Mexico that admits tourists. The admission fee is $5 per car plus $5 per camera. Give an explanation for this based on price discrimination. Give an explanation for this that is NOT based..
Employer provides health insurance policy : Suppose your employer provides a health insurance policy that pays 80 percent of $1 over the first $100 spent. If you incur $1,000 in expenses, how much will you pay out of pocket? What percentage of your expenses will this be?
Problems in the supply chain : Identify where products are running out (especially special offers and fresh foods). Think about the types of products that are running out and think of problems in the supply chain that could explain these shortages.
Design a flowchart or pseudo code for the following : Diana Lee, a supervisor in a manufacturing company, wants to know which employees have increased their production this year over last year so that she can issue them certificates of commendation and bonuses. Design a flowchart or pseudo code for t..
Compare presidential and congressional budget-making process : Compare the presidential and Congressional budget-making processes. How do these processes affect public policymaking? Discuss how presidential impoundment powers and legislative vetoes have influenced the budget process
Obtaining computer with enough power to handle his algorithm : Nick D’Aloisio isn’t your average 17 year old high school student. Instead of spending his summers at the movies or at a minimum wage job, Nick spent the last three summers, at an average of 17 hours per day, writing a program called Summly (formally..
Analyze the efficiency of your algorithm : The algorithm presented in Figure 4.8 retains no information between invocations of FIRST. As a result, the solution for a given nonterminal might be computed multiple times.
Equilibrium wage differential between safe and risky jobs : Suppose there are 100 workers in the economy in which all workers must choose to work a risky or a safe job. Worker 1’s reservation price for accepting the risky job is $1; worker 2’s reservation price is $2, and so on. Because of technological reaso..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Write an expression that returns a random value

Write an expression that returns a random value between 1 and 100. The values 1 and 100 must be included in the values that can be returned.

  How does this method avoid an attempted deletion from list

How does this method avoid an attempted deletion from an empty list?

  Basic excel modeling

Input a formula in cell C2 of the "converted_data" sheet that convert the "time to complete" value in cell C2 of the "raw_data" sheet (and is in seconds) to a corresponding value in minutes. Drag this formula down to cell C29 (on the "converted_da..

  Code a method called calcremainder

Code a method called calcRemainder() that receives two integers through its parameter list and returns

  Identify the software product

In MS-DOS 5.0, which is the number that acts as a code to uniquely identify the software product?

  Create a vbscript scripting file

When you create a VBScript Scripting.FileSystemObject, you must start the.....____. Which one of the following is NOT a Windows file attribute

  What is not considered a cloud application

One day you decide to turn in a resource paper that you found on the Internet. What is not considered a Cloud application

  Describe what policy changes you would implement to mitigate

The damaging scandals of Wikileaks/Bradley Manning and Edward Snowden demonstrate a series of critical failures of existing security policy.1. For both scandals describe the policy failures that you believe were responsible for the incidents. 2. Desc..

  Are they similar across web sites

Are they similar across Web sites?

  Determine if pvss has ever conducted an audit

Your project lead has asked you to determine if PVSS has ever conducted an audit. After further investigation of the situation, you determine that this will be the first review that PVSS has conducted or to which it has been subjected. Your project l..

  What are ids and ips

Write a 2-3 page paper that fully answers the questions.

  Why would anyone use hexadecimal or octal nowadays

What types of data formats are there? Why are there so many? Can you tell from looking at a string of bits exactly what the data represents?

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