Create a procedure named CalcGrade that receives an integer value between 0 and 75, and returns...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Create a procedure named CalcGrade that receives an integer value between 0 and 75, and returns a single capital letter in the AL register. Preserve all other register values between calls to the procedure. The letter returned by the procedure should be displayed and should be according to the following ranges: Score 70 to 75 Grade A Score 60 to 69 Grade B Score 50 to 59 Grade C Score 0 to 49 Grade F Write a test program that 1. asks the user to enter integer between 0 and 75, inclusive. If the user enters invalid number, please display error message. 2. Pass it to the CalcGrade procedure. 3. Repeat steps 1 and 2 three times so that you collect three scores from the user and display the respective grade for each score. Create a procedure named CalcGrade that receives an integer value between 0 and 75, and returns a single capital letter in the AL register. Preserve all other register values between calls to the procedure. The letter returned by the procedure should be displayed and should be according to the following ranges: Score 70 to 75 Grade A Score 60 to 69 Grade B Score 50 to 59 Grade C Score 0 to 49 Grade F Write a test program that 1. asks the user to enter integer between 0 and 75, inclusive. If the user enters invalid number, please display error message. 2. Pass it to the CalcGrade procedure. 3. Repeat steps 1 and 2 three times so that you collect three scores from the user and display the respective grade for each score.
Expert Answer:
Answer rating: 100% (QA)
data str1 BYTE The integer score is 0 str2 BYTE The letter grade is 0 str3 BYTE Error Message 0 code ... View the full answer
Related Book For
Database Systems Design Implementation and Management
ISBN: 978-1285196145
11th edition
Authors: Carlos Coronel, Steven Morris
Posted Date:
Students also viewed these programming questions
-
Create a procedure named prc_cus_balance_update that will take the invoice number as a parameter and update the customer balance.
-
Create a procedure named FindLargest that receives two parameters: a pointer to a signed doubleword array and the array's length. The procedure must return the value of the largest array member in...
-
Create a procedure named FindThrees that returns 1 if an array has three consecutive values of 3 somewhere in the array. Otherwise, return 0. The procedure's input parameter list contains a pointer...
-
Which properties of the Clean annotation must be true for the following to compile? (Choose three.) A. The annotation must contain exactly one element. B. The annotation must contain an element named...
-
Describe the marketing mix for one of Disneys franchises.
-
Ann Tyler has come into an inheritance from her grandparents. She is attempting to decide among several investment alternatives. The return after 1 year is primarily dependent on the interest rate...
-
A significant issue when a contract is breached is whether the cause of action is strictly in breach of contract or may be expanded to negligence and strict liability. The significance comes into...
-
The Balcar Companys auditors are developing an audit plan to review the companys systems development procedures. Their audit objectives are to ensure that 1. The system was judged necessary and...
-
Scenario 11:Accountant 11 is a senior accountant. She says: I recommended a wonderful coffee serviceto my audit client, I received a commission from the coffee service company, can I take...
-
In this mini-case you will perform some procedures required as a part of audit planning. For ease your audit manager has already organized the workpapers and completed several of the required...
-
Host A has a file of 49.5Kbytes to send to host C and host B has a file of 70.5Kbytes to send to host D, both using TCP. TCP connection 1 from A to C and TCP connection 2 from B to D share one...
-
An object that is spining (e.g. a wheel), has: Rotational Kinetic Energy, but not Angular Momentum Neither Angular Momentum nor Rotational Kinetic Energy Any one of the two: Angular Momentum or...
-
You have been assigned a task to configure multiple TACACS + + servers for Cisco WLC authentication, while load - balancing different authentication requests among the servers. How can you...
-
5.00 cm 1. Water enters a horizontal duct with a rectangular cross section at a speed of 1.00 m/s. The width of the duct remains constant but the height narrows from both above and below. Twenty...
-
Which has greater angular speed: a horse near the outside rail of a merry-go-round or a horse near the inside rail? a) The outside horse O b) The inside horse c) Neither; they both have the same...
-
Ryan works in a private firm and manages the accounts department with a team of four junior accountants. In this scenario, Ryan be categorized as a
-
What is the future value in five years of $1,500 invested at an interest rate of 4.75%? What is the future value of a single payment with the following characteristics? PV $950...
-
The age-old saying for investing is "buy low and sell high," but this is easier said than done. Investors who panic about falling prices sell their investments, which in turn lowers the price and...
-
Using the INVOICE table structure shown in Table P6.3, do the following: a. Write the relational schema, draw its dependency diagram and identify all dependencies, including all partial and...
-
Write the trigger to update the CUST_BALANCE in the CUSTOMER table when a new invoice record is entered. (Assume that the sale is a credit sale.) Test the trigger using the following new INVOICE...
-
In Chapter 4, you saw the creation of the Tiny College database design. That design reflected such business rules as a professor may advise many students and a professor may chair one department....
-
What were Aristotles two main classifications of motion?
-
One kg weighs 10 N on Earth. Would it weigh more or less on the Moon?
-
Which has the greater density1 kg of water or 10 kg of water?
Study smarter with the SolutionInn App