Please complete the following tasks to signify your successful completion of Unit 12. It should be the case that the only instructions you need to complete the programs assigned here are the ones I’ve described so far. Click to see an HLA Programmer’s Reference Guide for all the instructions we’ve learned so far except for the FPU Instructions. A Reference Guide for the FPU Instructions is available
Following the Electronic Submission Guidelines, please send me a copy of the .hla file you created for this assignment.
Copyright By PowCoder代写 加微信 powcoder
PROGRAM 10: Currency Converter
Write an HLA Assembly language program that converts the value of American dollars into British pounds or Mexican pesos. Please use the following conversion rates:
$1 USD = 0.7403 British pounds or $1 USD = 2056.47 Mexican pesos
Prompt the user for a value and display the corresponding amount of Pounds and Pesos. A sample program dialogue is shown below.
What’s in your wallet: 10.50
This is 7.77 in British pounds
This is 21592.83 in Mexican pesos
What’s your number: 50.25
This is 37.20 in British pounds
This is 103337.61 in Mexican pesos
PROGRAM 11: Quadratic Equation
Write an HLA Assembly language program that factors an equation of the form ax2 + bx + c = 0 by using the quadratic equation. The formula you need to calculate is shown below:.
Your program should prompt for the values a, b and c, each which are to be real32 values. A sample program dialogue is shown below.
(Note: Please assume that b2 – 4 a c (what is referred to as the “discriminant”) will always be positive so that you do not need to worry about any imaginary roots.)
Gimme a value for a: 1
Gimme a value for b: 3
Gimme a value for c: -4
The solutions are x = -4.000 and x = 1.000
Gimme a value for a: 2
Gimme a value for b: -4
Gimme a value for c: -3
The solutions are x = -0.580 and x = 2.580
PortalGuard – Portal Access
SMC SIGN-ON
Remember username
Show password
Remember Me
Set Password
Forgot Password?
Student Account Help |
Employee Account Help
Smart Card
Question 1
Question 2
Question 3
Question 4
Question 5
Never shown!
Question 1
Question 2
Question 3
Question 4
Question 5
Terms Of Use
Multi-Factor Enrollment
Phone Type
Bell (Canada)
Boost Mobile
Project Fi
Rogers (Canada)
Sprint Nextel
Telus Canada
US Cellular
Virgin Mobile USA
Make this my default OTP method
You have the following OTP options
Phone Type
Bell (Canada)
Boost Mobile
Project Fi
Rogers (Canada)
Sprint Nextel
Telus Canada
US Cellular
Virgin Mobile USA
View Translation of Security Questions
<< Previous << Previous Never shown! Change Username BlackBerry Make this my default OTP method Confirm Phone Number Confirm Email Address Grouped Two Factor Enrollment Network Acceptable Use Policy Make this my default MFA method Start Enrollment © 2009-2021 BIO-key International. All rights reserved. Please see our FAQs! 程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com