Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Lab # 7 Assignment: Upload your . asm file that meets the requirements outlined below For example, my asm file would be DPierce _ CSCI

Lab #7 Assignment:
Upload your .asm file that meets the requirements outlined below
For example, my asm file would be DPierce_CSCI39_Lab7.asm
Lab #7 Requirements:
Use any trusted .asm as a starting point to setup your MASM environment to write and debug your code.
If your submitted code DOES NOT build and RUN in MY debugger, your lab WILL NOT be scored.
Write an assembly language code that will (see the video below) :
Display a console window with a green background and white text (-1 point if color scheme is incorrect)
Prompt the user for the number of exam scores to be averaged in the calculation (-1 point if a prompt is not used correctly).
The calculator is ONLY required to average either a set of 2 or 4 exam scores at a time based on the user input (3 points).
Prompt the user to enter an integer score between 0 and 100.(2 points)
Give the user an option to enter a -1(negative 1) to quit the application (3 points)
If the user enters an integer outside of the acceptable range, alert the user of this error, but continue to receive more integers (2 points)
Convert the integer to the proper grade based on the Syllabus scale belowSyllabus Grade Table
Display a console message indicating the calculated exam average (1 point)
Display the correct calculated exam average (6 points)
Display a console message indicating the calculated exam average (1 point)
Display the correct grade letter based on the calculated exam average (1 point)
Once the user quits the integer entry mode (enters -1(negative 1)), the following records should be reported:
Display a message indicating the number of exam scores calculated (1 point)
Display the correct number of exam scores calculated by the user (2 points)
Display a message indicating the number of invalid scores entered (1 point)
Display the correct number of invalid scores entered by the user (1 point)
Proper space between console line entries through user interaction (1 point)
The code MUST NOT use a CMP instruction (-3 points per instance of CMP)
The code MUST use at least 1 SHL instruction (5 points)
The code MUST use at least 1 SHR instruction (5 points)
The code MUST NOT use more than 1 DIV instruction (-2 points per DIV used more than once)
TOTAL AVAILABLE POINTS: 35
attached picture is an example how the solution will lookHow many exam scores to be averaged (Enter -1 to quit)?: 2
Enter an integer score between 0 and 100: 180
Enter an integer score between 0 and 100: 182
Error: The score nust be between and 100.
Enter an integer score between 0 and 100: 75
Your Exan Average is: ,87
Your Exan Average is: 87
Your Letter Grade is:
How many exam scores to be averaged (Enter -1 to quit)?: 4
Enter an integer score between 0 and 100: 98
Enter an integer score between 0 and 100: 18
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Database Design Query Formulation And Administration Using Oracle And PostgreSQL

Authors: Michael Mannino

8th Edition

1948426951, 978-1948426954

More Books

Students also viewed these Databases questions

Question

Explain the various techniques of Management Development.

Answered: 1 week ago