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

  What is the rms value of the current through the capacitor

a 10uF capacitor is plugged into a 110v rms 60 hz voltage source with an ammeter in series. what is the rms value of the current through the capacitor?

  What is the cost of acquiring the land for an area

Your task as an engineer working for this real estate company is to first select a site for the housing venture. You are given that this area in Queens is prone to earthquakes due to seismic faults. The mean detection rate for tremors is 2 per sq...

  Electrical wiring: potentials of neutral and earth wires

Electrical wiring: Potentials of neutral and earth wires, Why is the neutral wire in housing circuits also at zero potential

  The magnetic tape recorder uses linear analog

The magnetic tape recorder uses linear analog to digital encoding. Telephone systems use non linear analog to digital conversion. Explain the difference.

  Find the voltage at coil 2 and the flux through coil 1

Two coupled coils have self-inductances L1 = 50 mH and L2 = 200 mH, and a coefficient of coupling k = 0.5. If coil 2 has 1000 turns, and I1 = 5Sin (400t) (i.e. the phasor current is 5? -90° A). Find the voltage at coil 2 and the flux through coil ..

  Calculate the unit-pulse response

Compute the unit-pulse response h[n] for the discrete-time system y[n+2]2y[n+1]+y[n]=x[n] (for n = 0, 1, 2, 3).

  Give the solution to power factor

The solution to Power Factor, Two single-phase loads are connected in parallel across a 415 V, 50 Hz supply. One load is rated 130 kW at a power factor of 0.75

  What functions must the communications stations perform

What functions must the communications stations perform? Repeat for ring and star.

  What are the incremental savings

What are the incremental savings that result from increasing the efficiency of a PV collector by 1% in terms of collector area and costs? Assume that the PV module represents about 50% of the total PV system cost.

  Determine the magnitude of the current

Determine the magnitude of the current when the machine develops its maximum gross power with the excitation held constant.

  Determined capacitor voltage and charging current

A series of combination having R=2Mohm and C=0.01 UF is connected across a D.C. voltage source of 50V. Determined capacitor voltage and charging current after 0.02s, 0.04s and 1 hour.

  Presume the information portion of a packet contains

Suppose the information portion of a packet contains 10 bytes consisting of the 8- bit unsigned binary ASCII representation of string "Link Layer".

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