Preview

Algorithms and Flowcharts

Good Essays
Open Document
Open Document
738 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Algorithms and Flowcharts
Algorithm
The term algorithm is often used to refer to the logic of a program It is a step-by step description of how to arrive at the solution of the given problem. It may be formally defined as a sequence of instructions, designed in a manner that, if the instructions are executed in the specified sequence, the desired results will be obtained. In order to qualify as an algorithm, a sequence of instructions must possess the following characteristics:

Sample Algorithms

50 Students in a class appeared in their final examination. Their mark sheets have been given to you. The division column of the mark sheet contain the division (FIRST, SECOND, THIRD or FAIL) obtained by the student. Write an algorithm to calculate and print the total number of students who passed in FIRST division.

Algorithm
Step 1: Initialize Total, First Division, Total _Mark sheets _Checked to zero.
Step 2: Take the mark sheet of the next student.
Step 3: Check the division column of the mark sheet to see if it is FIRST. If no, go to Step 5.
Step 4: Add 1 to Total First Division.
Step 5: Add I to Total_Marksheets_Checked
Step 6: Is Total_Marksheets_Checked = 50? ifno, go to Step 2.
Step 7: Print TotaI First_Division.
Step 8: Stop.
There are 100 employees in an organization. The organization wants to distribute annual bonus to the employees based on their performance. The performance of the employees is recorded in their annual appraisal forms. Every employee's appraisal form contains his/her basic salary, and the grade for his/her performance during the year. The grade is of three categories - 'A' for outstanding, 'B' for good, and 'c' for average performance. It has been decided that the bonus of an employee will be 100% of the basic salary for outstanding performance, 70% of the basic salary for good performance, 40% of the basic. salary for average performance, and zero for all other cases. Write an algorithm to calculate and print the total bonus amount to be distributed

You May Also Find These Documents Helpful

  • Powerful Essays

    Henson Case

    • 1072 Words
    • 5 Pages

    2. For each sub-pool, calculate the amount of the bonus for each store manager assuming that each manager’s score on this measure is used as the basis for allocating the sub-pool bonus. Do this for each…

    • 1072 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    SD1230 Lab 1

    • 239 Words
    • 2 Pages

    1. What is an instruction? – A sequence of bits understood by the processor to signal a certain action…

    • 239 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    BUS 310

    • 3150 Words
    • 11 Pages

    Proposed compensation strategy: The compensation mix consists of three components: base pay, indirect pay and performance pay. The largest part of compensation package in the company will be base pay. The salary will be calculated on monthly basis. In this industry much depends on employees performance: how they treat customers and how they perform their job duties. That is why part of their salary will depend on their performance results. Performance pay will consist of two parts and coincide 10% of total billings. I will give this bonus to technicians, set the goals every two weeks, set achievable goals on the amount of sales and split the bonus equally between the group. In order to work well this plan must be designed with input from employees. Last part of the commission mix is indirect pay plan that will be fixed benefit system where all employees are covered by a standard package of benefits (Long, 2010 p.445). It will include mandatory benefits, health benefits, pay for time not worked and miscellaneous benefits.…

    • 3150 Words
    • 11 Pages
    Powerful Essays
  • Powerful Essays

    Java exam 1 practice test

    • 6434 Words
    • 53 Pages

    A set of instructions that enable the computer to solve a problem or perform a task…

    • 6434 Words
    • 53 Pages
    Powerful Essays
  • Good Essays

    Had Rock Case Study

    • 527 Words
    • 3 Pages

    3. Justify the use of the weighting system used for evaluating managers for annual bonuses.…

    • 527 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    D. Calculate the assignment average for the first student in cell I8. The formula should drop the lowest score before calculating the average. Hint: You need to use the combination of the three functions: SUM, MIN, and COUNT. The first student’s assignment average is 94.2 after dropping the lowest assignment score.…

    • 472 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    T-43 Som Case

    • 405 Words
    • 2 Pages

    Michael Kan, the CEO of Widget, a medium-sized manufacturing company in Shenzhen, has decided to introduce a performance-based incentive scheme. Employees will no longer receive an automatic yearly salary increase. Instead the CEO plans to reward the top 20% of his workers each year with a $10,000 bonus. The eligible employees will be selected based on their annual performance reviews, which are prepared at the departmental level by each employee’s supervisor. Currently, there is no company-wide, standardized formula for how supervisors should evaluate their subordinates. They have however been instructed to keep their average rating near the mid-point on a 10-point scale.…

    • 405 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Experiential Exercises

    • 276 Words
    • 3 Pages

    April Knepper is the new supervisor of an assembly team. It is time for her to make pay raise allocations for her subordinates. She has been budgeted $3,000 to allocate among her seven subordinates as pay raises. There have been some ugly grievances in other work teams over past allocations, so Knepper has been advised to base the allocations on objective criteria that can be quantified, weighted, and computed in numerical terms. After she makes her allocations, Knepper must be prepared to justify her decisions. All of the evaluative criteria available to Knepper are summarized as follows:…

    • 276 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Chapter 9-11

    • 1605 Words
    • 7 Pages

    An algorithm is a methodical, logical rule or procedure that guarantees a solution to the problem. A heuristic is a simpler strategy that is usually faster but has more errors. Insight is not a problem based solution but rather a sudden flash to solve a problem.…

    • 1605 Words
    • 7 Pages
    Good Essays
  • Satisfactory Essays

    The law firm of Smith, Jones, and Greene provides accounting service for some of its clients. The person who handles this service and her secretary cost the law firm an average of $80,000 per year in salary and benefits. Furthermore, the law firm incurs an additional charge of $50 per client for computer time, postage, and supplies. Clients are charged $300 a year for these accounting services.…

    • 2851 Words
    • 12 Pages
    Satisfactory Essays
  • Powerful Essays

    6. Each month if a sales person equals or exceeds a 12% commission target, they receive an additional bonus of $1,250. Insert a column for each month to determine if the sales person will receive the bonus. (This can be achieved by combining…

    • 1247 Words
    • 7 Pages
    Powerful Essays
  • Satisfactory Essays

    Excel Assignment 1

    • 1242 Words
    • 5 Pages

    Please download the spreadsheet Excel Assignment 1.xlsx from Blackboard. Click on worksheet E1 (you may be in Worksheet E1 by default). This spreadsheet keeps track of students’ grades. There are two exams – Exams 1 and Exam 2.…

    • 1242 Words
    • 5 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Chemistry 30s Exam Grade 11

    • 5178 Words
    • 21 Pages

    15–20% 80–85% 22 x 1 = 22 marks 46 x 1 = 46 marks 32 marks 100 marks…

    • 5178 Words
    • 21 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Charismatic Condition

    • 659 Words
    • 3 Pages

    This bar graph will show you the values of the scores starting at 1.5 and going up to 5. The frequency shows us the number of students who picked the…

    • 659 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    Thesis introduction is the first part of a thesis paper. Thesis introduction allows the readers to get the general idea of what your thesis is about. Thesis introduction acquaints the readers with the thesis paper topic, explaining the basic points of the thesis research and pointing the direction of your research.…

    • 1741 Words
    • 7 Pages
    Powerful Essays