Answer:
The function in Python is as follows:
def search_file(filename,mystring):
my_dict = {}
count = 0
file = open(filename)
lines = file.readlines()
for line in lines:
count+=1
if mystring.lower() in line.lower():
my_dict[count] = line.rstrip('\n')
return my_dict
Explanation:
This defines the function
def search_file(filename,mystring):
This initializes an empty dictionary
my_dict = {}
This initializes the number of lines to 0
count = 0
This opens the file
file = open(filename)
This reads the lines of the file
lines = file.readlines()
This iterates through the lines
for line in lines:
This increments the number line
count+=1
This checks if the string exists in the line
if mystring.lower() in line.lower():
If yes, the line number and the string are added to the dictionary
my_dict[count] = line.rstrip('\n')
This returns the dictionary
return my_dict
Answer:
C. Record types
D. Support processes
E. Page layouts
Explanation:
Record type used in administrator to meet the requirements.
Information is typed into record and stored.Worker look back to save information.
Support process support the management of process.Creating , Analyzing the process.
Page layout tool allows the user to see detail . This is important because you want to see which field user can access.
To make sure that they can get there money correctly and count each costumer to get a sum of the days work
Answer:
can't understand your qs.......