1) Write a program to determine the correct admission price to a movie. The price of admission to a movie is $7 for kids (under 12) and $9 for adults. Display the correct admission fee after the user gives you the age for one person.
Sample Run #1:
? 21
9
Sample Run #2:
? 11
7
This is what i have so far... I keep getting a unknown ALU operation. Please Help
Sample Run #1:
? 21
9
Sample Run #2:
? 11
7
This is what i have so far... I keep getting a unknown ALU operation. Please Help
Code:
INP 26 LDA 26 LDB 23 CMP JGT 25 JLT 24 PNT 24 PNT 25 STP 12 7 9
Comment