Write a subroutine that takes one temperature in celsius

Assignment Help Assembly Language
Reference no: EM13866098

1. Arithmetic Expression

Write a subroutine that takes three arguments, X, Y, and Z. It then computes X.Y.Z and returns it.

Use the subroutine to evaluate the following expression for various values of u and v:

7u2 - 21uv + 6v2

The main method, in a loop, prompts the user for values of u and v and prints out the result. End the loop when the user enters zero for both u and v.

2. Temperature Conversion

Write a subroutine that takes one temperature in Celsius and convert it to Fahrenheit using the approximate formula f = c.2 + 32.

The main routine, in a loop, prompts the user for a value of a temperature and prints out the result. End the loop when the user enters an integer out of the range of [-50, 50].

3. Represent the decimal non-integer 6.71 as a paper-and-pencil binary number using 21 bits to right of the binary point. And then represent it using the 32 bit IEEE 754 floating point format. Show your work.

4. Write a program that computes (A + B)/2.0 for values A and B defined in the data section. The program should then print out the computed value and exit.

Reference no: EM13866098

Questions Cloud

Basis of the rental house and land at the time of the sale : Kareem bought a rental house in March 2010 for $300,000, of which $50,000 is allocated to the land and $250,000 to the building. Early in 2012, he had a tennis court built in the backyard at a cost of $7,500. What is the adjusted basis of the rental ..
Which rules of professional conduct in the aicpa code : Following the audits and PCAOB inspection of EY audit of Medici’s, the company corrected its accounting for its sales returns reserve and filed restated financial statements with the SEC What is the link between professional skepticism and Josephson ..
What other qualifications would you consider important : What other qualifications would you consider important in a candidate for this position?
What major factors are driving the internationalization : Write a 2- to 4-page paper (500-1000 words) addressing the following: What major factors are driving the internationalization of business? List and describe the major challenges to the development of global systems. Explain why some firms have not pl..
Write a subroutine that takes one temperature in celsius : Write a subroutine that takes three arguments, X, Y, and Z. It then computes X.Y.Z and returns it - Write a subroutine that takes one temperature in Celsius and convert it to Fahrenheit using the approximate formula f = c.2 + 32.
Now use excel to do a regression of the inflation rate : Now use Excel to do a regression of the inflation rate (X) on the percent changes in stock market indices (Y). Include the data from all eighteen countries, including Japan. Use a significance of .05. Interpret your results (R-square, regression coef..
A greater comfort level with respect to the conformity : As a user of the financial statements in each instance does one expression more than the other give you a greater comfort level with respect to the conformity of the financial statements with generally accepted accounting principles? Why or why not?
The president of may has suggested the use of a new method, : May Manufacturing Company was organized January 2, 2010. During 2010, it has used in its reports to management the straight line method of depreciating its plant assets.
What is the nfl media groups general strategic direction : What is the NFL Media group's general strategic direction? What are the key drivers of its success to date? What, in your view, is the preferred way of managing digital operations for a sports league - and of managing traditional vs. new media cha..

Reviews

Write a Review

Assembly Language Questions & Answers

  Create a assembly language subroutine

Create a assembly language subroutine MULSUM that takes an array named A containing n bytes of positive numbers, and fills two arrays, array B containing n words and array C containing n long words

  Write a function in linux assembly

Write a function in Linux assembly

  Analog measurements

Prepare an assembly program for the correctly measures the wind direction

  Design a simple digital clock

Design a simple digital clock

  Write an assembly program

Prepare an Assembly program that reads in a number of cents.

  Write an assembly language program

Write an assembly language program for encrypting alphabates of a string

  Greatest common divisor of integers-masm assembly language

Must be done in MASM assembly language: Greatest common divisor of two integers is largest integer which will evenly divide both integers. GCD algorithm involves integer division in a loop.

  Write assembly program-find right admission price to movie

Write the Assembly program to find correct admission price to movie. Price of admission to a movie is $7 for kids (under 12) and $9 for adults.

  Create simple 8-bit alu using add-subtract-shift functions

Create a simple 8-bit ALU. Requirements:The eight functions that you will implement are: add, subtract, and, or, shift left logical, less than, shift right logical.

  Write assembly program print binary representation-integers

Write the assembly program called hw6_ex1, stored in file hw6_ex1.asm. This program must prompt user to enter signed 32-bit integer. Program must print out binary representation of the integer.

  Allot op-codes and add microcode to microprogram

Allot op-codes and add microcode to microprogram of Mic-1 to implement following instructions which are then included with IJVM instruction set.

  Write mips assembly program to read two non-negative numbers

Write MIPS assembly program to repeatedly read two non-negative integers and print integer product and quotient without using multiplication and division instructions.

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