assume that the rule factorial(n, fac) will compute fac = n!. what should be the output if the following question is asked? ?- factorial(2, 5).

Answers

Answer 1

If the query ?- factorial(2, 5) is asked, it means we are attempting to compute the factorial of 2 and store the result in the variable fac, which is initially set to 5.

According to the factorial rule stated, fac will be assigned the value of n!, which is the factorial of 2. The factorial of 2 is computed by multiplying all positive integers from 1 to 2, resulting in 2 x 1 = 2.

However, in this query, fac is initially set to 5. Therefore, the computation of factorial(2) does not affect the value of fac, and the output remains as fac = 5.

To learn more about  factorial click here:

/brainly.com/question/32154186

#SPJ11


Related Questions

B.e b.i.g b.r.a.i.n a.t a.l.l t.i.m.e!
(Be big brain at all time!)

Answers

B I G  B R A I N :-))

You have 0.2 liter of an acid solution whose acid concentration is 16 moles per liter. You want to dilute the solution with water so that its acid concentration is only 12 moles per liter. Use the given model todetermine howmany liters of water you should add to the solution.

Answers

Answer: 0.067 litres of water

Step-by-step explanation:

The mode is:

Concentration of new solution = Moles of acid in original solution / (Volume of original solution + Volume of water added)

Assume volume of water added is w.

12 = 16 (0.2) / (0.2 + w)

(0.2 + w) * 12 = 3.2

0.2 + w = 3.2 / 12

w = (3.2 / 12) - 0.2

w = 0.067 litres of water

The amount of water you should add to the solution is 0.067 liters.

Given

You have 0.2 liters of an acid solution whose acid concentration is 16 moles per liter.

You want to dilute the solution with water so that its acid concentration is only 12 moles per liter.

The concentration of new solution;

You can also use the solution dilution calculator in order to calculate the concentration of ions in a diluted solution.

The amount of water you should add to the solution is given;

[tex]\rm Concentration \ of \ new \ solution =\dfrac{\text{Moles of acid in original solution } }{\text{Volume of original solution + Volume of water added}}\\\\12=\dfrac{16(0.2)}{0.2+w}\\\\12 (0.2+w)=16(0.2)\\\\2.4 +12w=3.2\\\\12w=3.2-2.4\\\\12w=0.8\\\\w=\dfrac{0.8}{12}\\\\w=0.067[/tex]

Hence, the amount of water you should add to the solution is 0.067 liters.

To know more about concentration click the link given below.

https://brainly.com/question/882576

I think I have the answer but, I really need help with the steps!

Answers

Answer:

simplify to:

6-32768/-60

simplify more

-32762/-60

take away the negatives

32762/60

simplify the fraction

16381/30

keep going till you get the answer

1. Use the number line to help you decide which statement is true.


Answers

It’s the last one because 1/2 is way more then 2/5 so I think it would be 1/5<1/2 so the last one

Answer:

2/5 < 1/2

Step-by-step explanation:

First, find the LCM for both denominators because you can't multiply 2 to get to 5. The LCM of 5 and 2 are 10, so you put that as their denominator. Then you have to think what you multiplied by 5 or 2 to get 10. For 2/5, you multiplied 5 by 2 to get 10, so multiply the numerator by 2 too. For 1/2, you multiplied 2 by 5 to get 10, so multiply the numerator by 5. Now, you will have 4/10 and 5/10. It's pretty obvious that 5/10 is bigger than 4/10, so the correct answer is 2/5 < 1/2

Find the median of the data set represented in the following stem-and-leaf plot.



62
63
64
67

Answers

The median of the data set is 63

Answer:

67

Step-by-step explanation:

The length of a driveway is 18 yards what is it in feet?​

Answers

Answer:

Step-by-step explanation:

18yd(3ft/yd)=54ft

Answer:

Hello! :) have a good day!

54 feet

someone help me pls 10 points

Answers

Answer:

x=-5

Step-by-step explanation:

-4(x+6)+2(x-2) please help!

Answers

Answer:

−2x−28

Step-by-step explanation:

Distribute:

=(−4)(x)+(−4)(6)+(2)(x)+(2)(−2)

=−4x+−24+2x+−4

Combine Like Terms:

=−4x+−24+2x+−4

