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
Tanya [424]
3 years ago
6

Define a function print_feet_inch_short(), with parameters num_feet and num_inches, that prints using ' and " shorthand. End wit

h a newline. Remember that print() outputs a newline by default. Ex: print_feet_inch_short(5, 8) prints:
5' 8"
Hint: Use \" to print a double quote.


''' Your solution goes here '''

user_feet = int(input())
user_inches = int(input())

print_feet_inch_short(user_feet, user_inches) # Will be run with (5, 8), then (4, 11)
Computers and Technology
2 answers:
Crazy boy [7]3 years ago
4 0

def print_feet_inch_short(num_feet, num_inches):

#function named print_feet_inch_short takes in two arguments.

print(str(num_feet)+"'",str(num_inches)+"\"")

#output the feet and inch value supplied with the shorthand sign of feet and inch using string concatenation.

num_feet = int(input())

#allows user to specify a feet value and stores it in num_feet

num_inches = int(input())

#allows user to specify an inch value and stores it in num_inch

print_feet_inch_short(num_feet, num_inches)

#calling the function with the number of feets and inches given by user.

Learn more : brainly.com/question/18318709

tiny-mole [99]3 years ago
4 0

Program Explanation:

  • Declaring method "print_feet_inch_short" that takes two variable "num_feet and num_inches".
  • Inside the method parameter variable is used that converts the value into the string and prints its value.
  • Outside the method, a parameter variable is declared that uses an input method with the int method that takes an integer value.
  • calling the method by passing parameter value.

Program:

def print_feet_inch_short(num_feet, num_inches):# defining a method print_feet_inch_short which takes two parameters.

   print(str(num_feet)+"'",str(num_inches)+"\"")# using print method that converts parameters value into string  

num_feet = int(input())# defining num_feet variable input integer variable

num_inches = int(input())# defining num_inches variable input integer variable

print_feet_inch_short(num_feet, num_inches)#calling method

Output:

Please find the attached file.

Learn more:

brainly.com/question/14637323

You might be interested in
Which two graphs best represent the motion of an object falling freely?
larisa [96]
The graph would have to be pointing completely down to be falling freely.
4 0
3 years ago
Write a while loop that prints 1 to user_num. Sample output for the given program: 1 2 3 4
Scorpion4ik [409]
Given 1234
i=1
user num=4#assume positive
while (user-num>=i);
print(i)
i+=1
#include <iostream>
using namespace std;
int main()
{int userNum=0;
int i=0;
userNum=4; ##assume positive
i=1;
while (i <=userNum){
cout<<i>>" ";
i=i+1;
cout <<endl;
return0;
}
6 0
4 years ago
Read 2 more answers
Suppose cell C5 contains the formula =B$6+C1. Match each formula with its respective cell if you copied it.
zheka24 [161]

Answer:

The options are not being given. However, we can place the $ sign in front of letter or number we make it constant across the rows or across the columns. By $B we mean, the column will remain same as B as we move across the rows down or up, and by $6 we mean the row will remain fixed to 6 as you move right or left of the cell where you place $6.

Thus, B$6 + C1,will change to below as you move down:

B$6 + C2

B$6 + C3

B$6 + C5

...... and so on.

and if we move left, it will become:

C$6 +D6

D$6 +E6

E$6 +F6

.........and so on.

Please keep an eye on the letter and number, the way they change in each condition, like if its B the next is C irrespective of columns where the next column starts.

Explanation:

The answer is self explanatory.

8 0
3 years ago
What do you think is the single most important element of a memorable
noname [10]

Answer:

There are two main elements to speaking effectively: what you say, and how you say it. ... The words you might use when chatting to a friend are likely to be quite different ... It also suggests ways in which you can become a more effective speaker. ... The tone of voice and your body language also send strong messages. hope this helps

Explanation:

8 0
3 years ago
Read 2 more answers
Assume that you want to send your Mom a picture file, continuously as one large message, over a link that has a rate of 1Mbps. Y
Mandarinka [93]

Answer: you should listen in your classroom

Explanation: of you listened you would not be asking this qustion now would you

4 0
3 years ago
Other questions:
  • You have an insurance policy with a $300 premium and a $500 deductible. How much should you expect to pay the insurance company
    15·1 answer
  • What file format can excel save files as
    10·1 answer
  • What does the following code do? Assume list is an array of int values, temp is some previously initialized int value, and c is
    15·2 answers
  • 4. Write an appropriate comment for describ-
    11·1 answer
  • Just five types of pointing device,list
    13·1 answer
  • If I'm screen sharing and I plug in a HDMI, will it screen share what the HDMI is plugged into, and can you talk at the same tim
    11·1 answer
  • HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HEL
    15·2 answers
  • I need help about computer program. Solve C language code...... please​
    7·1 answer
  • Select the six criteria for a baseline.
    13·1 answer
  • Calculate the time complexity for the following function in terms of Big O notation. Explain your answer.
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!