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
zlopas [31]
4 years ago
8

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. Sample output with inputs: 58 Total inches: 68 def print_total_inches (num_feet, hum_inches): 2 str1=12 str2=num_inches 4 print("Total inches:',(num_feet*strl+str2)) 5 print_total_inches (5,8) 6 feet = int(input) 7 inches = int(input) 8 print_total_inches (feet, inches)
Computers and Technology
1 answer:
jeka944 years ago
6 0

I'll pick up your question from here:

<em>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. </em>

<em>Sample output with inputs: 5 8 </em>

<em>Total inches: 68</em>

<em />

Answer:

The program is as follows:

def print_total_inches(num_feet,num_inches):

     print("Total Inches: "+str(12 * num_feet + num_inches))

print_total_inches(5,8)

inches = int(input("Inches: "))

feet = int(input("Feet: "))

print_total_inches(feet,inches)

Explanation:

<em>This line defines the function along with the two parameters</em>

def print_total_inches(num_feet,num_inches):

<em>This line calculates and prints the equivalent number of inches</em>

     print("Total Inches: "+str(12 * num_feet + num_inches))

The main starts here:

<em>This line tests with the original arguments from the question</em>

print_total_inches(5,8)

<em>The next two lines prompts user for input (inches and feet)</em>

inches = int(input("Inches: "))

feet = int(input("Feet: "))

<em>This line prints the equivalent number of inches depending on the user input</em>

print_total_inches(feet,inches)

You might be interested in
Wanda wants to find some basic information about her computer, for example, what operating system and how much RAM are installed
Gnoma [55]

Answer:

Its very simple you just need to go on your desktop there right click on Computer/This PC icon and then click on properties. Here you can have all the basic information of the PC including OS version processor and RAM.

6 0
3 years ago
Which of the following are input devices? Check all that apply.
postnew [5]

Answer:

Keyboard,speaker,scanner,mouse,printer and monitor

Explanation:

In computing, an input device is a piece of equipment used to provide data and control signals to an information processing system such as a computer or information appliance. Examples of input devices include keyboards, mouse, scanners, cameras, joysticks, and microphones.

7 0
3 years ago
Read 2 more answers
What is activated as necessary to support local eocs and to ensure that responders have the resources they need to conduct respo
gizmo_the_mogwai [7]

Answer: Emergency Operation Center (EOC)

Explanation:

An Emergency Operation Center is the coordination base for emergency service in case there is any within a state or a state Connecticut. The major purpose of the emergency center is to be in charge of controlling deploying and utilizing facilities needed to prepare for any form of emergency, disaster management, etc.

To run an effective Emergency Operation Center, focus must be on the facilities, equipments and personnel involved.

3 0
3 years ago
A _______ file is a type of vector graphics file created specifically for Windows.
Tems11 [23]
A .wmf <span>file is a type of vector graphics file created specifically for Windows.</span>
7 0
4 years ago
Read 2 more answers
How would Microsoft Word inform you of the error in the sentence below? (Tip: The error is in bold.)
Artist 52 [7]
It's the second answer since there's not really an error for Microsoft Word to actually catch.
3 0
3 years ago
Other questions:
  • When making college visits, you may be able to....
    9·2 answers
  • Is a set of standards that define how email is to be processed between mail servers is exactly the same as smtp copies an e-mail
    10·1 answer
  • And computers are the most commonly seen microcomputers.
    10·1 answer
  • In a case where electrical current leakage from the circuit occurs, the GFCI would do the following:
    10·1 answer
  • Which new console should i buy Nintendo switch Xbox series x or a ps5
    14·2 answers
  • The keys to successful outsourcing are accountability, reporting, and ___
    7·1 answer
  • Which methods will remove filters? Check all that apply.
    6·2 answers
  • Select three advantages of cloud computing.
    10·1 answer
  • 3. Comparing the Utopian and dystopian views of Technology according to Street (1992) which one in your view is more applicable
    9·1 answer
  • The Windows Net use command is a quick way to discover any shared resources on a computer or server. True or False
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!