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
vlabodo [156]
3 years ago
13

. Consider a function that will test whether a person is qualified to finance a luxury car. They are qualified if their annual i

ncome is greater than $100,000 and the sales price is less than $1,000,000. Income and sales price are parameters of the function. The function returns a message to the program stating whether the person is qualified or not. a. Complete this function table Name Purpose Parameters Result finance() b. Write the function: c. Write a Python program that inputs income and sales price from the user. Using a while loop, the program validates the income is greater than zero. The program invokes the finance() function with this print statement: "print (finance (income, salesPrice))" d. Test your while loop by seeing what happens when an invalid income is input and then a valid income. Then run your program once with too low an income to finance but okay sales price, once with an okay income and okay sales price, and once with a
Computers and Technology
1 answer:
Helga [31]3 years ago
7 0

Answer:

def finance(income, salesPrice):

   if income > 100000 and salesPrice < 1000000:

       return "You are qualified."

   else:

       return "Your are not qualified!"

   

   

while True:

   income = int(input("Enter your income: "))

   if income <= 0:

       print("Invalid income!")

       break;

   else:

       salesPrice = int(input("Enter the sales price: "))

       print (finance(income, salesPrice))

Explanation:

Create a function called finance that takes two parameters, income and salesPrice

Check if income is greater than 100000 and salesPrice is greater than 1000000. If they are, return you are qualified. Otherwise, return your are not qualified.

Create a while loop that iterates until the user enters an income that is smaller than or equal to 0. Otherwise, ask the user to enter the sales price and call and print the finance function with given inputs to see the result.

You might be interested in
You need to install an RODC in a new branch office and want to use an existing workgroup server running Windows Server 2012 R2.
klio [65]

Answer:

You should do the following:

  • Create an account of computer for RODC in the domain controller OU (Organizational unit) as well as allow the Micheal's account to join the computer to the domain.

Explanation:

RODC:

It is called as Read only domain controller that is used to ensure the protection of the servers at remote offices of an organizations.

  • In this case, you are installing an RODC in a new branch office that is remote. For installation of RODC on windows server 2012 R2, we need to create an account for the computer in the domain controller organizational unit for the installation of RODC.
  • We also need to create an account for Micheal's with the privilege to join that computer to the domain.

5 0
3 years ago
Essay:
nirvana33 [79]

Answer:

1) There are three ingredients needed to access the Internet from a laptop or desktop computer: (1) an ISP, (2) a modem and (3) a Web browser.

2) yeah ofcourse social media ia a very helpful tool for people because it helps us connect with people all around the globe.It helps you clear you doubts for the perfect example is now.You know you are clearing your doubt here in brainly which can be considered as a social media.

8 0
3 years ago
What happens when your computer is in hibernate mode??
Alina [70]
I think hibernate is sort of like sleep mode. It puts your computer on low battery, but it's not turn off. And some unsaved information doesn't get erase.
6 0
3 years ago
Read 2 more answers
A very simple device that connects network components and sends packets of data to all other connected devices is called a _____
Nadusha1986 [10]
A. hub

I can't think of a good reason to use a hub anymore, I always use a switch instead.
3 0
3 years ago
How do you change your password on this? This isn’t really a “Question” but....
MissTica
You go to edit profile and press the change password button.  click on profile pic
5 0
4 years ago
Read 2 more answers
Other questions:
  • Which best describes a VPN?
    14·2 answers
  • Canadian Tire is one of Canada’s largest companies. They operate four large distribution centers service over 470 tire retail ou
    5·1 answer
  • I can't see the answer
    13·2 answers
  • A company that wants to send data over the Internet has asked you to write a program that will encrypt it so that it may be tran
    6·1 answer
  • (True/False) Utilizing a higher bandwidth can support a larger volume of data (in bits per second) to be transmitted than a lowe
    13·2 answers
  • Can you find the ip address from a physical address
    13·1 answer
  • What are the first steps in creating a business document
    6·2 answers
  • A cable that connects the computer to the printer is an example of<br> A.hardware<br> B.software
    13·2 answers
  • Why is data processing done in computer?​
    14·1 answer
  • Consider a Dog class and a Mammal class. Which is true? Group of answer choices The Dog class is abstract The Mammal class is co
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!