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
- In the following diagram of triangle QRS, QR = 8 and QS = 17. Determine the value of sin Q. Show how you
dimaraw [331]

Answer:

SinQ=\frac{15}{17}

Step-by-step explanation:

We draw the right triangle as shown in the image attached.

Δ QRS

Where R is the right angle

Given

QR = 8

QS = 17

Now, using Pythagorean Theorem, we can find RS:

QR^2+RS^2=QS^2\\8^2+RS^2=17^2\\RS^2=17^2-8^2\\RS^2=225\\RS=\sqrt{225}\\RS=15

Now, we know the ratio Sine as:

Sin(\theta)=\frac{Opposite}{Hyotenuse}

Where \theta is the angle (here angle Q)

Opposite side is RS (which is 15)

Hypotenuse is given as QS (which is 17)

So,

SinQ=\frac{15}{17}

This is the value of SinQ.

We don't want the angle, so we'll stop here.

5 0
2 years ago
Children under 10 years and older people over 65 years receive a discount on movie tickets. Let x represent the age of a person
mr_godi [17]

0<x<10

x>65

0<x<10 or x>65

4 0
2 years ago
Sociologists want to test whether the number of homeless people in a particular urban area is increasing. In 2010, the average n
Kobotan [32]

Answer:

The test statistic value is 15.3.

Step-by-step explanation:

The hypothesis for this test is:

<em>H</em>₀: The average number of homeless people is not increasing, i.e. <em>μ</em> = 42.3.

<em>H</em>ₐ: The average number of homeless people is increasing, i.e. <em>μ</em> > 42.3.

Given:

\bar x=45.3\\\sigma=6.2\\n=1000

As the population standard deviation is provided use a single mean <em>z</em>-test for the hypothesis testing.

The test statistic is:

z=\frac{\bar x-\mu}{\sigma/\sqrt{n}}=\frac{45.3-42.3}{6.2/\sqrt{1000}}=15.3

Thus, the test statistic value is 15.3.

7 0
1 year ago
The following model can be used to study whether campaign expenditures affect election outcomes: voteA = β0 + β1log(expendA) + β
rosijanka [135]

Answer:

(i) It represents change in expenditure by candidates A; (ii) H_0:\beta_1+\beta_2=0

Step-by-step explanation:

6 0
1 year ago
If four men need $24.00 worth of food for a three-day camping trip, how much will two men need for a two-week trip?
Vitek1552 [10]
$56 because  24 divided by 4 men divided by 3 days=2 times 14 days times 2 men=56
3 0
2 years ago
Read 2 more answers
Other questions:
  • Ms. Cassidy plotted the point (2, 3) on Miguel’s graph of y &lt; 2x – 4. She instructed him to change one number or one symbol i
    7·2 answers
  • A landscaper makes a $2,000 profit in a week when he services 25 lawns. He makes a $600 profit in a week when he services 11 law
    13·2 answers
  • A farmer uses 1/3 of his land to plant cassava, 2/5 of the remaining and to plant maize and the rest vegetables.if vegetables co
    8·1 answer
  • Homer and Mike were replacing the boards on​ Mike's old deck. Mike can do the job alone in 1 hour less time than Homer. They wor
    15·1 answer
  • Complete the equation of the line whose yyy-intercept is (0,-1)(0,−1)left parenthesis, 0, comma, minus, 1, right parenthesis and
    9·1 answer
  • A zookeeper is monitoring the population of birds. The flock needs to have exactly three times more females than males to thrive
    9·1 answer
  • A boat can travel 64 miles on 7 gallons of gasoline. How much gasoline will it need to go 24 miles?
    10·1 answer
  • In 2012, Gallup asked participants if they had exercised more than 30 minutes a day for three days out of the week. Suppose that
    12·1 answer
  • Among a large group of patients recovering from shoulder injuries, it is found that 22% Visit both a physical therapist and a ch
    11·1 answer
  • A taxi charges a flat rate of $3.00 plus $1.50 per mile. If Xander has $45.00, which inequality represents m, the distances in m
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!