计算机代考 def task1(key, filename, indicator):

def task1(key, filename, indicator):

if __name__ == ‘__main__’:
# Example function calls below, you can add your own to test the task1 function

Copyright By PowCoder代写 加微信 powcoder

print(task1(‘AE’, ‘spain.txt’, ‘d’))
print(task1(‘VFSC’, ‘ai.txt’, ‘d’))
print(task1(‘ABBC’, ‘cabs_plain.txt’, ‘e’))
def task2(filename, letters):

if __name__ == ‘__main__’:
# Example function calls below, you can add your own to test the task2 function
print(task2(‘spain.txt’, ‘ABE’))
print(task2(‘ai.txt’, ‘XZ’))
print(task2(‘cabs.txt’, ‘ABZD’))
def task3(message_filename, dictionary_filename, threshold):

if __name__ == ‘__main__’:
# Example function calls below, you can add your own to test the task3 function
print(task3(‘jingle_bells.txt’, ‘dict_xmas.txt’, 90))
print(task3(‘fruit_ode.txt’, ‘dict_fruit.txt’, 80))
print(task3(‘amazing_poetry.txt’, ‘common_words.txt’, 95))
def task4(algorithm, message_filename, dictionary_filename, threshold, letters, debug):

if __name__ == ‘__main__’:
# Example function calls below, you can add your own to test the task4 function
print(task4(‘d’, ‘cabs.txt’, ‘common_words.txt’, 100, ‘ABC’, ‘y’))
print(task4(‘b’, ‘cabs.txt’, ‘common_words.txt’, 100, ‘ABC’, ‘y’))
print(task4(‘i’, ‘cabs.txt’, ‘common_words.txt’, 100, ‘ABC’, ‘y’))
def task5(message_filename, is_goal):

if __name__ == ‘__main__’:
# Example function calls below, you can add your own to test the task5 function
print(task5(‘freq_eg1.txt’, ‘False’))
print(task5(‘freq_eg1.txt’, ‘True’))
print(task5(‘freq_eg2.txt’, ‘False’))
def task6(algorithm, message_filename, dictionary_filename, threshold, letters, debug):

if __name__ == ‘__main__’:
# Example function calls below, you can add your own to test the task6 function
print(task6(‘g’, ‘secret_msg.txt’, ‘common_words.txt’, 90, ‘AENOST’, ‘n’))

程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com