>>Assembly Simple Program please if you can
<<<
As the question is not clear, I provide here with an assembly program to find the fibonocci series up to the limit the user enter.
print macro args
move dx, offset args
mov ah, 09h
int 21h
endm
data segment
cr equ 0dh
lf equ 0ah
m1 db cr, lf, "ENTER THE LIMIT:$"
m2 db cr, lf, "FIBONOCCI SERIES IS:$"
m3 db ",$"
m dw 0001h
n dw 0000h
p dw 0000h
outs dw 10 dup(?)
data ends
code segment
assume cs:code, ds:data
start: mov ax,data
mov ds, ax
mov ax, n
sub ax, 0001h
mov n, ax
print ml
call read
mov p, cx
print m2
L5: mov ax, m
mov bx, n
mov n, ax
add ax, bx
mov bx, n
mov m, ax
call disp
print m3
print outs
mov cx, p
dec p
loop L5
mov ah, 4ch
int 21h
read proc
mov bx, 000ah
mov cx, 0000h
L1: mov ah, 01h
int 21h
cmp al, 0dh
jz L2
mov ah, 00h
sub al, 30h
push ax
mov ax, cx
mul bx
mov cx, ax
pop ax
add cx, ax
jmp L1
L2: ret
read endp
disp proc
mov bx, 000ah
mov cx, 0000h
mov di, offset outs
mov dx, 0024h
push dx
inc cx
L3: mov dx, 0000h
div bx
add dx, 0030h
push dx
inc cx
cmp ax, 0000h
jnz L3
L4: pop[di]
inc di
loop L4
ret
disp endp
code ends
end start
Simple_program.asm If you fail to name your file this way,you will almost certainly fail the proj...
Program in C Student Data using Structs In this assignment you will create a program (using multiple .c files) to solve the following problem: You have been hired by the university to create a program that will read in input from a .txt file. This input will contain a student name, student id #, their age and their current gpa. You should use the following struct for your student data: struct Student{ char name[50]; int id; float...
For this assignment, you are to write a program that does the following: • read exam scores from a file name data.txt into an array, and • after reading all the scores, output the following to the monitor: the average score and the total number of scores. In addition, the program must use the following functions: //precondition: fileName is name of the file to open, inFile is the input file 2 of 2 //postcondition: inFile is opened. If inFile cannot...
3. You should test your program on other test cases (tdhat you make up) as well. Making up good test cases is a valuable programming skill, and is part of ensuring your code solution is correct. Problem A: Number game (20 points) Write a C++ program that will play the following game. Ask the user how many "rounds" you want to play and start at 10 points. Every turn you can add either 1 point (by choosing "a or 2...
This assignment tests your ability to write C programs that handle keyboard input, formatted console output, and input/output with text files. The program also requires that you use ctype functions to deal with the logic. In this program, you will input from the user two characters, which should both be letters where the second letter > the first letter. You will then input a file character-by-character and output those letters that fall between the two characters (inclusively) to an output...
Count Occurrences in Seven Integers Using Java Single Dimension
Arrays
In this assignment,
you will design and code a Java console application that reads in
seven integer values and prints out the number of occurrences of
each value. The application uses the Java single dimension array
construct to implement its functionality.
Your program output
should look like the sample output provided in the "Count
Occurrences in Seven Integers Using Java Single Dimension Arrays
Instructions" course file resource. Full instructions for...
It's time to put everything you've learned together and do something fun with Python! Be creative, do your best, and have fun! Your project will be automatically included in the pool of students' work. If selected, your project will be used as a demonstration to current and prospective students in the future. Please let me know if you prefer NOT to include your project to be in the pool of demonstrating projects. Project Description Create a real-world scenario of a...
C PROGRAM, A FOPEN FILE NEED TO BE CREATED Objective To review reading from a file. To use records (an instance of a struct) To use Dynamic Memory Allocation To create and use a dynamically allocated array of structs To use enumerated types in a useful manner (more info given on Discussion board!) The Problem Bad economic times has forced the UCF administration to think outside the box for alternative methods of income. Specifically, we now have a UCF lottery,...
Instructions This program calculates the square root, cube root, and fourth root for the numbers 10 through 25. It demonstrates the sqrt() and pow() functions. Here is the code: Unit 5 Guided Practice 3.C 1 /* Filename: CHAP22-6.C Square, cube, and fourth root problem */ 4 5 #include <stdio.h> #include <math.h> 9 9 main() { int num; double square, cube, fourth; /*Variables must be float or double */ 12 14 for( num = 10; num <= 25; num++) { square...
Question2 uses structured design implemented in C. Array of records (structs) with file I/O is needed. The program takes two inputs at a time. The name of a person, and, the coin value as an integer in the range 5 to 95. Input coin values should always be divisible by 5 (integer division). Names are one word strings. An example input is: Jane 30 This input line indicates that 30 cents change is to be given to Jane. Output change...