Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
student submitted image, transcription available below

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

Step: 1

main displaymenu jmp looping looping getuserinput validateinput jne invalidinput Input is valid ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Java An Introduction To Problem Solving And Programming

Authors: Walter Savitch

8th Edition

0134462033, 978-0134462035

More Books

Students also viewed these Programming questions