Question: Write a program that clears the screen, locates the cursor, prompts the user for two numbers, adds the numbers, and displays their sum. Use the
Write a program that clears the screen, locates the cursor, prompts the user for two numbers, adds the numbers, and displays their sum. Use the Clrscr, Gotoxy, Writestring, Readint, and Writeint procedures from the link library. Define one array of 8-bit values and another of 16-bit values. Use the OFFSET operator to load the address of various numbers into BX, and write each of the standard output. Using the Random range procedure from the link library, generate 20 pseudorandom numbers in the range 0-100. Store the numbers in an array variable and display the numbers. Using array 1 from the previous exercise, write a program that inserts 2500h in position 3. The program must shift all subsequent numbers two bytes higher in memory to make room for the inserted number. Create a sequentially numbered array of 50 integers. Then use the Random_range procedure to shuffle the array in a random order. (Each number will only appear once in the array.) Display the shuffled array
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