=(−4x+2x)+(−24+−4)

= −2x - 28

how many cubes with a .25 inch side length will fit in a rectangular prism with a volume of 35.62

Answers

Answer:

142.48

Step-by-step explanation:

this i think is the answer

can someone help pls 10 points

Answers

Answer:

A. 4x - 6 = -3x + 5

Step-by-step explanation:

you just have to take the first equation and substitute that in, in the second equation.

hope that helps. have a good day!

A square has an area of 64 square units. If its sides were only half as long, what would its area be?​

Answers

Answer:

16

Step-by-step explanation:

the sides now are 8x8

1/2 of that is 4x4 and 4x4=16

Write each fraction as an expression using a negative exponent other than -1. 3. 1 ___________ 4 24. 1 ___________ 100

Answers

Answer:

[tex]\frac{1}{4} = 2^{-2}[/tex]

[tex]\frac{1}{100} = 10^{-2}[/tex]

Step-by-step explanation:

The question is poorly formatted. However, I am able to get:

1. 1/4 and 2. 1/100

Required

Write as an expression of negative expression

1. 1/4.

Express 4 as 2^2

[tex]\frac{1}{4} = \frac{1}{2^2}[/tex]

Apply

law of indices [tex](\frac{1}{a^b} = a^{-b})[/tex]

[tex]\frac{1}{4} = 2^{-2}[/tex]

2. 1/100.

Express 100 as 4^2

[tex]\frac{1}{100} = \frac{1}{10^2}[/tex]

Apply law of indices [tex](\frac{1}{a^b} = a^{-b})[/tex]

[tex]\frac{1}{100} = 10^{-2}[/tex]

If you answer correctly I will give you brainlest 5 stars and a thank you
A baseball field has four bases that form the shape of a quadrilateral. If someone invented a
new game similar to baseball that had four extra bases in the field, what type of polygon would
the bases form?
Apentagon
Boctagon
Chexagon
Ddecagon

Answers

letter b : octagon ??
B: octagon.

4 bases plus 4 more makes 8, an octagon has 8 sides.

Please help me I am struggling I’m only in 6th grade doing harder math

Answers

Answer:

-7a+11

Step-by-step explanation:

solve the equation
[tex]6 - 2x = 3x[/tex]

Answers

x= 6/5

Work:
6-2x=3x
-2x=3x-6
-5x=-6
x=6/5

That’s all simplified step by step, hope this helped

Antwan drew the circle graph below
describing his time spent at school in 1
day. His teacher said that the number of
hours listed were correct, but that the
central angle measures for the sectors
were not correct. What should be the
central angle measure for the Core
subject sector?
A. 72°
B. 80°
C. 160°
D. 200°
E. 288°

Answers

I think the answer is C, 160 degrees

Sarah’s parents purchased a refrigerator for $320. If sales tax is 7% of the cost, how much tax did Sarah’s parents pay for the refrigerator

Answers

Answer:

22.4

Step-by-step explanation:

7% of the cost is 22.4

Answer:

$22.40

Step-by-step explanation:

Let's convert the 7% sales tax into a decimal, which should be 0.07Multiply the sales tax (as a decimal) by the cost of the refrigerator ($320). You should get $22.40

Edit: Read something wrong, I fixed it, sorry.

I need help ASAP THIS IT TIMED!!

Answers

Answer:

yeah its probably done well

Step-by-step explanation:

I NEED HELP ASAP PLEASE​

Answers

Answer:

1679616

Step-by-step explanation:

6*6

36*36*36*36

Answer:

[tex]6^{8}[/tex]

Step-by-step explanation:

[tex](6^{2})^{4} = 6^{2*4} = 6^{8}[/tex]

Cement costs $76 per cubic yard. What is the cost of cement for a sidewalk that is 4 in. Thick, 3ft wide,and 40 ft. Long?

Answers

Answer:

112.46 yd³

Step-by-step explanation:

1 inch = 0.0278 yds

1 feet = 0.333 yd

Thickness = 4 inches = (4 * 0.0278) = 0.1112 yds

Width = 3 feets = (3 * 0.333) = 0.999 yds

Length = 40 feets = (40 * 0.333) = 13.32 yds

Volume of sidewalk :

