Search for question
Question

Lab #7 Assignment: • Upload your .asm file that meets the requirements outlined below • For example, my asm file would be DPierce CSC139_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) Letter Grade Percentage A 90-100% Metric Excellent B 80-89% Good Convert the integer to the proper grade based on the Syllabus scale below C 70-79% Average D 60-69% Below Average F 0-59% ■ 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 Failing

Fig: 1