1) A) Use a loop to print a list of numbers from 1 to 20. You can use either a ‘while’ loop or a ‘for’ loop.
1
2
3
.
.
20
B) Below that, add another loop that will display the numbers 1 through 10 and the times table for the number 7, like this:
1 times 7 is 7
2 times 7 is 14
3 times 7 is 21
.
.
10 times 7 is 70
C) Allow the user to enter a number to be used in the times table in place of the 7.
2) A) Use an ‘if’ statement to calculate the taxes due based on a flat tax rate of 10%, with no taxes due for anyone who has a salary less than $10,000. For this part you can enter the salary directly in the code.
B) Setup the HTML page to allow the user to enter a salary.
C) Adjust your formula so that the tax rate on all income about $25,000 is 20%.
1
Expert's answer
2012-05-08T08:17:55-0400
Unfortunately, your question requires a lot of work and cannot be done for free. Submit it with all requirements as an assignment to our control panel and we'll assist you.
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment