Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You have been asked to develop a Python program that will assist a clerk who works at the Clark County Assessors Office that will assist

You have been asked to develop a Python program that will assist a clerk who works at the Clark County Assessors Office that will assist them calculating property tax for a given list of properties. The list is printed out by the clerk on paper. Don't use a Python list for this problem. It's not needed. :-).

The calculation used:

```text

property tax = property value x 0.0170

```

In your interview with the tax clerk Bruce, you learn that each peroperty ia assigned a lot number, and all lot numbers are numbered 1 or greater.

You decied to write a while loop that uses the number 0 as a **sentienl value**. During each loop iteration, the program will ask the clerk to enter either a property's lot number, or 0 to end.

Your program should ask for a lot number and the print out the proeprty tax if the lot number is greater than 0.

You will need to keep processing lots until the clerk is done using 0 as the sentinal for the lot number.

Name your function **taxProcessor()**.

here is the code but i got error red line at break

def taxProcessor():

n = int(input())

while(true):

if(n > 0):

property_value = n

property_tax = property_value * 0.0170

print(property_tax)

else:

if(n == 0):

break

taxProcessor()

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 And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 1 Lncs 13426

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124227, 978-3031124228

More Books

Students also viewed these Databases questions