When getting each quiz from the user, make sure that it is between 0 and 10 included (as usual,


Place your order now for a similar assignment and have exceptional work written by our team of experts, At affordable rates

For This or a Similar Paper Click To Order Now

Objectives:
• Using Irvine library
• Using loops in assembly language

Write a code that will prompt the user to enter the number of quizzes you want to add, and get
the number form the user. Make sure to validate the user’s entry to be positive.
Then prompt the user to enter that numbers of quizzes and find the total of all the quizzes.
When getting each quiz from the user, make sure that it is between 0 and 10 included (as usual,
keep looping until the user enters the valid integer value).

You can use this example as well to make sure it is a valid integer value and then add to it that
is a positive integer
Example:

.data
intNum DWORD ?
promptBad BYTE ″Invalid input, please enter again″,0

.code
read: call ReadInt
jno goodInput

mov edx,OFFSET promptBad
call WriteString
jmp read ;go input again

goodInput:
mov intNum,eax ;store good value

Submit a copy of your code, and a screenshot of your output showing valid and invalid entries
and outputting the total of the quizzes. Create a video that explains your code, showing the
code and the output. Upload your code to YouTube (unlist, public) and share the link in the
same document.

For This or a Similar Paper Click To Order Now


Leave a Reply