Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need help figuring out the asm on this code. I am a windows user and it has to be in windows, { } not
I need help figuring out the asm on this code. I am a windows user and it has to be in windows, not closed. And it has to be in asm. Please help ASAP.
#include
#include
#include
#include
declare variables
int soda water beer in inch s sand, si total;
string dtype;
using namespace std;
int main
display a menu
cout MENU
;
cout "Drinks
;
cout tSodas$
;
cout tWaterw$
;
cout tBeerb$
;
cout "Sandwiches
;
cout t inches...............................$
;
cout tinches...............................$
;
allow user to put in their info
cout "How many sodas? ; cin s;
cout tWhat kind of drink SodasWaterwBeer; cin dtype;
cout "How many sandwiches? ; cin sand;
cout tWhat size inches; cin si;
compute total bill
issue no idea how to compute it
asm
mov ebx, soda;
add ebx, sand;
mov total, ebx;
display total bill
cout ttYour total bill is $ total endl;
systempause;
return ;
output
MENU
Drinks
Sodas$
Waterw $
Beerb$
Sandwiches
inches..............................$
inches..............................$
How many sodas?
What kind of drink SodasWaterwBeer W
How many sandwiches?
What size inches
Your total bill is $
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started