Question: Using the brewbeans database: declare a bind variable called g_state that takes as input the abbreviation of the state. if the state value is VA
Using the brewbeans database:
declare a bind variable called g_state that takes as input the abbreviation of the state. if the state value is VA then the tax is 4%, if the state value is NC then the tax is 2%, and if the state value is NY then the tax value is 6%. Write the code using case statements and test the code and check what happens if you enter a state value other than the three stated in this question. Rectify the error through exception handling
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
