Question: Write an Assembly program that will return a letter grade given a Decimal int from the user. Include the following: a user menu a main

Write an Assembly program that will return a letter grade given a Decimal int from the user. Include the following:

  • a user menu
  • a main label, a looping label, and an exit label
  • a way for the user to continue getting letter grades or choose to exit
  • invalid input handling (do NOT just print an error message and exit the program; re-prompt the user until a correct input is entered)

Notes for Task 1:

  • Grades typically fall on a range from 0 to 100. Scores above 100 are still considered valid in cases of extra credit, but scores below 0 are considered invalid since 0 is the lowest possible value of a grade. A strong program will take this into consideration when handling input errors
  • The following bullets show the numeric value of scores and their corresponding letter grade:
    • A: 100 - 90
    • B: 89 - 80
    • C: 79 - 70
    • D: 69 - 60
    • F: 59 - 0
Task 1 Sample Output: Mars Messages Run 1/0 Clear MAIN MENU (1)

Task 1 Sample Output: Mars Messages Run 1/0 Clear MAIN MENU (1) Get Letter Grade (2) Exit Program Enter '1' or '2' for your selection: 1 Please enter a score as an integer value: 88 The grade is: B Would you like to enter a new score? (Y) Yes (N) No Enter 'Y' or 'N' for your selection: N MAIN MENU (1) Get Letter Grade (2) Exit Program Enter '1' or '2' for your selection: 2 The program will now exit. program is finished running

Step by Step Solution

3.50 Rating (150 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

main displaymenu jmp looping looping getuserinput validateinput jne invalidinput Input is valid ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!