Text: Write an assembly language program to convert Celsius temperatures to their equivalent in Fahrenheit. The formula is: Fahrenheit = (9/5) * Celsius + 32. Prompt the user for the Celsius temperature and then display the Fahrenheit temperature as an integer. Your program should work for a reasonable range of Celsius temperatures. Use Call GetDec in the code as well. Remember that 9/5 = 1 with a remainder of 4.
Added by Carlos M.
Step 1
We need to initialize the variables for Celsius and Fahrenheit temperatures, as well as the constant values for the conversion formula. Celsius: DW 0 Fahrenheit: DW 0 Constant1: DW 9 Constant2: DW 5 Constant3: DW 32 Show more…
Show all steps
Your feedback will help us improve your experience
Sarvesh Somasundaram and 72 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Write a program that converts a temperature input in degrees Celsius into degrees Fahrenheit and displays both temperatures. You will need the following variables: Celsius (a Float) and Fahrenheit (a Float). You will need the following formula: Fahrenheit = (9/5) * Celsius + 32.
Sarvesh S.
(Convert Celsius to Fahrenheit) Write a program that reads a Celsius degree from the console and converts it to Fahrenheit and displays the result. The formula for the conversion is as follows: fahrenheit $=(9 / 5) *$ celsius +32 Here is a sample run of the program: Enter a degree in Celsius: 43 43 Celsius is 109.4 Fahrenheit
Write a program to enter temperature in Celsius (C) and convert it to Fahrenheit (F = 1.8C + 32).
Sanchit J.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD