PROGRAM 4: SMC Fee Calculator Write an HLA Assembly language program that calculates student enrollment fees...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
PROGRAM 4: SMC Fee Calculator Write an HLA Assembly language program that calculates student enrollment fees at Santa Monica College. (Since we only know how to deal with integer arithmetic, our program will be slightly inaccurate). As of Summer 2018, the enrollment fee is $46/unit for residents and $370/unit for all others. The student services fee is $48 for Winter or Summer and $51 for Fall or Spring. The purchase of a parking decal is optional which costs $85 in Fall/Spring or $45 in Winter/Summer. The enrollment fee will be entered based on a single 8-bit value entered by the user. The fee will have the format: prsseeee, where ss is a two-bit value corresponding to the semester (00 for Fall, 01 for Winter, 10 for Spring or 11 for Summer), eeee is a four-bit value corresponding to the number of enrolled units, r is a single bit corresponding to whether the student is a California resident or not and p is a single bit corresponding to whether a parking decal is desired. The format of this bit field is diagrammed below: Semester CA Resident? Parking Decal? Since just 8 bits are being entered, your program should expect to read 2 hexidecimal digits. Below are some sample program dialogues that demonstrate these ideas. (Hint: Do this in small steps, bit-by-bit. 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 sub-parts 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.) (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) 12 units CA Resident Enrolled Units Feed me (2 hex digits with the bits praseece): CC Fall Semester Parking Total Fees = $ 688 Feed me (2 hex digits with the bits prsseeee): 4C Fall Semester 12 units CA Resident No Parking Total Fees - $ 603 PROGRAM 4: SMC Fee Calculator Write an HLA Assembly language program that calculates student enrollment fees at Santa Monica College. (Since we only know how to deal with integer arithmetic, our program will be slightly inaccurate). As of Summer 2018, the enrollment fee is $46/unit for residents and $370/unit for all others. The student services fee is $48 for Winter or Summer and $51 for Fall or Spring. The purchase of a parking decal is optional which costs $85 in Fall/Spring or $45 in Winter/Summer. The enrollment fee will be entered based on a single 8-bit value entered by the user. The fee will have the format: prsseeee, where ss is a two-bit value corresponding to the semester (00 for Fall, 01 for Winter, 10 for Spring or 11 for Summer), eeee is a four-bit value corresponding to the number of enrolled units, r is a single bit corresponding to whether the student is a California resident or not and p is a single bit corresponding to whether a parking decal is desired. The format of this bit field is diagrammed below: Semester CA Resident? Parking Decal? Since just 8 bits are being entered, your program should expect to read 2 hexidecimal digits. Below are some sample program dialogues that demonstrate these ideas. (Hint: Do this in small steps, bit-by-bit. 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 sub-parts 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.) (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) 12 units CA Resident Enrolled Units Feed me (2 hex digits with the bits praseece): CC Fall Semester Parking Total Fees = $ 688 Feed me (2 hex digits with the bits prsseeee): 4C Fall Semester 12 units CA Resident No Parking Total Fees - $ 603
Expert Answer:
Answer rating: 100% (QA)
solution in HLA Assembly language that calculates student enrollment fees at Santa Mo... View the full answer
Related Book For
Business Communication Essentials a skill based approach
ISBN: 978-0132971324
6th edition
Authors: Courtland L. Bovee, John V. Thill
Posted Date:
Students also viewed these programming questions
-
On Dec. 1, 2014 Pete Fiore opened Flore Consulting Services, Inc. He provides marketing seminars guaranteed to increase sales by SK. The first fiscal (calendar) year will end December 31, 2014. One...
-
The Global Sourcing Wire Harness Decision Sheila Austin, a buyer at Autolink, a Detroit-based producer of subassemblies for the automotive market, has sent out requests for quotations for a wiring...
-
Why " Kodak " is unsuccessful in implementing a strategy. Can you prepare a critical examination of the strategy to address the following questions about Kodak. What was the strategy and why do you...
-
Kelso's has a debt-equity ratio of 0.55 and a tax rate of 35 percent. The firm does not issue preferred stock. The cost of equity is 14.5 percent and the after-tax cost of debt is 4.8 percent. What...
-
Use Eulers method to obtain a four-decimal approximation of the indicated value. Carry out the recursion of (3) by hand, first using h = 0.1 and then using h = 0.05. y' = x + y 2 , y(0) = 0; y(0.2)
-
Explain the difference between an asset and an expense in conventional financial accounting. Are pollution permits an asset? Comment on the view that letting companies hold pollution allowances as...
-
On January 1, 2010, Furball Company had Accounts Receivable $98,000 and Allowance for Doubtful Accounts $8,100. Furball Company prepares financial statements annually. During the year the following...
-
How can change management techniques support continuous improvement and initiative?
-
Wilhelm Müller, CFA, has organized the following selected data on four food companies (TTM stands for trailing 12 months): On the basis of the data given, answer the following...
-
Bonner's, Inc. borrowed $36,000 for 4 months on a discount basis. The lender used an interest rate of 8% to calculate the discount. The amount of cash Bonner's, Inc. actually had available to use...
-
A researcher estimated a model for the daily percentage returns (rt) on the Australian stock market index over the last 100 days of trading. The results for this model (Model 1) were: rt = 0.25...
-
The management of Sonate Company, a wholesale distributor of fashion products, is considering the purchase of a $72,000 machine that would reduce operating costs in its warehouse by $16,000 per year....
-
A scuba diver and her gear displace a volume of 62.0 L and have a total mass of 65.8 kg. Part A What is the buoyant force on the diver in sea water? FB = Submit Request Answer Part B Will the diver...
-
Demand is strong and Nick Seamon can sell more sandwiches. In the short-run, how can his daily deli handle more volume? What will happen to the marginal product of labor at higher production? Why?...
-
Question 26 1 pts The mean volume for a bottle of cologne is 4 ounces and the standard deviation is 0.22 ounces. A random sample of 121 bottles is taken. What is the probability of obtaining a sample...
-
You re meeting with your organization s Advisory Board to discuss an upcoming migration of some of your data center s functions to the cloud. This is your company s first foray into the cloud, and...
-
In Problem use geometric formulas to find the unsigned area between the graph of y = f(x) and the x axis over the indicated interval. f(x) = x + 5; [0, 4]
-
Rewrite the following paragraph using a parallel bulleted list and one introductory sentence: Our forensic accounting services provide the insights needed to resolve disputes, recover losses, and...
-
As a researcher in your states consumer protection agency, youre frequently called on to investigate consumer topics and write reports for the agencys website. Thousands of consumers have arranged...
-
One of the banes of apartment living is those residents who don't care about the condition of their shared surroundings. They might leave trash all over the place, dent walls when they move...
-
The file m-pgspabt.txt consists of monthly simple returns of Procter & Gamble stock, S&P composite index, and Abbott Laboratories from January 1962 to December 2011. The data are from CRSP. Transform...
-
Prove Lemma 2.2. Data from Lemma 2.2. Lemma 2.2 For a VAR(p) model in Equation (2.21) with a, being a serially uncorrelated innovation process with mean zero and positive-definite covariance a,...
-
For a VARMA time series \(\boldsymbol{z}_{t}\), derive the result of Equation (1.20). e-1 T and Te = ve ive-i l>1. i=1 (1.20)
Study smarter with the SolutionInn App