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

  Lithium ion battery technology

The paper includes Lithium ion battery technology with its advantages and disadvantages. The paper discusses about the Lithium air battery in which detailed reactions of Lithium with air including nonaqueous as well as aqueous are given.

  Power transformers and tariffs

Construction of different types of power transformer, significant energy savings

  Paper on orthogonal frequency-division multiplexing

This document is shown a paper on Orthogonal frequency-division multiplexing with advantages, disadvantages and uses.

  Function of the hmi in a scada system

This assignment contains electronics engineering questions like State the commonly found components of a SCADA (Supervisory control and data acquisition) system. and decribe the function of the HMI in a SCADA system.

  Resultant waveform of the odd harmonic series

Prepare an Excel graph showing the individual components and summated resultant waveform of the odd harmonic series resulting in an approximate square wave.

  Explain scada system

Explain the function of the HMI in a SCADA system.

  Design a 2-digit 24 second shot-clock

Design a 2-digit 24 second "shot-clock" countdown timer with pushbutton controller.

  Model a discrete-time system

To understand di erent signal models To be able to model a discrete-time system and design simple signal processing algorithms.

  Draw a relay construction diagram

Draw a relay construction diagram and briefly explain the operation of a relay.

  Frequency division multiplexing

Write a short technical report on Frequency Division Multiplexing

  Impact of electron energy

Briefly discuss the impact of electron energy, electron current and target on the Bremsstrahlung generated.

  Traffic light controller

The schematic of the traffic light controller

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