116k views
3 votes
What will be the pseudo code for this

What will be the pseudo code for this-example-1
User Yashraj
by
3.8k points

1 Answer

4 votes

Answer:

Now, it has been a while since I have written any sort of pseudocode. So please take this answer with a grain of salt. Essentially pseudocode is a methodology used by programmers to represent the implementation of an algorithm.

create a variable(userInput) that stores the input value.

create a variable(celsius) that takes userInput and applies the Fahrenheit to Celsius formula to it

Fahrenheit to Celsius algorithm is (userInput - 32) * (5/9)

Actual python code:

def main():

userInput = int(input("Fahrenheit to Celsius: "))

celsius = (userInput - 32) * (5/9)

print(str(celsius))

main()

Step-by-step explanation:

I hope this helped :) If it didn't tell me what went wrong so I can make sure not to make that mistake again on any question.

User Lala
by
3.4k points