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
NeTakaya
3 years ago
10

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

ome 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 finance() Parameters Result
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 an okay income but too high a sales price.
Computers and Technology
2 answers:
Monica [59]3 years ago
8 0

Answer:

hey

Explanation:

vichka [17]3 years ago
7 0
The correct answer is B
You might be interested in
Hi i choose brainlyest 4 free
irinina [24]

Answer:

bet

Explanation:

7 0
3 years ago
Read 2 more answers
Why is Internet fraud becoming increasingly common?
Nikitich [7]
The internet has billions of users, and is gaining more everyday. As people gain more and more technological resources, it becomes easier for them to steal people’s information.
7 0
3 years ago
Populate a stack with ten random integers and empty it by showing that the order of the elements is reversed, from last to first
Anuta_ua [19.1K]

Answer:

class Main {  

 public static void main(String args[]) {

   Deque<Integer> stack = new ArrayDeque<Integer>();

   Random rand = new Random();

   for(int i=0; i<10; i++) {

       int n = rand.nextInt(100);

       System.out.printf("%02d ", n);

       stack.push(n);

   }

   

   System.out.println();

   

   while(stack.size() > 0) {

       System.out.printf("%02d ", stack.removeFirst());

   }

 }

}

Explanation:

example output:

31 18 11 42 24 44 84 51 03 17  

17 03 51 84 44 24 42 11 18 31

4 0
3 years ago
What is the definition of a performance, such as a poetry reading? O A. A work of art installed in public OB. A presentation of
Anvisha [2.4K]

Answer:

(B) A presentation of creative works.

Explanation:

Because performing is similar to presenting and poetry is similar to free writing, or creative words.

3 0
3 years ago
hey guys just dropped some hot beats so go and follow me my user is the beats and comment if you would do that that would be gra
ki77a [65]
Yes i will check it o it
4 0
3 years ago
Other questions:
  • Match terms in the first column with the order descriptions in column two.
    11·1 answer
  • You have connected thirteen pcs and laptops to a wireless network. to make your wlan more secure, what should you do to disallow
    11·1 answer
  • William has an internet connection that does not allow him to make calls when connected to the internet. what internet service c
    7·2 answers
  • Amina question and any other )
    14·1 answer
  • Cuál ha sido el papel de las tecnologías de la información y los medios de comunicación en el fenómeno de la globalización​
    10·1 answer
  • --------------------------------------------------------------------------------------------------------------------------------
    8·1 answer
  • Greg wants to check the amount of requests his website receives. What test can he use?
    6·1 answer
  • On React
    13·2 answers
  • Who is primarily responsible for ensuring cybersecurity in society? Select 3 options.
    15·1 answer
  • The user can close all the programs if he closes the open virtual desktop true false
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!