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 the meaning of descending​
erastovalidia [21]

Answer:

numbers largest to smallest

Step-by-step explanation:

4 0
2 years ago
Read 2 more answers
The sail on a souvenir boat is similar in shape to the sail on a sailboat. The sail on the sailboat is in the shape of a right t
Triss [41]

Answer:

1 1/8 inches.

Step-by-step explanation:

As the sails are similar,  corresponding sides are in the same ratio, so we have the equation

:24/3 = 9/b     where  b = base of the souvenir boat.

Cross multiply:

24b = 9*3

b = 27/24

= 1 1/8 inches.

3 0
3 years ago
The sum of three consecutive is 267. What is the largest integer
Oliga [24]
Consecutive means in order. So let's call the first integer x. The next number in line would be x+1 and the largest integer would be x+2. Let's prove that so you're not confused.  If x is 3, then x+1 is 4 (next in line), and x+2 is 5 next after that. See? So if we add all those together we set them equal to 267 and solve for x: x + x+1 + x+2 = 267.  Combining like terms gives us 3x + 3 = 267 and 3x = 264. Now dividing both sides by 3 we get that x = 88.  That's the smallest integer; the largest is found by adding 88 + 2 which is 90.  So that means that the numbers are 88, 89, 90, and that adding them up = 267. Let's check that now: 88+89+90=267 so we're good.
4 0
2 years ago
What does b represent in the equation of a line in the form y=mc+b
Olin [163]

Do you mean y = mx + b instead of y = mc + b? In that case:

b in y = mx + b format is the y-intercept, as this kind of equation is called slope-intercept form.

4 0
3 years ago
Read 2 more answers
A rectangular tank measures 20cm x 30cm x 40cm. You want to fill it by using a cubic container that is 20cm on each side to carr
umka2103 [35]

Answer:

4 trips

Step-by-step explanation:

Given that:

Dimension of rectangular tank :

(20cm * 30cm * 40cm)

Dimension of cubic container used to fill tank = 20cm per side

Volume of tank = (20 * 30 * 40) = 24400 cm³

Volume of cubic container = (20 * 20 * 20) = 8000 cm³

Number of trips it would take :

Volume of tank / volume of container

24400 cm³ / 8000 cm³

= 3.05

Hence, it will take 4 trips

4 0
2 years ago
Other questions:
  • Network breakdowns are unexpected rare events that occur every 3 weeks, on the average. Compute the probability of more than 4 b
    13·1 answer
  • To the nearest thousand , the population of Texas was estimated to be 24,327,000 in 2008 . describe the actual population that T
    5·2 answers
  • E equation 2x + 3y = 36, when y = 6?
    14·1 answer
  • Suppose that A and B are arbitarary 2×2 matirices. Is the quantity given always equal to (A+B)2 (a) A2 +2AB+C2. (b) (B+A)2(c) A(
    6·1 answer
  • A clothing store buys shorts from the manufacturer .The store then marks up the price by 6%. Write an expression as a sum to rep
    15·1 answer
  • What are two fractions whose product is greater than 1.
    8·1 answer
  • Given that the measure of GD = 4 2/3, find GH.
    6·1 answer
  • Find the sum of 9-4i and it’s complex conjugate
    10·1 answer
  • What is the approximate value of V 42 ?<br> A) 5.5<br> B<br> 6.5<br> C) 7.5<br> D<br> 21
    8·1 answer
  • You start at (8,0). You move left 6 units. Where do you end?​
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!