Answer:
import re
def country_capita():
#opens file
file=open("inputfile.txt", "r")
dictionary=dict()
#reads line by line
for line in file.readlines():
# substitutes for multiple space a single space
line = re.sub(r"[\s]{2, }", ' ', line)
list=[]
#splits line on space
list=line.split(" ")
#put into dictionary
dictionary[list[1]]=list[2]
# get input
while True:
choice=input("Enter the country name or quit to exit: ")
if choice=="quit":
break
elif choice in dictionary.keys():
print(dictionary[choice])
else:
print("Invalid Country")
country_capita()
Explanation:
Using python to code this program. First we, (line 1) import the re module which offers us a set of functions that allows us to search a string for a match. ((line 2) Next we define a function country_capita() that will open rawdata_2004.txt, read the information within line by line and create a dictionary list. The we create a while loop with conditional statements that prompt the user to enter country names, print the corresponding values and stops when the user enters quit.
Answer:
Plug and Play
Explanation:
most modern game pads are you just need to plug into a port and then you are free to use without any setting up.
Answer:
See explaination
Explanation:
Loop Unrolling
Assembly code
loop:
load r1, r5, 40 //r1 = Mem[r5 + 40]
load r6, r5, 36 //r6 = Mem[r5 + 36]
add r7, r6, r2 //r7 = r6 + r2
store r7, r5, 36 //Mem[r5 + 36] = r7
add r1, r1,r2 //r1 = r1 + r2
store r1, r5, 40 //Mem[r5 + 40] = r1
addi r5, r5, -8 //r5 = r5 -8
bne r5, 0, loop //if(r5 != 0)branch to loop
So, there's no actual way to insert music into your slides unless you use imovie. BUT, you can place a link in one of your slides to a particular song on spotify, and as you are presenting, you can click on the link, and it will open up spotify and play the song you selected.
Okay so first, go ahead and open up your google slides presentation.
Then find the specific slides you want to add music to.
Select Insert from the menu, and then click on text box. Place the text box anywhere in your slide, and you can put some text in there to disguise the link, or you can just paste the link directly.
TO GET THE LINK:
Go to spotify.com
Pick out the song you want to use.
Right click, and select "copy song link"
Then paste that link in your text box you created!
A statement that is true for the Paste Link option is that you always need the source file to make automatic updates in the linked document. All info in the linked document is based on the source file so it is an absolute necessity.