answer.
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]
2 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]2 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]2 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 the sum of the rational expressions below?<br> 3x-1/2x + 3x/x-1
Elden [556K]
In order to find the sum of the given rational expressions above, here are the steps.
Firstly, you need to find the LCM of the least common denominator.
So it would look like this: 
<span>3x-1 +   3x            (3x-1)(x-1) + (2x)(3x)
------    -------    =    ---------------------------
  2x       x-1                  2x(x-1)

3x^2-4x+1+6x^2
----------------------
    2x(x-1)
And the final result would be this:
9x^2-4x+1
--------------
  2x(x-1)

</span>9x^2-4x+1
--------------
  2x^2-2x
<span>
Hope that this is the answer that you are looking for. 

</span>
6 0
2 years ago
Read 2 more answers
In a certain mid-size city, 90% of the high- school graduates are from public schools and the other 10% are from private schools
trapecia [35]
The answer should be .53
8 0
2 years ago
A jar contains 0.25 liter of apple juice and 0.30 liter of grape juice. Melissa poured 0.75 liter of pineapple juice into the ja
Advocard [28]
Part A:  [<span>P + (A + G) - M

</span>Part B:  [0.75 + (0.25 + 0.30) - 0.20] = 1.1
8 0
2 years ago
One factor of the function f(x) = x3 − 8x2 + 17x − 10 is (x − 5). Describe how to find the x-intercepts and the y-intercept of t
kozerog [31]

Answer:

x-intercepts: (1,0), (2,0), (5,0)

y-intercepts: (0,-10)

Step-by-step explanation:

One factor of the function f(x) = x^3-8x^2 + 17x-10 is (x-5).

Factor the polynomial in the following way:

x^3-8x^2 + 17x-10\\ \\=x^3-5x^2-3x^2+15x+2x-10\\ \\=x^2(x-5)-3x(x-5)+2(x-5)\\ \\=(x-5)(x^2-3x+2)

Now factor the quadratic in brackets:

x^2-3x+2\\ \\=x^2-2x-x+2\\ \\=x(x-2)-(x-2)\\ \\=(x-2)(x-1)

Hence,

f(x)=(x-5)(x-2)(x-1)

The x-intercepts are points at which y = 0, so

(x-5)(x-2)(x-1)=0\\ \\x-5=0\ \text{or}\ x-2=0\ \text{or}\ x-1=0\\ \\x=5\ \text{or}\ x=2\ \text{or}\ x=1

The y-intercepts are points at which x = 0, so

y=0^3-8\cdot 0^2+17\cdot 0-10=-10

4 0
1 year ago
Read 2 more answers
A poll found that 5% of teenagers (ages 13 to 17) suffer from arachnophobia and are extremely afraid of spiders. At a summer cam
brilliants [131]

Answer:

a) Calculate the probability that at least one of them suffers from arachnophobia.

x = number of students suffering from arachnophobia

= P(x ≥ 1)

= 1 - P(x = 0)

= 1 - [0.05⁰ x (1 - 0.05)¹¹⁻⁰ ]

= 1 - (0.95)¹¹

= 0.4311999 = 0.4312

b) Calculate the probability that exactly 2 of them suffer from arachnophobia? 0.08666

=  P(x = 2)

=  (¹¹₂) x (0.05)² x (0.95)⁹

where ¹¹₂ = 11! / (2!9!) = (11 x 10) / (2 x 1) = 55

= 55 x 0.0025 x 0.630249409 = 0.086659293 = 0.0867

c) Calculate the probability that at most 1 of them suffers from arachnophobia?

P(x ≤ 1)

= P(x = 0) + P(x = 1)    

= [(¹¹₀) x 0.05⁰ x 0.95¹¹] + [(¹¹₁) x 0.05¹ x 0.95¹⁰]

= (1 x 1 x 0.5688) + (11 x 0.05 x 0.598736939) = 0.5688 + 0.3293 = 0.8981

4 0
2 years ago
Other questions:
  • *PLEASE ANSWER FOR BRIANLIEST*(08.06)
    6·1 answer
  • Calculate the amount of property tax Alice Brown owes on her home, which has an assessed value of $90,000. The tax rate in her c
    8·2 answers
  • FM = 5y + 13, MG = 5 - 3y, FG = ? M is the midpoint of FG. Use the given information to find the missing measure or value.
    15·1 answer
  • I rent a gym for $150.00 for 30 students. Another time I rent the gym for $270.00 for 70 students. I need to find a fixed rate.
    14·1 answer
  • Which expressions are equivalent to -6n+(-12)+4n
    15·1 answer
  • The lines below are parallel. If the slope of the green line is -4, what is the slope of the red line?
    6·1 answer
  • I tell you these facts about a mystery number, $c$: $\bullet$ $1.5 &lt; c &lt; 2$ $\bullet$ $c$ can be written as a fraction wit
    13·2 answers
  • Classify the solution set of each equation below as one of the following types of surfaces: A. parabolic cylinder, B. ellipsoid,
    13·1 answer
  • △ABC has vertices A(−1, 6), B(2, 10), and C(7, −2) . Find the measure of each angle of the triangle. Round decimal answers to th
    8·1 answer
  • Martin is buying 400 video games for his entertainment store. Each video game costs
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!