Question: PROGRAM 7 : Tuition Calculator Write an HLA Assembly language program that calculates the cost of tuition at SMC . Different choices will be represented
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:
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 :
tableFeeFall or Spring,Winter or SummerTuitiontable$ per unit for CA residents$ per unit for nonresidentsParking$ for a parking decal
Below are some sample program dialogues that demonstrate these ideas.
Hint: Do this in small steps, bitbybit. There's alot to it
Further Hint: The most important part of this assignment is to worked with the packed data field entered by the user to extract the subparts out of it The overlapping design of the Intel registers helps you parse this kind of data field and you can shift the bits around to get the right part into BH or BL for example...
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 Can you help and give me a real working good plesase
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
