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

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter8: Advanced Method Concepts
Section: Chapter Questions
Problem 7E
icon
Related questions
Question
CHALLENGE ACTIVITY
6.1.3: Function call with parameters: Converting measurements.
 
Define a function calc_total_inches, with parameters num_feet and num_inches, that returns the total number of inches. Note: There are 12 inches in a foot.

Sample output with inputs: 5 8
Total inches: 68
 
Use Python, please.
2 ' Your solution goes here '
1 test
passed
3
4 feet - int(input ())
5 inches = int(input())
6 print('Total inches:', calc_total_inches(feet, inches))
All tests
passed
Run
Feedback?
Transcribed Image Text:2 ' Your solution goes here ' 1 test passed 3 4 feet - int(input ()) 5 inches = int(input()) 6 print('Total inches:', calc_total_inches(feet, inches)) All tests passed Run Feedback?
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,