Thickness * Width * Length

0.1112 * 0.999 * 13.32 = 1.479702816 yd³

1 yd³ of cement = $76

Cost :

1.479702816 yd³ * $76

= 112.457414016

= 112.46 yd³

kayden mixed two solutions together which causes a chemical reaction and the solution becomes warm. which statement best describes what has happened

A. energy has been transformed from one form to another

B. energy has been created, where it did not exist before

C. the chemicals energy of the solution had been described

D. more energy has been created than has been destroyed

Answers

The answer is B because before mixing the solution together nothing happened and it wasn’t warm, now that kayden mixed the solutions causing a chemical reaction making it to become warm. There for it will be B

According to law of conservation of energy, the statement  which best describes what has happened is that energy has been transformed from one form to another.

What is law of conservation of energy?

According to law of conservation of energy, it is evident that energy  is neither created nor destroyed rather it is restored at the end of a chemical reaction .

Law of conservation of mass and energy are related as mass and energy are directly proportional which is indicated by the equation E=mc².Concept of conservation of mass is widely used in field of chemistry, fluid dynamics.

Law needs to be modified in accordance with laws of quantum mechanics under the principle of mass and energy equivalence.This law was proposed by Julius Robert Mayer in the year 1812.

Learn more about law of conservation of energy,here:

https://brainly.com/question/29775341

#SPJ3

Factor ab + bc+ b² + ac.

A. (a + b)(b + c)

B. (a + c)(b + c)

C. b(a + b)(b + c)​

Answers

Answer:

A. (a + b)(b + c)

Step-by-step explanation:

b( a + b ) + bc + ac

b( a + b ) + c ( b + a )

= (a + b)(b + c)

hope it helps!

Answer:

A

Step-by-step explanation:

a(b+c)+bc+bb

a(b+c)+b(c+b)

(b+c)(a+b)

cos4A+sin4A-2cos2Asin2A=(2cos2A-1)2 prove it.​

Answers

cos4A-sin4A=2cos2A-1

proved below.

Step-by-step explanation:

Given:

cos^4A-sin^4A=2cos^2A-1

LHS=cos^4A-sin^4A

=[cos^2A]^2-[sin^2A]^2

=[cos^2A+sin^2A][cos^2A-sin^2A]

=[1][cos^2A-(1-cos^2A)] [ cos^2A+sin^2A=1]

=[cos^2A-1+cos^2A]

=2cos^2A-1

=RHS.

I NEED HELP ASAP!!!!!!!!

Answers

Step-by-step explanation:

[tex]slope = \frac{rise}{run} = \frac{y2 - y1}{x2 - x1} \\ = \frac{ - 7 - 13}{5 - ( - 3)} \\ = \frac{ - 20}{8} \\ = \frac{ - 2 \times 10}{2 \times 4} \\ = \frac{ - 10}{4} \\ = \frac{ - 2 \times 5}{ 2 \times 2} = \frac{5}{2} [/tex]

Please help me!! There is 2 answer!!

Answers

Yess it is !!!
You are correct!!

A culture started with 2,000 bacteria. After 2
hours, it grew to 2,400 bacteria. Predict how
many bacteria will be present after 10 hours.
Round your answer to the nearest whole
number.
P= Aekt

Answers

Answer:

14,000

Step-by-step explanation:

if wrong i'm sorry

(100 POINTS!!!) PLEASE HELP ME!!! FIRST TO ANSWER WILL GET BRAINLIEST! 14:40 LEFT!

Answers

Answer:

the third one

Step-by-step explanation:

Answer:

that would be c

Step-by-step explanation:

A high school sponsored a badminton tournament. After each round, one-half of the players were eliminated. If there were 64 players at the start of the tournament, which equation models the number of players left after round 3?
(1) y=64(1-.5)^3
(2) y=64(1+.5)^3
(3) y=64(1-.3)^.5
(4) y=64(1+.3)^.5

Answers

Answer:

(1) y = 64(1 - .5)^3

Step-by-step explanation:

(1) y = 64(1 - .5)^3

If you are eliminated half, then you are removing 50% or .5 of the teams. The number of teams is getting smaller, so eliminate the choices with "+". The exponent refers to the number of rounds.

