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

  How to design boost converter and inverter parameters

how to design boost converter and inverter parameters?

  What aspects of the software need to be considered

If designing a computer configuration for use as a workstation for one specific application, what aspects of the software need to be considered as part of the design process?

  What is the internal resistance of the battery

When the starter motor, which draws 90A, is running the terminal voltage drops to 11V. What is the internal resistance of the battery What percentage of the chemical power is delivered to the starter motor

  Define dynamic ram that must be given a refresh cycle

Dynamic RAM that must be given a refresh cycle 64 times per ms. Each refresh operation requires 150 ns. memory cycle requires 250 ns.

  Determine value of c to ensure a unit energy constellation

S = {c(k + jl) | k = 3, 1, 1, 3 and l = 3, 1, 1, 3 and j = square root of -1, where c is a constant. Determine the value of c to ensure a unit energy constellation. Sketch this constellation. Find d^2 min and label the constellation points with bi..

  Explain operational amplifier - finding the offset voltage

Operational amplifier - Finding the offset voltage, An operational amplifier has a gain of 20. The input voltage is 125mV and the input bias current is zero.

  Determine the standing wave pattern for the voltage

Determine the standing wave pattern for the voltage in the line. Express the result in real insantaneous form and simplify

  Determine the left triceps muscle force

Determine the left triceps muscle force (Ftri), elbow joint reaction force (Rj) required to hold this position along with any ground reaction forces (Rg) and/or reaction moments (Mg) in the hand. Show all necessary free body diagrams along with th..

  Develop equivalent circuits for the 741 as current amplifier

The 741 op amp is usually modeled on specification sheets as a voltage amplifier having the following parameters: Rin = 1 M, Av = 100,000, and Rout = 100  Using this information, develop equivalent circuits for the 741 as a current amplifier

  Calculate pmos device to acheive symmetric propagation delay

Calculate the PMOS device with to acheive symmetric propagation delays in an inverter (tPLH = tPHL). Use Wn=450nm Ln =300nm and Lp=300nm and solve for Wp. So I think by some ratio I can find what Wp should be, maybe something like Wn/Ln=Wn/Lp

  What is the half-power compressed-pulse width

Gaussian weighting following ideal, unweighted equalization is used to reduce time sidelobes seen with a 250-MHz chirp-pulse-compression radar. Rectangular chirp pulses are transmitted. (a) What is the half-power compressed-pulse

  Find the laplace transforms and the region of convergence

By direct integration find the Laplace transforms and the region of convergence of the following functions

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