Question: In this section, you will be converting a conditional statement to a switch. The scenario is a code used for calculating the taxes if a
In this section, you will be converting a conditional statement to a switch. The scenario is a code used for calculating the taxes if a community has a well. The communities will get taxed based on the number of wells they have. The tax rates are as follows: o No wells = 1% rebate o 1 well = 2% increase o 2 wells = 4% increase o 3 wells = 5% increase o 4 wells or more = 6% increase Your programmer has created the code for an else if statement but you wanted a switch statement. Using the code she has created (commented out in the Lab2bSwitch.HTML file), make a switch statement that calculates the taxes for a community based on their well count. Also, see if you can simplify the redundancy of tax calculations and make the code more efficient. To Be Handed In: 1 Zip file containing both HTML files with the modified JavaScript.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
