Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Objectives: 1) Initialize FPU 2) Perform floating point operations using reverse polish notation (RPN) Problem Definition: Write a program to convert miles to kilometers and

Objectives: 1) Initialize FPU 2) Perform floating point operations using reverse polish notation (RPN) Problem Definition: Write a program to convert miles to kilometers and Fahrenheit to Celcious. Display the program title and programmers name. Then get the users name and greet the user. Prompt the user to enter the distance in miles that they want to convert and then prompt them to enter the temperature that they want to convert in Fahrenheit. Convert and display the user values and the converted values. Display a parting message that includes the users name and terminate the program. Requirements: 1) The programmers name and the users name must appear in the output. 2) The main procedure must be modularized into at least the following sections (using labels): a. introduction b. getUserData c. convertToKM d. convertToCelcious e. displayConvertedData f. farewell 3) The program must be fully documented. This includes a complete header block for identification, description, etc., and a comment outline to explain each section of code. Notes: 1) For the conversions assume that 1 mile = 1.60934 kilometers, and the formula to convert the temperature from Fahrenheit to calcious is C = 5/9 x (F-32) Example (user input in italics): Distance & Temperature Unit Conversion Programmed by Leonardo Pisano Hi, whats your name? Joanne Hello, Joanne Enter the distance in miles that you want to convert in kilometers: 50 Now enter the temperature in Fahrenheit that you want to convert in Celsius: 14

The conversion of 50 miles in kilometers is: +8.0467000E+001 The conversion of 14 degrees Fahrenheit in Celsius is: -9.9999000E+000 Results certified by Leonardo Pisano. Goodbye, Joanne. Extra-credit options (original definition must be fulfilled): Please also do the extra credit 1. Implement more conversions. 2. Do something incredible. To ensure you receive credit for any extra credit options you did, you must add one print statement to your program output PER EXTRA CREDIT which describes the extra credit you chose to work on. You will not receive extra credit points unless you do this. The statement must be formatted as follows... --Program Intro-- **EC: DESCRIPTION --Program prompts, etc

TITLE Program Template (template.asm) INCLUDE Irvine32.inc ; (insert constant definitions here) .data ; (insert variable definitions here) .code main PROC ; (insert executable instructions here) exit ; exit to operating system main ENDP ; (insert additional procedures here) END main

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Joe Celkos Data And Databases Concepts In Practice

Authors: Joe Celko

1st Edition

1558604324, 978-1558604322

More Books

Students also viewed these Databases questions

Question

Find the exact value of expression. tan sin 3

Answered: 1 week ago