Given the following list: B E A D C F H G
Apply selection sort AND merge sort to sort the list in ascending order. Show all the insertion steps for each data.
class QuizBrain:
def __init__(self, q_list):
self.question_number = 0
self.question_list = q_list
def still_has_question(self):
if self.question_number < len(self.question_list):
return True
else:
False
def next_question(self):
current_question = self.question_list[self.question_number]
self.question_number += 1
user_answer = input(f"Q.{self.question_number}: {current_question.text} (True/False):")
self.check_answer(user_answer, current_question.answer)
def check_answer(self, user_answer, correct_answer):
if user_answer.lower() == correct_answer.lower():
print("You got this right!")
else:
print("That's wrong")
print(f"The correct answer was: {correct_answer}")
add a score:
sample output:
Your Score is 1/1
what is message-passing communication in parallel and distributed computing?
State the benefits that can be achieved due to proper programing language semantics.
Using Loop Statement, create a program that will be able to display student information such as, last name, first name, middle name, address.
Sample output:
Enter number of student: 2
Enter Last name: Sinco
Enter First name: Eddiemar
Enter Middle name: Garcia
Enter Address: Cabugao
Student 1
Name: Eddiemar Garcia Sinco
Address: Cabugao
Enter Last name: Sinco
Enter First name: Kent
Enter Middle name: Tiongson
Enter Address: Cabugao
Student 2:
Name: Kent Tiongson Sinco
Address: Cabugao
We are looking for passionate developers to join our team.
Solve the challenge below and submit the form, and we will reach out to you!
Find latitude and longitude of utmost 20 countries, ordered by population, with a population greater or equal to the population limit given below and have atleast one currency exclusively for themselves. (countries like Madagascar, Sri Lanka but not India, USA). Use the country details from this dataset.
Your task is to find the sum of the length of all lines (in kms) that can be drawn between co-ordinates of these countries.
Assume radius of earth: 6371 km
Round length of each line and final result to 2 decimal points
If co-ordinates are missing for any country use 0.000 N 0.000 E
Population limit: 11750
Note: Population limit will change at random intervals. So please make sure answer is computed for the correct population limit before submitting.
State the benefits that can be achieved due to proper programing language semantics.
Using Loop Statement, create a program that will be able to display student information such as, last name, first name, middle name, address.
Sample output:
Enter number of student: 2
Enter Last name: Sinco
Enter First name: Eddiemar
Enter Middle name: Garcia
Enter Address: Cabugao
Student 1
Name: Eddiemar Garcia Sinco
Address: Cabugao
Enter Last name: Sinco
Enter First name: Kent
Enter Middle name: Tiongson
Enter Address: Cabugao
Student 2:
Name: Kent Tiongson Sinco
Address: Cabugao
Using Loop Statement, create a program that will be able to display student information such as, last name, first name, middle name, address.
Sample output:
Enter number of student: 2
Enter Last name: Sinco
Enter First name: Eddiemar
Enter Middle name: Garcia
Enter Address: Cabugao
Student 1
Name: Eddiemar Garcia Sinco
Address: Cabugao
Enter Last name: Sinco
Enter First name: Kent
Enter Middle name: Tiongson
Enter Address: Cabugao
Student 2:
Name: Kent Tiongson Sinco
Address: Cabugao
Ten sources, two with a bit rate of 80 Mbps, four with a bit rate of 20 Mbps and four
with a bit rate of 10 Mbps are to be combined using TDM. If the unit size is 10 bits
determine the following questions:
a) Input bit duration
b) Output bit duration
c) Frame rate