Answer:
A program is a set of instructions that a computer executes.
An algorithm is a set of instructions that must be done in order to get some result.
If an algorithm is written in a programming language, then the program is an implementation of the algorithm.
An algorithm must not, however, be a program. An algorithm can also be performed manually (e.g. calculate 6431 + 8316 on paper or in your head).
Explanation:
Answer:
The answer to this question is given below in the explanation section.
Explanation:
The selection sort algorithm step started from 0, and continue till the sorting is done.
The correct answer after selection sort algorithm at the 4th step is:D
[0,1,2,4,8,10].
The complete detail of step by step execution is shown in the attached document file.
Answer: Local Area Network (LAN)
Explanation:
A Local Area Network (LAN) is a computer network that interconnects computers within a limited physical area such as a residence, school, laboratory, university campus or office building.
An example of LAN network is "Phone, Computer and TV connected to a single network (such as a Home Network) via Cables, Wifi, Bluetooth or Hotspot". When the devices are interconnected or connected to a LAN, it becomes accessible between each other.
A simplest example of a LAN Device is a <em>Home Router.</em>
Answer:
see explaination
Explanation:
I made use of python program to solve this.
text file name with fun.txt.
6 fun. 3 hello 10 <> 2 25 4 wow!
Program code:
import re
file = open('fun.txt','r') #for reading file
strings="" #declaring empty string
for k in file:
strings=strings+k #all character in file is storing in strings variable for do operations
pattern = '\s' #for pattern \s is for space
result = re.split(pattern, strings) #split the string with space
for k in range(len(result)): #loop through the list of string
if(k%2) == 0: #checking for integer to time of string
p=int(result[k])
print(result[k+1] *p) #print times of the string(k+1)
Check attachment for output
Inspect them and make sure that they are exact copies then delete one if they are the same.