Download presentation
Presentation is loading. Please wait.
Published byRobyn Osborne Modified over 9 years ago
1
Quiz
2
Quiz One Type your name, ID and email address in the.asm file. MUST DO or ZERO SCORE. Change q1 to yourStudentID_q1. You were working as a programming leader in a company. You implemented an assembly program for fun in spare time. Today, you wanted to implement a simple program.
3
Quiz One 1.[20%]. Show a menu: My student ID is: ……… (show your student id) Please select the calculation model for unsigned integers A. Compute the sum of 1…n B. Compute the interleaving sum of 1…n C. Quit the program Press a key to select the option…… Definition: Interleaving sum: 1 -2 + 3 – 4 etc. Assume that there are at most 10 numbers.
4
Quiz One 2.a [10%] Press ‘A’ or ‘a’. Then show a message on the screen: “A. Compute the sum of 1…n” “Please input the number of unsigned integers:” 2.b [10%] After that ask the user to input the integers one by one 2.c [9%] show the result 2.d [1%] go back to the menu (2c must be done)
5
Quiz One 3.a [5%] Press ‘B’ or ‘b’. Then show a message on the screen: “B. Compute the interleaving sum of 1…n” “Please input the number of unsigned integers:” 3.b [10%] After that ask the user to input the integers one by one 3.c [30%] show the result 3.d [3%] go back to the menu (3c must be done)
6
Quiz One 3.a [1%] Press ‘C’ or ‘c’. Then show a message on the screen: “Thanks for using this system. “ “This program is written by student name, student ID” “I am a good programmer. Contact me at xyz@email” “See you again very soon.” 3.b [1%] quit the program.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.