Question: HLA PROGRAM 7 : Tuition Calculator Write an HLA Assembly language program that calculates the cost of tuition at SMC . Different choices will be
HLA PROGRAM : Tuition Calculator
Write an HLA Assembly language program that calculates the cost of tuition at SMC Different choices will be represented by a bit field as shown below:
A Resident?
Parkingecal?
Since just bits are being entered, your program should expect to read hexidecimal digits.
The four loworder bits shown in orange represent the number of enrolled units. Your code should ensure the value is not zero.
The next two bits shown in purple represents the term. Some of the different fees various based on the term of enrollment. means Fall, means Winter, means Spring and means Summer
The next bit shown in red represents whether a student is a California resident. means nonresident, means California resident
The highorder bit shown in blue represents whether a students wants to buy a parking decal for this term. means no parking decal, means parking decal.
Based on these choices, here are the fees that apply to students this Fall :
Below are some sample program dialogues that demonstrate these ideas.
Hint: Do this in small steps, bitbybit. There's alot to it
Further Hint: You can read hex numbers by reading directly into a register. Just don't use EAX since stdin.get uses that one when it executes.
Final Hint: Since we haven't learned how to do multiplication yet, although it's kinda painful, I was expecting that you would perform the multiplication by a looping set of addition instructions
Feed me hex digits:
Units enrolled cannot be zerol
Feed me hex digits:
Units
Fall
No parking
NonCA Resident
Tuition: $
Feed me hex digits: FF
Units
Summer
CA Resident
Parking
Tuition: $
Feed me hex digits: F
Units
Spring
CA Resident
No parking
Tuition: $
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
