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
harkovskaia [24]
3 years ago
13

Using a script (code) file, write the following functions:

Computers and Technology
1 answer:
vagabundo [1.1K]3 years ago
5 0

Answer:

def func1(x):

   return (x-32)*(5/9)

def func2(x):

   return (x/2.237)

def main():

   x = ""

   while x != "x":

       choice = input("Enter 1 to convert Fahrenheit temperature to Celsius\n"

                      "Enter 2 to convert speed from miles per hour to meters per second: ")

       if choice == "1":

           temp = input("please enter temperature in farenheit: ")

           print(func1(float(temp))," degrees celcius.")

       elif choice == "2":

           speed = input("please enter speed in miles per hour: ")

           print(func2(float(speed))," meters per second")

       else:

           print("error... enter value again...")

       x = input("enter x to exit, y to continue")

if __name__ == "__main__":

    main()

Explanation:

two function are defines func1 for converting temperature from ferenheit to celcius and func2 to convert speed from miles per hour to meters per second.

You might be interested in
Which of the following is the final fate for average sized stars?
schepotkina [342]
Black holes correct.......
7 0
3 years ago
Withdrawal from a conflict is best used when ______.
Liono4ka [1.6K]

Answer:

Neither side can reach an agreement

Explanation:

i just took the test

6 0
3 years ago
Read 2 more answers
How can you tell if a motherboard can be watercooled?
ivann1987 [24]
Well your cpu should have a header on it for a pump you can look for close to the cpu it should be little metal rods sticking up where you could connect a fan or a cooling device to!
3 0
4 years ago
Why aren’t white Wall auto tires as wide as they used to be?or why do most cars not have them at all?
Ivanshal [37]
Expence pretty much.

8 0
4 years ago
What wireless channel should I use?
pav-90 [236]
When looking at wireless channels, there are a couple of variables to keep in mind:
The number of other networks using what channels
The strength of the other networks on other channels

So generally speaking, channels 1, 6, and 11 are used by default. The reason for this is because there isn't any adjacent channel interference when you have all of your networks spread out in that manner. If for example, a network was using channel 3, that network would interfere with the signals one channel 1 and 6, and the bandwidth of those channels would have to be shared amongst all of those networks. This isn't optimal. Ideally you should look for a channel with less hosts who have weak signals. I know that in my area, channel 11 is the best channel to be on, because the hosts using that channel have weak signal strengths, which results in a lesser chance of those signals interfering with mine.
4 0
3 years ago
Read 2 more answers
Other questions:
  • HELPPP ASAPP
    8·2 answers
  • Anyone wanna join a supercar/hypercar enthusiast's club?
    10·1 answer
  • When you move or size a control in the Form Designer, Visual Studio automatically adjusts the ________________ that specify the
    9·1 answer
  • Do you think cyber-bulling is more damaging, as damaging, or less damaging than in-person bullying? Why?
    11·2 answers
  • The most important protocol at the internet layer is ____.
    13·1 answer
  • Consider the following code.
    10·1 answer
  • What are some particular game ideas for a Roblox developer. *Ideas that weren't copied or done before (simulators, tycoons, you
    13·2 answers
  • Name 8 different types of packages that are widely used​
    8·1 answer
  • SONET: is a standard for optical transmission that currently operates at Terabit per second speeds is almost identical to the IT
    7·1 answer
  • Write a program to find a perimeter of rectangle using SUB.. ..End SUB​
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!