Respuesta :
Answer:
See explaination for code
Explanation:
Python code
#Initialize an empty list to store 8 integers numbers=[] print("Enter 8 integers(positive,negative or zero)") #Read the 8 integers for i in range(0,8): num=int(input("Number:")) #Add the number to the list called numbers numbers.append(num) #max()is the function in python to find the biggest #item in a list print("The biggest number is",max(numbers)) #min()is the function in python to find the smallest #item in a list print("The smallest number is",min(numbers))
The MARIE Program to allow the user to input 8 integers are
- When it is Using the Marie Simulator then you will create a small assembly language Marie program.
- Are Basically that, your program will be issued a prompt (">"), then it accepts a single-digit integer from the user. (Hit the ENTER the key to actually enter the value).
- Then It will then echo that integer to the screen, print a "+” symbol, Also that then wait for a second digit.
- When It will then echo this digit to the screen, followed by the "=" symbol and Also, then the result of the addition.
- When there is no error checking so that all the numbers entered should be in a single digit, and also that the result must be in a single digit. So that 1+3=4 is okay, with that, but 7+9=16 is not (i.e., your program is not expected to be able to handle the second case properly).
- After that When the calculation is finished, then you must tell the program whether to continue or not. If you said to enter a "!" so that When the program will be printed "BYE" to the screen and it halts.
- If you are simply hit the ENTER key instead, it will take the loop and provide a new prompt. important Note that IO is quite limited on Marie so you can't do anything fancy.
- Then You should select the "no linefeed" option in the Output Window So everything will be printed on one line. As simple is that a sample output for a two iteration loop would be something like this: > 3+2=5>1+2=3BYE You will hand in your source file with your submission. Then It should be called an adder. mas. also that The tutor will assemble and run your source code.
Learn more about:
https://brainly.com/question/15877913