Question: code in 32-bit assembly language x86 please! Write a program that calculates how old you are. Example run #1: Enter the year of your birth:




Write a program that calculates how old you are. Example run #1: Enter the year of your birth: 1950 Enter the month of your birth: 4 You are 68 years old Example run #2: Enter the year of your birth: 1950 Enter the month of your birth: 2 Enter the day of your birth: 4 You are 69 years old Example run #3: Enter the year of your birth: 1950 Enter the month of your birth: 2 Example run #3: Enter the year of your birth: 1950 Enter the month of your birth: 2 Enter the day of your birth: 30 You are 68 years old Use the following data definitions along with any others you need: .data curYear curMonth curDay DWORD? DWORD? DWORD? yearMsg montMsg dayMsg BYTE "Enter the year of your birth: ", 0 BYTE "Enter the month of your birth: ",0 BYTE "Enter the day of your birth: ", O Use the following data definitions along with any others you need: .data curYear curMonth curDay DWORD? DWORD? DWORD? yearMsg montMsg dayMsg BYTE "Enter the year of your birth: ",0 BYTE "Enter the month of your birth: ", 0 BYTE "Enter the day of your birth: ",0 year month day DWORD? DWORD? DWORD? Use the following pseudocode: i ; Start ; curYear = 2019 ; curMonth 10 ; cur Day = 20 ; Print "Enter the year of your birth: " ; Input year ; IF year = curYear THEN Print "you are less than 1 year old" ; ELSE IF Year curMonth THEN age = age - 1 Print "you are "; age; years old ELSE IF month curDay THEN age = age - 1 Print "you are "; age; years old ELSE IF day
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
