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
Leni [432]
3 years ago
10

Define a function print_total_inches, with parameters num_feet and num_inches, that prints the total number of inches. note: the

re are 12 inches in a foot. ex: print_total_inches(5, 8) prints: total inches: 68
Mathematics
2 answers:
Bond [772]3 years ago
6 0

Answer:

def print_total_inches(num_feet, num_inches):

   totalinches = (12*num_feet) + num_inches

   print('total inches:' + str(total inches))

print_total_inches(5, 8)

Step-by-step explanation:

Define a function print_total_inches, with parameters num_feet and num_inches, that prints the total number of inches. note: there are 12 inches in a foot. ex: print_total_inches(5, 8) prints: total inches: 68

Using a python Graphic User interface we can write the following code in python.

def print_total_inches(num_feet, num_inches):

   totalinches = (12*num_feet) + num_inches

   print('total inches:' + str(total inches))

print_total_inches(5, 8)

Leona [35]3 years ago
5 0

Answer:

2

I am taking my first programming course, so my apologies if this is a dumb question/possibly classified by the wrong category on this site. One of the exercise problems I am working on is the following:

Define a function print_total_inches, with parameters num_feet and num_inches, that prints the total number of inches. Note: There are 12 inches in a foot. Ex:

print_total_inches(5, 8) prints:

Total inches: 68

Step-by-step explanation:

You might be interested in
What is another way to write the expression ​ p⋅(10−2) ​ ?
Tomtit [17]

Answer: A

Step-by-step explanation:

I think it is A because p*(10-2). Can = (p*10)-(p*2)

6 0
3 years ago
Out of a group of 130, 80 people like basketball, 70 like soccer, 50 like both, what is the probablity if you choose randomly th
nasty-shy [4]
50 like both out of 130 total
Divide: 50/130 = 5/13

The answer as a fraction is exactly 5/13
The approximate answer is 0.3846
3 0
3 years ago
Write the equation of the line in fully simplified slope-intercept form??
Elis [28]

Answer:

y=-2/3x+3

Step-by-step explanation:

(m)slope :rise over run

(b)y-intercept :where the line crosses the y axis

slope intercept for y=mx+b

4 0
3 years ago
You roll a 6-sided die.
Lerok [7]

Answer:

\huge\boxed{\text{P(not factor of 35) = } \frac{2}{3}}

Step-by-step explanation:

We can use basic probability to find the probability that this roll is not a factor of 35.

First off, we know that with a six sided die there are 6 possible things we can roll.

1, 2, 3, 4, 5, or 6

Now, what are the factors of 35? The factors of 35 will be any whole number that can be multiplied by another whole number to get 35.

  • We know 1 \cdot 35 = 35, so two factors are 1 and 35.
  • We know 5 \cdot 7 = 35, so two factors are 5 and 7.

Therefore, the factors of 35 are 1, 5, 7, 35.

Both 5 and 7 are inside the range of 1-6. So the probability of rolling a side that's a factor of 35 will be  \frac{2}{6} = \frac{1}{3} since there are two factors and 6 possible options.

This means, logically, there is a  \frac{4}{6} = \frac{2}{3}  chance of not rolling a factor of 35.

Hope this helped!

5 0
3 years ago
Assume that the random variable X is normally distributed, with mean 60 and standard deviation 16. Compute the probability P(X &
elixir [45]

Answer:

P(X < 80) = 0.89435.

Step-by-step explanation:

When the distribution is normal, we use the z-score formula.

In a set with mean \mu and standard deviation \sigma, the zscore of a measure X is given by:

Z = \frac{X - \mu}{\sigma}

The Z-score measures how many standard deviations the measure is from the mean. After finding the Z-score, we look at the z-score table and find the p-value associated with this z-score. This p-value is the probability that the value of the measure is smaller than X, that is, the percentile of X. Subtracting 1 by the pvalue, we get the probability that the value of the measure is greater than X.

In this question, we have that:

\mu = 60, \sigma = 16

P(X < 80)

This is the pvalue of Z when X = 80. So

Z = \frac{X - \mu}{\sigma}

Z = \frac{80 - 60}{16}

Z = 1.25

Z = 1.25 has a pvalue of 0.89435.

So

P(X < 80) = 0.89435.

5 0
3 years ago
Other questions:
  • HELP ME PLEASE PLEASE I NEED HELP
    10·1 answer
  • Suppose you are trying the test hypothesis
    8·1 answer
  • What is 9/21 in simplest form
    9·2 answers
  • Antonio planned to read 15 books over the summer for the library's summer reading challenge. At the end of July he has read 4/5
    8·1 answer
  • What is z 15 = -45+ z
    5·1 answer
  • The product of 4/3 with another number is -7/2 what is the other number
    7·1 answer
  • A road crew is installing 2 storm drains along every 18 mile of highway.
    9·1 answer
  • What is the correct graph of the equation, y = -1/2x + 3
    9·2 answers
  • How do you do this I’m in 9th grade
    6·1 answer
  • 3d^2= 10 - 13d how do I factor this
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!