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
  • 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
  • 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

    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
  • 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
  • Good Essays

    Thirty managers, including all line managers at the level of division manager and above plus key corporate staff managers, were eligible for an annual management bonus award. (Many lower-level employees were included in a separate “management-by-objectives” incentive plan.) The management bonuses were based on company-wide performance. Each year, a bonus pool equal to 10 percent of the corporation's profit after taxes in excess of 12 percent of the company's book net worth was set aside for assignment as bonuses to managers. This amount was divided by the total salary of all the executives eligible for a bonus. This yielded an “award per dollar of salary.” The maximum bonus paid was 150 percent of salary.…

    • 461 Words
    • 2 Pages
    Good 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

    Rubiks Cube

    • 1433 Words
    • 6 Pages

    B. What is a algorithm? A algorithm is a set of rules to be followed in calculation or other problem-solving operations.…

    • 1433 Words
    • 6 Pages
    Powerful Essays
  • Good Essays

    The organizations had to change reward system to improve the performance of employees such as bonus pay. Bonus pay is monetary compensation over and above the amount of pay specified as a base salary or hourly rate of pay. Bonus pay can influence the employees to change their behavior in perform well in their job. The employees will improve their performance if bonus based on target of sales in the company.…

    • 569 Words
    • 3 Pages
    Good 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