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
WINSTONCH [101]
3 years ago
14

You wrote a program to find the factorial of a number. In mathematics, the factorial operation is used for positive integers and

zero.
What does the function return if the user enters a negative three?

def factorial(number):
product = 1
while number > 0:
product = product * number
number = number - 1
return product

strNum = input("Enter a positive integer: ")
num = int(strNum)
print(factorial(num))


-6

1

There is no output due to a runtime error.

-3
Computers and Technology
2 answers:
Alona [7]3 years ago
7 0

Answer: 1

Explanation:

got it on Edge.

Nata [24]3 years ago
3 0

Answer:

The correct answer is 1

Explanation:

Correct on edge 2020

You might be interested in
What is the purpose of requirements gathering
inn [45]

Answer:

to determine customer needs for a software

application

to reduce over scheduling of project

resources

Explanation:

Requirement gathering and analysis involves a business analyst and the client. And this is done in various phases with the first phase involving the business analyst and the client. And the second phase of software requirement is also being covered, and that is done by a team of System analysts, business analyst, and technical writers are part of both the team. However, both the phases have nothing to do with the bugs, and hence the first and the third part is not the correct part. However, customer needs are noted down, and in the second phase when resource requirement other than technical requirement is studied, partly it is ensured that there is no over the scheduling of the project resources during the project. And hence the second and the fourth options are the correct options.

3 0
3 years ago
Read 2 more answers
In best practice, should you use all lowercase, all uppercase or a mixture of cases in HTML tag names?
mixas84 [53]
B considering it’s proper english, we went through this about a week ago
7 0
2 years ago
When discussing CV joints, Technician A says that they are called constant-velocity
Alja [10]

A only is correct.

Constant-velocity joints are able to transfer torque with zero angular velocity variation and near-zero vibration to the drive wheels at a constant rotational speed, while still accommodating the up-and-down movement of the suspension. In most cases, they are used in front wheel drive vehicles.

8 0
3 years ago
(Best Buy Part A) At a Best Buy store, the forecast for the annual demand of a Motorola cell phone is 15600. Demand forecasts ar
Nataly_w [17]

Explanation:

a. The computation of the economic order quantity is shown below:

= \sqrt{\frac{2\times \text{Annual demand}\times \text{Ordering cost}}{\text{Carrying cost}}}

= \sqrt{\frac{2\times \text{\15,600}\times \text{\$400}}{\text{\$5}}}

= 1,580 units

The carrying cost is

= $50 × 10%

= $5

b. The number of orders would be equal to

= Annual demand ÷ economic order quantity

= 15,600 ÷ 1,580

= 9.87 orders

Ordering cost = Number of orders × setup cost per order

= 9.87 orders × $400

= $3,949.37

c. The average inventory would equal to

= Economic order quantity ÷ 2

= 1,580 units ÷ 2

= 790 units

Carrying cost = average inventory × carrying cost per unit

= 790 units × $5

= $3,950

c. Now the total cost

= Setup cost + carrying cost

= $3,949.37 + $3,950

= $7,899.37

8 0
3 years ago
Theo would like to apply formatting to record data based on values in comparison with values in other fields. Which option shoul
poizon [28]

Answer:

Conditional Formatting

Explanation:

A database management system (DBMS) can be defined as a collection of software applications that typically enables computer users to create, store, modify, retrieve and manage data or informations in a database. Generally, it allows computer users to efficiently retrieve and manage their data with an appropriate level of security.

A data dictionary can be defined as a centralized collection of information on a specific data such as attributes, names, fields and definitions that are being used in a computer database system.

In a data dictionary, data elements are combined into records, which are meaningful combinations of data elements that are included in data flows or retained in data stores.

This ultimately implies that, a data dictionary found in a computer database system typically contains the records about all the data elements (objects) such as data relationships with other elements, ownership, type, size, primary keys etc. These records are stored and communicated to other data when required or needed.

Conditional formatting is a feature found in a lot of spreadsheet software applications such as Microsoft Excel and it avails end users the ability to apply specific formatting options to cells based on certain defined criteria.

Basically, it is used for highlighting, emphasize, comparing or differentiating between data (information) stored in a spreadsheet document i.e data values that are lesser than or greater than a specificied value.

In this scenario, Theo would like to apply formatting to record data based on values in comparison with values in other fields. Thus, the option he should use is conditional formatting.

7 0
3 years ago
Read 2 more answers
Other questions:
  • (Microsoft excel) The data selected to create a table must include
    6·2 answers
  • In JavaScript, which of the statements below can be used for string declaration?
    11·1 answer
  • "This part of the computer fetches instructions, carries out the operations commanded by the instructions, and produces some out
    15·1 answer
  • While editing a film, a director feels that the actors have not enacted a particular scene well. What type of shot must the dire
    12·1 answer
  • Which student's strategy likely found the most academic success?
    6·1 answer
  • Analyze the code and identity the value of variable a,b and c after the code execution. int a=40, b=50, c=60; if(! (a>=40)) b
    15·1 answer
  • Used for monitoring web activity by users to make sure that sensitive information won't leave the building.
    7·1 answer
  • C code
    6·1 answer
  • List four safety factors that must be considered when building mine shaft headgear model
    8·1 answer
  • a domain name is assigned to you when you submit your website to a search engine. group of answer choices true false
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!