1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
lana66690 [7]
2 years ago
7

My assignment asks me to write a python program using if, elif, and else that takes a user's salary and calculates the tax based

on three given criteria:
> for a salary between 10,000 and 20,000, tax is at 1%
> for a salary between 20,000 and 30,000, tax is at 2%
> for a salary greater than 30,000, tax is at 3%
> there is no tax otherwise

Criteria 1 and 2 seem to overlap because of 20,000. How can I solve this? Thanks!
Computers and Technology
1 answer:
Goryan [66]2 years ago
8 0

Answer:

user_salary = int(input("Please Enter Your Salary : "))

if user_salary in range(10000, 20000):

   print("Tax = ",int(user_salary/100*1))

elif user_salary in range(20000, 30000):

   print("Tax = ",int(user_salary/100*2))

elif user_salary in range(30000, 40000):

   print("Tax = ",int(user_salary/100*3))

else:

   print("No Tax!")

Explanation:

You might be interested in
) Printers today have many features that include improved quality, photo printing capabilities, digital camera connectivity, bui
Sidana [21]

Explanation:

Some of the most important features needed in a printer are:

  • fast printing speed
  • support wireless connectivity
  • support colored/uncolored printing
  • include improved text quality,
  • improved photo printing capabilities

Based on market prices available on the Amazon website, a printer with the above capabilities start at a price range of <em>at least</em> $80.

4 0
3 years ago
As a Waterfall project manager, your goal is to minimize any changes that could lead to scope creep. You want to protect your te
Harrizon [31]

The necessary things that should be done to avoid a project scope creep include documenting the project requirements and setting up change control processes.

The scope of a project simply means the work that is required in order to complete a project. On the other hand, project scope creep means the occurrence that happens when changes are made to the scope without a change request.

To avoid project scope creep, it's important to document the project requirements, set up changes in control processes, and have a clear project schedule.

Learn more about projects on:

brainly.com/question/4853153

8 0
3 years ago
How can the font type of an existing style named No Spacing be changed?
OLga [1]

Manually change the font type of the style in any place in the document it has been applied, right-click, and select Styles and Update No Spacing to Match Selection.

<u>Explanation:</u>

Styles fonts can be modified directly from home tab by selecting style sheets and apply changes. User can also select existing styles and select save selection as new quick style. Once user selected they can either modify or create new style.

There multiple options are available. End user can select based or their requirements. There is option to do automatic update on styles fonts for open document.

In below screen there is following options, such as fonts, paragraph, tabs, border, language, frame, numbering, short keys, text effects.

User can select fonts and select no of spacing methods and apply the changes to all document or current documents.

6 0
3 years ago
Read 2 more answers
Help me please!! Brainliest for answering this question.
cluponka [151]

That sounds like a reader's activity level

8 0
3 years ago
Demi loves playing online games. She surfs through many websites to find new, interesting games. One day she finds that her mail
Marianna [84]

Answer:

Option (B) is the correct answer.

Explanation:

The following terms are as follows:

Firewall: Firewall can be described as a security system for a network, which is used to check the incoming and outgoing data on the network on the basis of rules determined by the system.

Spyware: Spyware defines as a program that can record your activity secretly and then use it for many purposes i.e advertisements, promotions, and many other legal and illegal purposes.

Bastion host: Bastion host mainly used to access the private network from any other network.

Attack trees: Attack trees are used to examine the security of any system against any attacks.

According to the scenario, the most appropriate answer is option (B) because spywares are also used for promotion.

4 0
4 years ago
Other questions:
  • Variable names may contain spaces and punctuation symbols. True False
    15·1 answer
  • Create a java program that creates two files. Fill each file with 100 random integer numbers between 1 and 20.
    13·1 answer
  • Which AWS service is a managed service that makes it easy to set up, operate, and scale a relational database in the cloud?​
    9·1 answer
  • Should i turn off my computer when a program becomes unresponsive?
    14·1 answer
  • Ron wants to install an energy efficient and long lasting device for lighting in his new home. Which device should he use?
    11·2 answers
  • ​in a data dictionary, a(n) _____ is the smallest piece of data that has meaning within an information system.
    10·1 answer
  • a mobile base in an urban environment has the power of 15 microW at 175 m. If the propagation follows an inverse cube power law,
    11·1 answer
  • Which is said to be ‘computer on a chip’ (a) Micro processors (b) Microcontrollers (c) Both (c) None of the above
    9·1 answer
  • Its an HTML5 anyone kwons
    15·1 answer
  • a client device on your network is trying to authenticate via radius proxy, but is failing. you check the relevant policy on the
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!