Answer:
see explaination for program code
Explanation:
scalar_product = 0
li=[]
li2=[]
#reading numbers1.txt and numbers2.txt intoli and li2 respectively
with open('numbers1.txt') as n1, open('numbers2.txt') as n2:
for line1 in n1:
li.append(int(line1))
for line2 in n2:
li2.append(int(line2))
#storing min list size into variable l
a=len(li)
b=len(li2)
if a<b:
l=a
else:
l=b
#calculating scalar product
for i in range(l):
scalar_product=scalar_product+li[i]*li2[i]
print("scalar product is",scalar_product)
Answer:
Initially if x = a = 2437 and y = 875, condition (1) that is x>y is true and output would be x = 1562 with y = 87
Explanation:
According to pseudo code the code will run until x becomes equal to y. Initially if x = a = 2437 and y = 875, condition (1) that is x>y is true. So next step would be x=x-y and output would be x = 1562 with y = 875. With initial values x = a = 2437 and y = 875, x becomes equal to y after 21 iterations and output is x=y=1
X Y
- 2437 875
- 1562 875
- 687 875
- 687 188
- 499 188
- 311 188
- 123 188
- 123 65
- 58 65
- 58 7
- 51 7
- 44 7
- 37 7
- 30 7
- 23 7
- 16 7
- 9 7
- 2 7
- 2 5
- 2 3
- 2 1
- 1 1
Windows, icons, menus, and pointers does a graphical user interface (GUI) interact with a desktop or laptop computer.
- Windows, icons, menus, and pointers
<u>Explanation:</u>
Graphics user interface (gui) made a big resolution on desktop or laptop or tablet or workstation industries. In olden days till 1994 still, people were using the black and white computer where a desktop consists of keyboard and printer and monitors where display color white and black.
If we open a picture it will display only in black and white so games are in black and white mode. After windows 3.1 we have seen color picture and mouse interface is used. Since technology developed and interface in GUI is also developed improved in windows icon menu and mouse pointer.
As technology developed we going back to a dark mode such as black and white mode.
Regardless of which version of Windows you have, you can also open the browser from the start menu. Select the start button and type in Chrome. If the Chrome browser is on your computer, it will be displayed in the menu, where you can now see the icon and select it to open.
<3
Answer:
The content of the cell is called an absolute cell reference.
Explanation:
Ms-excel can hold a value or string or number or formulas in each cell.
The end-user can input the values to a cell and do any calculation by using inbuilt formulas and do the necessary calculation and get the output in the required cell
When end-user try to copy and paste the data to another cell he or she can use paste special option where he or she can select values, by selecting values to end-user is just copying the data not formula this is called absolute reference of the cell
By using paste special end users copy the image or Unicode also.
This process is called an absolute cell reference