DIS 511: Program Flow Chart, Decision Tree and Decision Table 1. XYZ company is developing a pay processing program. There are two grades of employees, A and B. Those in A are paid an hourly rate of Ksh 500, while those in B Ksh 700. Required: a) Express the logic using a program flowchart. b) Express the logic using a decision tree. c) Using Excel, develop a program to compute pay and print a pay slip, d) Using a programming language of your choice, develop a program to compute and print pay slip.
Added by Ryan W.
Close
Step 1
a) Express the logic using a program flowchart: Start Input employee grade (A or B) If grade is A Set hourly rate to 500 Else if grade is B Set hourly rate to 700 End b) Express the logic using a decision tree: Is the employee grade A? / Show more…
Show all steps
Your feedback will help us improve your experience
Ernest Castorena and 81 other Calculus 2 / BC educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
(Financial application: calculate tips) Write a program that reads the subtotal and the gratuity rate and computes the gratuity and total. For example, if the user enters 10 for the subtotal and $15 \%$ for the gratuity rate, the program displays 1.5 as the gratuity and 11.5 as the total. Here is a sample run: Enter the subtotal and a gratuity rate: 15.69,15 The gratuity is 2.35 and the total is 18.04
The accompanying graph illustrates two possible wage plans for an employee that include a weekly salary plus commission. The line labeled $L$ represents the weekly wages $W$ (in dollars) under the first plan if the employee sells $n$ items. The line labeled $M$ represents the weekly wages $W$ (in dollars) under the second plan if the employee sells $n$ items. (a) If no items are sold, find the weekly salary under each plan. This is called the base salary. (b) Under what conditions will the wages received under the two plans be the same? (c) Describe how an employee should decide whether to choose plan $L$ or plan $M$
Interpreting Graphs and Systems of Linear Equations
Interpreting Graphs
There are four types of fruits Apples, Oranges, Bananas and Grapes. Each student can pick up two fruits. There are some conditions which have to be used to pick up the fruits. Draw a flow chart which can take the name of first fruit as an input and print the names of second fruit or fruits that can be picked up. The conditions are: If you pick an apple you can pick banana. If you pick orange you can pick grapes. If you pick grapes you can pick banana. Hint: There will be one input box to read the first fruit, three decision boxes and four output boxes in the flowchart.
David M.
Recommended Textbooks
Calculus: Early Transcendentals
Thomas Calculus
Watch the video solution with this free unlock.
EMAIL
PASSWORD