Question: Write a SPIM assembly language program convert.s. The program will do the following: F = (9 * C / 5) + 32 C = 5
Write a SPIM assembly language program convert.s. The program will do the following: F = (9 * C / 5) + 32 C = 5 * (F - 32) / 9 Prompt the user to enter a letter indicating Celsius or Fahrenheit C or c indicates that temperature entered is in Celsius. F or f indicates that temperature entered is in Fahrenheit. If the letter entered is not C, c, F, or f, print out error message "Wrong Letter!". Prompt the user to enter an integer indicating the temperature matching the letter just entered. Convert the temperature to its counter part. Here are the two formulas for your reference. Print out the converted values with appropriate message.
Testing wrong letters: G and h
Testing values for C or c: 100, 0, 50
Testing values for F or f: 212, 0, 50
I need good source code for this SIPM language to run PCspim.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
