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
2. Choose all of the correct answers for each of the following: [a] The relations of two sub-entity sets of the same super entit
Andrews [41]

Answer:

i say b

Explanation:

5 0
2 years ago
You are writing a report about a trip you made to several cities last month. Which of the following paragraph styles would be th
AlekseyPX
I would say B would be the best answer choice out of the given choices
4 0
3 years ago
if you want to present slides to a fellow student or co workers which productivity software should you use to create them?
Aleonysh [2.5K]

I think a presentation would be the answer.

Hopefully this helps, have a good day.

6 0
3 years ago
Write a method that accepts two string arrays and print common values between the two arrays (Perform case sensitive search whil
aksik [14]

Answer:

public class Main

{

public static void main(String[] args) {

 String[] s1 = {"Hi", "there", ",", "this", "is", "Java!"};

 String[] s2 = {".", "hi", "Java!", "this", "it"};

 findCommonValues(s1, s2);

}

public static void findCommonValues(String[] s1, String[] s2){

    for (String x : s1){

        for (String y : s2){

            if(x.equals(y))

                System.out.println(x);

        }

    }

}

}

Explanation:

*The code is in Java.

Create a method named findCommonValues that takes two parameters, s1 and s2

Inside the method:

Create a nested for-each loop. The outer loop iterates through the s1 and inner loop iterates through the s2. Check if a value in s1, x, equals to value in s2, y, using equals() method. If such a value is found, print that value

Inside the main method:

Initialize two string arrays

Call the findCommonValues() method passing those arrays as parameters

6 0
3 years ago
__________ are online services that facilitate communication and interaction among people who want to share information.
GuDViN [60]

Answer:

"Social media " is the correct answer to the given question.  

Explanation:

We can use Social Media is used for the creating of information and sharing the data. It is an online Service whose main function is to facilitate the communication and interaction among the peoples who is sharing the information.

The Advantages of Social Media is With the help of social media we can share the video, photo, etc in a very easy manner.The social media is a type of website which is developed for the purpose of to share the content in a very efficient manner.    

3 0
3 years ago
Other questions:
  • Instructions:Select the correct answer.
    15·2 answers
  • Book checkout scenario at a library: The Worker tells the System the identity of a patron who wishes to check out books. The Sys
    8·1 answer
  • What can be designed to create annoying glitches or destroy data
    15·2 answers
  • Create a Visual Logic flow chart with four methods. Main method will create an array of 5 elements, then it will call a read met
    11·1 answer
  • Why is an ISA unlikely to change between successive generations of microarchitectures
    11·1 answer
  • What is the memory of a computer called
    12·2 answers
  • Which of the following would increase the Demand for jam?
    14·1 answer
  • If you want an app to reach the largest possible audience, which two platforms should you use?
    10·1 answer
  • Nonprogrammed decision
    7·1 answer
  • 1. What year was the Entertainment Software Rating Board created?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!