Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

code in 32-bit assembly language x86 please! image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases A Beginners Guide

Authors: Andy Oppel

1st Edition

007160846X, 978-0071608466

More Books

Students also viewed these Databases questions

Question

What is a primitive root of a number?

Answered: 1 week ago