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
vekshin1
3 years ago
7

The East Coast sales division of a company generates 62 percent of total sales. Based on that percentage, write a Python program

that will predict how much the East Coast division will generate if the company has $4.6 million in sales this year. You should not perform the calculation by hand and put the result into the program; instead, your program would write a formula to do the computation and display the result.
Computers and Technology
1 answer:
Gennadij [26K]3 years ago
8 0

Answer:

def prediction(sales):

print(0.62 * sales)

prediction(4600000)

Explanation:

Code written in python :

We could write it out has a function :

The code is written has a function ;

'def' starts the function which is named prediction. The function takes in a single argument which is the amount of sales made. Since the percentage of sales generated is a constant pegged at 62%. The expression print( 0.62 * sales) outputs the amount generated by east coast. The function call; prediction(4600000) prints the amount generated if a sales of $4600000 is made.

You might be interested in
What can i use to erase data off computer and what name of it and steps
swat32
Is it mac i know how
5 0
3 years ago
Marsha is working on a group project and needs to start putting together a slide presentation for the group. Two of her group me
Zigmanuir [339]

Answer:

Apple iWork.

Explanation:

Apple iWork would not work for whole group.

6 0
4 years ago
When a function accepts multiple arguments, does it matter in what order the arguments
Marina CMI [18]

Answer:

yes, it matter in what order the arguments  are passed.

Explanation:

when we define the function in the programming, you have to call the function as well.

In the calling function, we passed the arguments.

In the define function, parameters in declare for taking a copy of the arguments.

for example:

int print(int value, double price, char a){

    statement;

}

//calling

print(5, 7.8, 'a');

So, in the calling function the order of the argument changed, it gives the compile error.

because 5 is the integer, so you have to store in the int parameter.

print(7.8, 5, 'a'): if we try to do that, 7.8 which is double store in the wrong integer parameter, it gives the wrong output.

similarly, if we define the array in the parameter and pass the integer in the argument on the same location. it gives the compile error.

Therefore, the location must be the same.

7 0
3 years ago
Schematic diagrams tell electricians where the _______ must come from either to open or close contacts.
sergeinik [125]
The answer is A I hope you get it right!
6 0
3 years ago
Frank works for an organization that wishes to install a software program on a single server with multiple users connected. Whic
omeli [17]

Frank who want to install a software program on a single server with multiple users connected should consider cloud computing. This type of computing delivers convenient, on-demand, pay-as-you-go access for multiple customers to a shared pool of configurable computing resources, which is exactly what Frank needs.

3 0
3 years ago
Read 2 more answers
Other questions:
  • Java languageThe cost to ship a package is a flat fee of 75 cents plus 25 cents per pound.1. Declare a constant named CENTS_PER_
    5·2 answers
  • Consider the following statement from the CS Principles course framework: The global distribution of computing resources raises
    12·1 answer
  • Write an expression using membership operators that prints "Special number" if special_num is one of the special numbers stored
    13·1 answer
  • Explain why it is wise to remember your social security number
    15·2 answers
  • Menus are attached to the windows by calling
    15·1 answer
  • Which is the purpose of adding B-Roll footage to a sequence?
    10·1 answer
  • Which type of variable has a text value
    6·1 answer
  • In Interactive Charting, which chart type allows you to chart the current spread between a corporate bond and a benchmark govern
    6·1 answer
  • Which of the following components converts AC to DC?
    5·1 answer
  • True or false we can used virus not use pirated software and programs ​
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!