Write down a program which will determine the tax rate on an employee based on gross pay. He or she will fall into a different tax bracket for anything over $5,000.00. Make use of the following criteria:
Gross pay Tax Rate
Less than $1,500 15%
Between $1,500 and $2,999 19%
Between $3,000 and $4,999 21%
Use the structured pseudocode as demonstrated in lectures for code, assure that all the variables are declared, prompt user for the suitable input, and show a meaningful output message. Assure the provided weekly gross pay is less than $5,000.00.