Convert the temperature to the counter part

Assignment Help Electrical Engineering
Reference no: EM13226752

Write a SPIM assembly language program convert.s.
The program will do the following:

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.

F = (9 * C / 5) + 32

C = 5 * (F - 32) / 9

Print out the converted values with appropriate message.
Testing wrong letters: G and h
Testing values for C or c: 100, 0, 5

Reference no: EM13226752

Questions Cloud

Explain what pressure would develop in the can : If the gas is an ideal gas, what pressure would develop in the can if it were heated to 475oC?
Calculate the phase voltage and line voltage : A three 120 - V power line is Y-connected. The three phase outputs are marked as a,b,c. The neutral is marked as n. The phase sequence is abc. It is connected to a balanced Y- connected load, with the impedance is 12 + j 9 omega.
Explain a valve connected to the tank is opened : A well-insulated rigid tank of volume 0.2 m3 initially contains helium at 70°C and 200 kPa. A valve connected to the tank is opened, and helium is withdrawn slowly until the pressure within the tank drops to p. An electrical resistor inside the ta..
Develop branding strategies for existing and new products : Develop branding strategies for existing and new products and develop pricing strategies and distribution channels for products.
Convert the temperature to the counter part : 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.
Write a memo to attach to the agenda for a team meeting : Write a memo to attach to the agenda for a team meeting. State the issues, as you know them, and request that the team members come with ideas so this problem can be resolved at the meeting and implemented immediately.
Developing country of increasing their international trade : What are the advantages to a developing country of increasing their international trade and multinational countries and manufacturing
State original volume while holding the temperature constant : Assume that you have a cylinder with a movable piston. What would happen to the gas pressure inside the cylinder if you do the following? (a) Decrease the volume to one third the original volume while holding the temperature constant.
Which two fuses will be damaged and other two not : (a) a circuit in which one fuse will be damaged and other three not, after making all connections as per you schematic and connecting power supply (b) a circuit in which two fuses will be damaged and other two not,d connecting power supply

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Define static electricity

Define static electricity and State five sources of static electricity and Describe three methods used to reduce hazards due to static electricity

  Use mips assembly language

Write an assembly program to calculate sum of number10 through 25

  How many decimal characters required to represent in decimal

How many decimal characters (including a possible minus sign) will be required to represent in decimal, sign-magnitude form numbers which are represented using twos complement 24-bit numbers in binary

  Determine free electron and hole concentration

(a) Determine free electron and hole concentration.(b) Calculate the effective density of states at valence band, Nv. Given that ni = 1x1010 cm3 and kT = 0.026.

  What are the impedances of an inductor and a capacitor

What are the impedances of an inductor and a capacitor (of any value) at a frequency of 0 Hz (DC) and at infinite frequency. Once we know what they are , how can this information help us in analyzing a circuit.

  When the radiator area a is a minimum for temperature ratio

A heat engine operating in outer space may be assumed equivalent to a Carnot engine operating between reservoirs at temperatures TH and Tc The only way heat can be discarded from the engine is by radiation

  Examining an rf splitter and power levels

Analysing an RF splitter and power levels, A splitter is a device that has a single input and several outputs. It is used to send a signal to several different locations

  What is the fundamental benefit of plc controls

1.Calculate motor speed in revolutions per minute for an eight-pole,50Hz motor. Give the equation and identify its parts; show your math. 2.You need to detect finished products coming down an assembly line.

  Explain very useful not only in obtaining the rectangular

very useful not only in obtaining the rectangular and polar forms of complex numbers

  Use matlab to compute the inverse laplace transform

Use MATLAB to compute the inverse Laplace transform of X(s)=(s^2+2s+1)/(s(s+1)(s^2+10s+50)) and determine the value of x(t) in the steady state. How would you be able to obtain this value without computing the inverse? Explain.

  Derive the dynamic model and average value circuit

Derive the dynamic model and average value circuit of a buck converter assuming the ESRs of the inductor and capacitor are not equal to zero.

  What is the per-phase current

A three-phase substation transformer operating at 34.5kV is loaded to 24 MVA. What is the per-phase current? (assume balanced conditions)

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd