Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Draw the flowchart or write the pseudocode for a program that will display an employee's bonus amou based on the department in which he or

image text in transcribed
Draw the flowchart or write the pseudocode for a program that will display an employee's bonus amou based on the department in which he or she works. The program should begin by prompting th e user for the employee's worker identification num ber (WIN) A valid WIN has exactly five characters (which may include letters and/ or digits). Use an error trajp prevent the program from continuing until the user enters a valid WIN to The program should then prompt the user for the employee's department number (a whole number). There are fifteen departments in this company, numbered 101 to 115. Use another error trap to prevent program from continuing until the user enters a valid department number. Once the user enters valid values for both inputs, the program should display the bonus amount (formatt as currency) based on the department number as follows: ed Departments 101, 102, 103, 104 105, 106 107, 108, 109, 110 111, 112 113, 114, 115 Bonus S50 S125 $75 S100 PROGRAM OUTPUT EXAMPLE (your wording may vary; input shown in bold) Please enter the employee's WIN: W026 [Enter] ERROR A valid WIN has five characters. Please re-enter: W0026[Enter Please enter the employee's department number: 12 [Enter] ERROR! Valid departments range from 101 to 115. Please re-enter: 112 [Enter] This employee will earn a bonus of $150.00 WARNING: This is just an example! Your assignment is to write a program (in flowchart or pseudocode form) that would work with any input values (including as many invalid input values as the user might enter), not to come up with another program output example or to use these specific values You must use the key words and/or symbols specified in the textbook and lecture notes for each statement do not use a specific programming language. Your variable names must follow the standards set in the textbook and lecture notes, and each variable used in your program must be declared (with an appropriate data type) before it is used. You may write the program with or without separate modules or functions

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Handbook Of Relational Database Design

Authors: Candace C. Fleming, Barbara Von Halle

1st Edition

0201114348, 978-0201114348

More Books

Students also viewed these Databases questions