Related questions
Fill in the blanks "__"
This is assembly language, using TASM.
;The program will ask the user to enter the height and the width including the character ;The program will display the character presses forming a square or rectangle shape.
;The program will also asked the user to tryagain or exit from the program
;Character Y or y is 59h and 79h while N or n is 4eh and 6eh
_____
_____ param1
mov dx,_______ _____
mov _______,9
________
endm
_______
________
_______
_______
msgHeight db 10,13, "Enter height of the rectangle: $"
msgWidth db 10,13, "Enter width of the rectangle: $"
msgCharacter db 10,13, "Enter character to print: $"
msgTryAgain db ,10,13, "Try Again y/n: $"
msgnl db 10,13, '$'
character db '?'
.code
main ____
_____
mov ax, _______
mov _______, ax
______ :
mov ax, 3
_______
_______ msgHeight
_______
_______, 01h
int 21h
sub al, 30h
mov cl, ________ ;
cout msgWidth
mov ah, 01h
int 21h
sub al, 30h
mov ch,al
cout msgCharacter
______ ah, _______
______
mov character, al
mov ______, _______
int 10h
mov bl,cl
_______ :
mov ________ ,ch
mov ________ character
mov ah, 02h
________ :
int _______
______ bh
______ InnerLoop
cout msgnl
dec ______
_____ OuterLoop
cout msgnl
______ :
cout msgTryAgain
______ ah, ______ h
______ h
______ al, 59h
______ ulit
cmp al, 79h
je ______
______
_____, 6Eh
je _______
______ al, ______
je exitprogram
_____ tryagain
______ :
mov ah, _______
int 21h ________
END main
Step by stepSolved in 2 steps
- Computer Science 1st year Computer Science Abdulmuttalib T. Rashid Sheet No. 2 Q1: - Design a form and write a code to find the average value of N degrees using For Next Loop. Use InputBox function to read degrees. Q2: - Design a form and write a code to find the largest value of N numbers using Do While Loop. Use InputBox function to read numbers. Q3: - Write VB program using Do Loop While to read 7 marks, if pass in all marks (>=50) print "pass" otherwise print "fail". Use input box to read marks. Q4: - Write VB program using Do Until Loop to find the summation of student's marks, and it's average, assume the student have 8 marks. Use InputBox function to read marks. Q5: - Write VB program to read the degrees of computer science material, and find how many students are success, and how many students are failed. Use Do While Loop. Q6: - Write VB program to calculate the following equation. Use inbut box to read values of x and msgbox function to display the result values of y(x)....arrow_forward1. Complete an algorithm, code and compile the following program. Save the program as mathTutor.py. Math Tutor You will be creating a math tutor program that can be used for young children to practice their math skills. The program will be driven by the following menu: See Rules Practice Math Exit If the user chooses (1) from the menu, the following rules will be displayed: This program will help you practice your math skills. First, you will choose Addition, Subtraction or Multiplication. Next, you will choose a level. Level 1 will give you problems with single digits and Level 2 will use two-digit numbers. Then, you will choose how many math problems you would like to complete. After you have completed all your problems, you will be given a score. You can play as many times as you want. Have fun!! If the user chooses (2) from the menu: First, prompt from the following math operation menu: Addition Subtraction Multiplication Next, prompt from the following level menu:...arrow_forwardoe’s Pizza Palace needs a program to calculate the number of slices a pizza of any size can be divided into. The program should perform the following steps: Ask the user for the diameter of the pizza in inches. Calculate the number of slices that may be taken from a pizza of that size. Display a message telling the number of slices. To calculate the number of slices that may be taken from the pizza, you must know the following facts: Each slice should have an area of 14.125 inches To calculate the number of slices, simply divide the area of the pizza by 14.125. The area of the pizza is calculated with this formula: Area NOTE: π is 3.14159. The variable r is the radius of the pizza. Divide the diameter by 2 to get the radius.arrow_forward