CSE/EEE 230 Spring 2016 Assignment 2 Due February 8 3:00PM Write a program to do the following: 1. Print your name 2. Prompt for the number of times to repeat 3. Read an integer. This is the number of times to repeat step 4. 4. Repeat the following multiple times according to the number read in step 3. a. Read in a list of random integers ending with a 0. The 0 marks the end an
CSE/EEE 230 Spring 2016 Assignment 2 Due February 8 3:00PM Write a program to do the following: 1. Print your name 2. Prompt for the number of times to repeat 3. Read an integer. This is the number of times to repeat step 4. 4. Repeat the following multiple times according to the number read in step 3. a. Read in a list of random integers ending with a 0. The 0 marks the end and is not considered part of the list b. Print the largest and smallest numbers in the list. c. If only a zero appears in the list, print an error message 5. Print an ending message and then end your program. Example input and output for the program. Tom Smith Enter the number of times to repeat 3 Enter a number 1 Enter a number 0 The smallest number is 1 The largest number is 1 Enter a number 0 There are no numbers to test Enter a number -1 Enter a number 8 Enter a number 5 Enter a number 0 The smallest number is -1 The largest number is 8 Program complete Specifics: Use only the instructions covered to date. Do not use any pseudo-instructions. Do not store any integers into memory. Document the beginning of your program with your name, class, and assignment number. Document every instruction. Assignment 2 submittal: Submit your assembly language program file. If your file is correctly uploaded, then you will see an exclamation mark (!) for the grade.
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"
