Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Application And Administration

Authors: Michael Mannino, Michael V. Mannino

2nd Edition

0072880678, 9780072880670

More Books

Students also viewed these Databases questions

Question

LO6 Summarize various ways to manage retention.

Answered: 1 week ago

Question

LO3 Define the difference between job satisfaction and engagement.

Answered: 1 week ago