in 80X86 assembly language
If moderately active persons cut their calorie intake by 500
calories a day, they can typically lose about 4 pounds a month.
Write a program that has the users enter their starting weight and
then creates and displays a table showing what their expected
weight will be at the end of each month for the next 6 months if
they stay on this diet.
please show code and output
x86 program :-
global _start
section .data
.LC0:
.string "Enter
your weigth (in pounds):"
.LC1:
.string
"%d"
.LC2:
.string
"No.\tweight\texpected_weight"
.LC3:
.string
"-------------------------------------------"
.LC4:
.string
"%d\t%d\t\t%d\n"
section .bss
section .text
_start:
push rbp
mov rbp, rsp
sub rsp, 16
mov edi, OFFSET FLAT:.LC0
call puts
lea rax, [rbp-12]
mov rsi, rax
mov edi, OFFSET FLAT:.LC1
mov eax, 0
call __isoc99_scanf
mov edi, OFFSET FLAT:.LC2
call puts
mov edi, OFFSET FLAT:.LC3
call puts
mov DWORD PTR [rbp-4], 1
jmp .L2
.L3:
mov eax, DWORD PTR [rbp-12]
sub eax, 4
mov DWORD PTR [rbp-8], eax
mov edx, DWORD PTR [rbp-12]
mov ecx, DWORD PTR [rbp-8]
mov eax, DWORD PTR [rbp-4]
mov esi, eax
mov edi, OFFSET FLAT:.LC4
mov eax, 0
call printf
mov eax, DWORD PTR [rbp-12]
sub eax, 4
mov DWORD PTR [rbp-12], eax
add DWORD PTR [rbp-4], 1
.L2:
cmp DWORD PTR [rbp-4], 6
jle .L3
nop
nop
leave
ret
in 80X86 assembly language If moderately active persons cut their calorie intake by 500 calories a...
I need help to write a program in Java. If a moderately active person cuts their calorie intake by 500 calories a day, they can typically lose about 4 pounds a month. Write a program that lets the user enter their starting weight, then creates and displays a table showing what their expected weight will be at the end of each month for the next 6 months if they stay on this diet.
Write them in python IDLE ***** 5. Average Rainfall Write a program that uses nested loops to collect data and calculate the average rainfall over a period of years. The program should first ask for the number of years. The outer loop will iterate once for each year. The inner loop will iterate twelve times, once for each month. Each iteration of the inner loop will ask the user for the inches of rainfall for that month. After all iterations,...
Lavonne is 42-years-old and has always had to watch her intake and maintain an active lifestyle to stay at a healthy weight. She is 5’8” tall and until a couple of months ago, maintained a healthy weight of 160 pounds, with a BMI in the normal range of 24.3. However, a couple of months ago, Lavonne was training for her first marathon and while running, she stepped in a hole and broke her ankle. She has been unable to keep...
Tonya is 5' 3" tall, weighs 151 pounds, and is 38 years old. Her waist circumference is 37". Her life is busy but sedentary. She simply does not have the time or energy to stay with an exercise program after working all day as a receptionists and caring for her two socially active children. She would like to lose about 20 pounds but knows dieting doesn’t work for her—all the diets she has tried in the past have left her...
1. What is the difference between fat-soluble and water-soluble vitamins in deficiency and toxicity levels? How do deficiencies and toxicities occur for each 221 63 2 28 1. What is the difference between fat-soluble and water-soluble vitamins in deficiency and toxicity levels? How do deficiencies and toxicities occur for each? 2. Tonya is 5' 3" tall, weighs 151 pounds, and is 38 years old. Her waist circumference is 37". Her life is busy but sedentary. She simply does not have...
How can we assess whether a project is a success or a failure? This case presents two phases of a large business transformation project involving the implementation of an ERP system with the aim of creating an integrated company. The case illustrates some of the challenges associated with integration. It also presents the obstacles facing companies that undertake projects involving large information technology projects. Bombardier and Its Environment Joseph-Armand Bombardier was 15 years old when he built his first snowmobile...