This is an easy one to check: 64, 32, 16, 8. There are 8 teams after three rounds.

y=64(1 - .5)^3

y= 64(.5)^3

y= 64(.125)

y= 8

plz help just look at the picture​

Answers

Answer:

120

Step-by-step explanation:

Answer:

the answer is C) 120

Step-by-step explanation:

is there anyone who can help with this????

Answers

Answer:

C equals 48

Step-by-step explanation:

You add the two angles you have and take that answer and subtract it from 180 and that is the missing angle measure

Other Questions
the ions ca 2 and po4 3- form a salt with the formula: a. ca po4 b. ca2( po4 )3 c. ca2po4 d. ca(po4 )2 e. ca3( po4 )2 To prepare a statement of cash flows, a company uses information from a current income statement and____ a) comparative balance sheets. b) adjusted trial balances. c) audit reports. d) bank reconciliations. The bohr radius of the hydrogen atom is 0.0529 nm. that's the radius in the n=1 state. what is the radius of the hydrogen atom in the n=3 state.? 0.0529 nm 0.00588 nm 0.48 nm 0.16 nm if i have 45 liters of helium in a balloon at 25 degrees celsius and increase the temperate of the balloon to 55 degrees celsius, what will the new volume of the balloon be? need help my dad owns this app What does NOT happen during the REM sleep stage? Question 4 options: a. Dreamingb. Increased heart rate c. Non-rapid eye movement d. High amount of brain activity The Country Pasture &Co. had the following transactions involving the sale of merchandise. You are to prepare the necessary general journal entries. All sales are subject to credit terms of 2/10, n/30. March 13 Sold merchandise priced at $200to Jan Ellsworth on account Cost of merchandise was $150. March 14 Sold merchandise for $150. to a cash customer Cost of merchandise was $100 March 15 Sold merchandise priced at $280. to Dana Carter on account. Cost of merchandise was $210. March20 The customer of march 14 returned $40 worth of merchandise for a cash refund.Cost of the merchandise was $32. March 23 Received full payment from Dana Carter A lack of written documentationregarding a child's allergies tomedication constitutes a Class IIIviolation.TrueFalse a basket of fruits contains 5 apples and 3 pears. sharon took two fruits at random. what is the probability that both fruits are apples? write your answer in the simplest form of fraction Cecilia Company reported net income of $1,260,000. The average total liabilities were $4,303,000 and average total stockholders' equity was $5,206,000. Interest expense was $100,600 and the tax rate was 40%. Cecilia's return on assets ratio is closest to:a) 13.3%b) 13.9%c) 12.2%d) 14.3% during the first 3 seconds of a sprint, an athlete does not burn any carbohydrate. a. true b. false calculate 1 7 ln(x + 2)7 + 1 2 ln x ln(x2 + 3x + 2)2 The frustration-regression principle is most closely related witha. Maslow.b. Herzberg.c. McClelland.d. Alderfer.e. Adam. under a system of _____ automobile insurance, a driver's insurance company pays for any injuries or death he or she suffered in an accident, no matter who caused the accident. q6 what do most sessile animals eat? (1 sentence) q7 briefly describe one way animals could compete for this kind of food source. Ahmed just turned 22 and wants to have $10,283 in 8 years he has $6,000 now earning a 5% yield . He will put no other deposit. Will he reach his goal by the time he is 30 A corporate investor of preferred stock receiving a before-tax preferred yield of 8.5%, and having a corporate tax rate of 30%, would receive an after-tax preferred yield of approximately _____. Assume the tax rate on dividends is 15%.A.10.2%B.7.7%C.8.1%D.9.3% Electrophoresis of Native Proteins on Polyacrylamide Gels: a) Explain how the stacking gel concentrated the protein into thin bands. What is different about the way a protein is able to move in the stacking gel compared to the resolving gel. b) What considerations should be made when determining the percentage acrylamide used in the resolving gel? Use the Linear Approximation to estimate f = f(3.1) f(3) for f(x) =91 + x2f Estimate the actual change. (Round your answer to five decimal places.)f =Compute the error in the Linear Approximation. (Round your answer to five decimal places.)Compute the percentage error in the Linear Approximation. (Round your answer to five decimal places.)% why is it so difficult to predict success or failure in law enforcement work