Answer:
SAN
Please Mark Brainliest If This Helped!
In my opinion, I would say No. So I think the answer is C.
Pseudocode:
import random
fetch user input on a lucky number
insert input into variable - "response"
new variable, random = randint
condition to check wheather random is our response
display results
Python Code:
import random
def main():
response = int(input("Guess my lucky number, its between 1 and 100: "))
lucky_number = random.randint(1,100)
if response == lucky_number:
print(f"Wow you're right, it is {lucky_number}")
else:
print("Sorry, Try Again")
main()
Reminder:
intended for python3 as i included the format f
also it could be done without the import, just manually insert a number
i'll leave the post mortum to you
Programs are series of instructions interpreted by a computer
- The description of the program is to compute the square of the difference between corresponding elements of two arrays
- The better version of the program is program A.
<h3>How to describe the programs</h3>
From the programs, we have the following highlights
- The program iterates from 1 to n - 1
- The iteration calculates the difference between corresponding elements of the arrays
- The difference is then squared
Hence, the description of the program is to compute the square of the difference between corresponding elements of two arrays
<h3>The better version</h3>
The better version of the program is program A.
This is so, because the program uses fewer instructions for the same task as program B
Read more about programs at:
brainly.com/question/16397886
I think it’s 4
a process or set of rules to be followed in calculations or other problem-solving operations, especially by a computer.