Question: Develop ONE project with the following features: (NOTE: You are expected to submit only ONE program, not a group of programs. Put all these features
Develop ONE project with the following features: (NOTE: You are expected to submit only ONE program, not a group of programs. Put all these features into one program) Topic: simple loop Display 1000, 1010, 1020, 1030... 1190, 1200 Topic: simple loop. Display "Enter the price: 1. Get the input from the user for the price. 2. Display "You need to pay $x for tax." The x should be 7% of the price. 3. Display "More items? y' 4. If you user answers 'Y. go back to 2 and ask the price again. If the user answers 'n proceed to 3. Topic: nested loop. Display the sum of 1 to 100 (.e., 1+2+3+4+...+99+100). Do the same for the sum of 101 to 200 201 to 300, 301 to 400,... 2901 to 3000. One sum on a line. The output will look like: 5050 15050 Topic: function Develop a function taxd). It takes a double parameter income as the input. The function returns the tax amount. This is how the tax amount is calculated: If the income is less than 20000, the tax amount is 0. If the income is over 20000, the tax amount is 3% of the part of income that is over 20000. For example, if the income is 30000, the taxable income is (30000-20000) - 10000, and the tax amount is 10000'0.03 - 300. Topic: call function. In the main function, ask the user to enter the income. Display "Your tax is sy." The y will have to be obtained by calling the tax() function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
