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
gladu [14]
3 years ago
15

A president and a treasurer are to be chosen from a student club consisting of 50 people. We can find the number of different ch

oices of officers when there are no restrictions as 50P2. How would you program this into R
Mathematics
1 answer:
Alenkinab [10]3 years ago
5 0

Answer:

> factorial()

Input a number to find factorial : 50

[1] " The factorial result is  50 is 3.04140932017134e+64"

> factorial()

Input a number to find factorial : 48

[1] " The factorial result is  48 is 1.24139155925361e+61"

and we divide both numbers and we got 2450

Step-by-step explanation:

We know that in permutations the order matters, and the general formula for nPx is given by:

nPx = \frac{n!}{(n-x)!}

So we need to create a function for the factorial function in R like this:

factorial <- function(){

# The function only accepts an integer

number = as.integer( readline(" Input a number to find factorial : "))

fact = 1

# If the number is negative or 0

if(number < 0) {

print(" The number is negative the factorial does not exist. ")

} else if(number == 0) {

print(" The factorial result is 1 ")

} else {

for( i in 1:number) {

fact = fact * i

}

print(paste(" The factorial result is ", number ,"is", fact ))

}

}

And we can find the expression like this:

> factorial()

Input a number to find factorial : 50

[1] " The factorial result is  50 is 3.04140932017134e+64"

> factorial()

Input a number to find factorial : 48

[1] " The factorial result is  48 is 1.24139155925361e+61"

and we divide both numbers and we got 2450

You might be interested in
Emily collected a sample of geodes and measured their masses. Her sample is Normally distributed with a mean of 0.8 kilograms an
Alexandra [31]

Answer:

81.5%

Step-by-step explanation:

4 0
3 years ago
Read 2 more answers
Which ordered pairs are solutions to the inequality 3x-4y&gt;5
Sloan [31]

Note: you did not provide the answer options, so I am, in general, solving this query to solve your concept, which anyways would clear your concept.

Answer:

Please check the explanation.

Step-by-step explanation:

Given the inequality

3x-4y>5

All we need is to find any random value of 'x' and then solve the inequality.

For example, putting x=3

3\left(3\right)-4y>5

9-4y>5

-4y>-4

\mathrm{Multiply\:both\:sides\:by\:-1\:\left(reverse\:the\:inequality\right)}

\left(-4y\right)\left(-1\right)

4y

\mathrm{Divide\:both\:sides\:by\:}4

\frac{4y}{4}

y

So, at x = 3, the calculation shows that the value of y must be less

than 1 i.e. y<1 in order to be the solution.

Let us take the random y value that is less than 1.

As y=0.9 < 1

so putting y=0.9 in the inequality

3\left(3\right)-4\left(0.9\right)

=9-3.6

=5.4

  • As 5.4 > 5

Means at x=3, and y=0.9, the inequality is satisfied.

Thus, (3, 0.9) is one of the many ordered pairs solutions to the inequality 3x-4y>5.

6 0
3 years ago
3÷3912.00 carry to the hundreth
irga5000 [103]
7.67 is your answer. hope this helps, let me know if you need more help
5 0
3 years ago
Read 2 more answers
Need help ASAP!!!!!!!!!!!
8090 [49]

Answer:

Step-by-step explanation:

5/6 + 1/8 + 3/4 = 1 17/24

Option A is the correct answer

8 0
3 years ago
I don’t really get this one.<br> Thx and have a great day!!
gayaneshka [121]

Answer:

The correct option is C). (9,4)

The coordinates of a point N is (9,4)

Step-by-step explanation:

Theory: If point P(x,y) lies on line segment AB and AP: PB=m:n, then we say P divides line AB internally in ratio of m:n and Point is given by

P=(\frac{mX2+nX1}{m+n} , \frac{mY2+nY1}{m+n})

Given that point, M is lying somewhere between point L and point N.

The coordinates of a point L is (-6,14)

The coordinates of a point M is (-3,12)

Also, LM: MN = 1:4

We can write as,

Let,

Point L(-6,14)=(X1, Y1)

Point M(-3,12)=(x,y)

Point N is (X2, Y2)

m=1 and n=4

M(-3,12)=(\frac{mX2+nX1}{m+n} , \frac{mY2+nY1}{m+n})

M(-3,12)=(\frac{1(X2)+4(-6)}{1+4} , \frac{(Y2)+4(14)}{1+4})

M(-3,12)=(\frac{(X2)-24}{5} , \frac{1(Y2)+56}{5})

(-3)=\frac{(X2)-24}{5}

(-15)=X2-24

X2=9

(12)=\frac{(Y2)+56}{5}

(60)=Y2+56

Y2=4

Thus,

The coordinates of a point N is (9,4)

Result: The correct option is C). (9,4)

3 0
4 years ago
Other questions:
  • The runway at New York Fashion Week is 110 feet long. A model walked 3 different outfits by the designed FTL MODA up and down th
    14·1 answer
  • Center at (0, 0), radius 2
    8·1 answer
  • Solving quadratic equations with complex solutions x2 + 4x + 8 = 0.
    10·1 answer
  • Write three equivalent ratios for each ratio 18/6 , 5/45 , 3/5
    14·2 answers
  • IN the 30-60-90 triangle below, side s has a length of ? and side q has a length of ?
    6·1 answer
  • Help me please thank you
    14·2 answers
  • Which expression is equivalent to
    10·1 answer
  • 1. Use the graph below to answer.
    6·1 answer
  • Find the inverse of each of the given functions. f(x) = 4x − 12 f−1(x) = x +
    6·1 answer
  • A Function is defined as K(x)= 2x^2 -5x +3.The value of K(-3) is
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!