Reference no: EM132400358
TM111 Introduction to Computing and Information Technology - Arab Open University
Question 1
Write an OUbuild script according to the following :
• Declare list called name
• When you press Green Flag
• Add fiveanimals name's to the list entered by user.
In the second part in the same script
• When[space]key_pressed script. Notice that it:
• Asks the user to spell the name, storing their attempt in the variable
user_spelling
• Informs the user whether their spelling is correct or not and then delete the correct and guessed spelling item from the list name.
Question 2
Write an algorithm to find the max number according to the N value which entered by the user. The algorithm will keep check each number entered by the user to find the max number and then print it. For example
User enter N =4
The number are entered by the user 15,5,8,9,10 respectively so the algorithm will print 15 as it is the max number after checking the all values.
Question 3
Assume a list called "distance list "has been created with size 12 as shown in the figure: writeOUBUILD script to print and counts allvalues in the list greater than 10 according to the following:
• First you should create the list called distance list and prompt the user to enter 12 values
• When the user presses letter a, the algorithm will start to check the values according to the position whether it's greater than 10 or not
• Count all numbers which they are greater than 10
• Display allnumbers greater than 10 .
• Display how many numbers greater than 10 (count)
• Provide screenshot for the answer with the OUBUILD code script.
Attachment:- Introduction to computing and information technology.rar