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
Alex
3 years ago
11

Edhesive 7.6 lesson practice python

Computers and Technology
1 answer:
spayn [35]3 years ago
6 0

Answer:

(a) The output is -1

(b) The output is 32

Explanation:

Given: The above code

Solving (a): The output when 1, 1 and 1 is passed to the function

From the question, we have: print(mystery(x))

This means that only the value of x (which in this case is 1) will be passed to the mystery function

(a, b = 8, c = -6) will then be seen as: (a = 1, b = 8, c = -6)

2 * b + a + 3 * c = 2 * 8 + 1 + 3 * -6

2 * b + a + 3 * c = -1

<em>The output is -1</em>

Solving (b): The output when 8, 6 and 4 is passed to the function

From the question, we have: print(mystery(x,y,z))

This means that values passed to the function are: x = 8, y = 6 and z = 4

(a, b = 8, c = -6) will then be seen as: (a = 8, b = 6, c = 4)

2 * b + a + 3 * c = 2 * 6 + 8 + 3 * 4

2 * b + a + 3 * c = 32

<em>The output is 32</em>

You might be interested in
Shortly after its introduction, the unix software was rewritten in the popular c programming language.?
nirvana33 [79]
Of course it was rewritten in the popular C++ Programming Language.

a. True
5 0
3 years ago
A nonlinear optimization problem is any optimization problem in which at least one term in the objective function or a constrain
MAXImum [283]

Answer:

Yes

Explanation:

A nonlinear optimization problem is indeed a optimization problem in which there are nonlinear elements involved either as the objective function or one or more constraints may be nonlinear also. Let me show you an example. Let optimize de following function:

f(x) = x_{1} +x_{2}

These are the constraints:

x_{1} \geq  0\\x_{2} \geq  0\\\\x_{1} ^{2} +  x^{2}_{2}  \geq  1

The last constraint consists on nonlinear elements, so this problem in fact a nonlinear optimization problem.

5 0
3 years ago
Consider the following scenario: "You are an assistant to the accounting manager for a small company that sells sports equipment
Rzqust [24]

Answer:

1. Microsoft Excel helps data analysis through different spreadsheet queries and operations options.

2. Input data to the analysis of sales by product is required for the development of formula and extracting results.

3. The information of data source and frequency of report is required to start the work.

Explanation:

1. Microsoft Excel tool can be used to calculate the results of equipment. Obtained results can be displayed in charts and graphs from the excel.

2. Information like the quantity of sold items, remaining items are required to produce accurate, useful analysis.

Before starting assignment accounting manager will be asked the following questions.

1) Where does the input data come from?

2) Is analysis required on a daily basis or once for all provided data?

3) Is Summary is in the form of tabular data, Graphical data, or Both?

4 0
4 years ago
A top level class without any modifier is accessible to
LenKa [72]

Answer: A top level class without any modifier is accessible to any class within the same package.

Explanation: A top level class is class whose declaration occur in the body of their own class therefore it is not a nested class.It cannot be declared in any other class.Private modifier is not allowed in the top level class because there would be no access in the class. Therefore top level class which does not have any modifier can be accessed by any class within the same package .

4 0
4 years ago
Suggest any complete anime......?​
strojnjashka [21]
Ummmm toradora? on netflix
6 0
2 years ago
Read 2 more answers
Other questions:
  • Which is the correct process for inserting a blank worksheet?
    11·2 answers
  • In the case of a security incident response, the Building and Implementing a Successful Information Security Policy whitepaper c
    13·1 answer
  • Describe how you would switch between the virtual consoles provided by Fedora.
    10·1 answer
  • What are the three types of event logs generated by windows 2003 and vista systems?
    12·1 answer
  • Comparing tools made of stone, iron, and bronze: place them in the correct order from least to most durable.
    5·1 answer
  • Is jesus dead or alive
    11·1 answer
  • A force from water that brings water to your house​
    6·1 answer
  • What are the specifications of mine shaft head gear​
    11·2 answers
  • Create a class RightTriangle which implements the API exactly as described in the following JavadocLinks to an external site..
    11·1 answer
  • Question 3 (5 points) ✔ Saved Janice is scrolling through her feed one day and notices that Abby said some awful things about Pa
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!