logo Use CA10RAM to get 10%* Discount.
Order Nowlogo
(5/5)

Create a test program that asks the user for a lower number and an upper number and then generate a 10 random number from the lower number to the upper number.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Assembly Language Programming

A)  [20] Chapter 5 – Exercise 5 (Pg 187) – BetterRandomRange Procedure

Create a test program that asks the user for a lower number and an upper number – and then generate a 10 random number from the lower number to the upper number. The questions should be repeated 5 times before stopping – the loop needs to include asking for the lower and upper numbers. Make sure you use the Randomize library function in your program (it only needs to be called once and usually as the first line of the program).

 

B)  [40] The IsLetter, ToUpperCase and ToLowerCase Procedures

  1. Make a procedure, much the like the IsDigit procedure code shown at the end of Chapter 6, only the IsLetter procedure will return ZF=1 if the value in the AL register is a letter, either upper case or lower case. If the value in AL is not a letter, then ZF will return as ZF=0. The procedure must preserver

  2. The difference between the uppercase letters and the lowercase letters is that bit 5 (20h) is on for the lowercase letters and off for the uppercase letters. Create two more procedures, ToUpperCase and ToLowerCase. ToUpperCase must turn the 5thbit off (use an AND operation) and the ToLowerCase must turn the 5th bit on (use an OR operation).

  3. Make a test program that will do the following:

    1. Ask the user to enter a string using the ReadString procedure in the Irvine Library. The string will be limited to 250

    2. Copy the string to two other

    3. Count the number of Letters in the original string and report the

    4. Change all the letters in the first copy to

    5. Change all the letters in the second copy to LowerCase

(5/5)
Attachments:

Related Questions

. Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

. The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

. Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

. SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

. Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Um e HaniScience

807 Answers

Hire Me
expert
Muhammad Ali HaiderFinance

612 Answers

Hire Me
expert
Husnain SaeedComputer science

687 Answers

Hire Me
expert
Atharva PatilComputer science

961 Answers

Hire Me

Get Free Quote!

325 Experts Online