Questions: 5 831

Answers by our Experts: 5 728

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Bhanu and Soham are good friends. Yesterday they have given an exam in which there were given two different set of questions to solve. Bhanu was given set A and Soham was given set B. After examination they want to cross check their answers. For this they need to identify common questions in their sets. Write a python function Check_Common(A, B) which takes two sets A and B as a input and return true if any common question found otherwise return false.


 

Example-1

Example-2

Input:

{1, 2, 3, 4}

{4, 5, 6, 7}

 

Output:

True

Input:

{1, 2, 3, 4}

{5, 6, 7, 8}

 

Output:

False

 






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: 65110000

Note: Population limit will change at random intervals. So please make sure answer is computed for the correct population limit before submitting.

Describe the difference between a chained conditional and a nested conditional. Give your own example of each. Do not copy examples from the textbook.


Deeply nested conditionals can become difficult to read. Describe a strategy for avoiding nested conditionals. Give your own example of a nested conditional that can be modified to become a single conditional, and show the equivalent single conditional. Do not copy the example from the textbook




Write a program that has 3 functions: the main function; a function, called getInput(), to

validate the input data; and a function, called findSum(t), to find the summation of even

or odd numbers in a range(0, 10). In particular,

 The getInput() function:

 This function should be called in the main function to validate the data. It asks the

user to input either “e” (even numbers) OR “o” (old numbers). It keeps

asking the user for valid input unit valid input is given, then it returns the valid input

to the main function.

 The findSum(t) function:

 t: a "str" which shows whether you want to sum of all the even or odd numbers in the

range(0, 10)

 If the value of the argument t is 'e', the function should return the sum of all

even natural numbers in the range(0, 10).

 If t has the value 'o', the function should return the sum of all odd natural

numbers in the range(0, 10).

 The main function (): controls the flow of the program and prints the result


GIVE ME MY CHANGE in PYTHON!




The coins and bills in the existing Philippine Monetary System are




given below.




Coins




Bills




5 centavos




10 centavos




20 pesos




50 pesos




25 centavos




1 peso




100 pesos




200 pesos




5 pesos




10 pesos




500 pesos




1000 pesos




Given a change in pesos, create a Python script which will decompose the input CHANGE in terms of the largest possible amount in bills/coins.

Draw a flowchart and create a program that check the weight of the users baggage. The standard baggage is 20kg.An additional charge of PHP 200 per kilogram will be incured when it is exceeded. Pls help me


Exam Scores




Captain Holt has corrected the exam papers of detectives and noted the scores of the written and physical tests. The results were posted in two lists: one with the scores of the written test, the other with the scores of the physical test in order of the badge numbers. The office needs a list containing the detective's scores on both tests in order of their badge number.




Input




First line of input contains the score of students in Chemistry exam separated by comma. Second line of input contains the score of students in English exam separated by comma.




Output




Every line of output contains the score obtained by each student in English and Chemistry exams separated by space




Explanation




Given the input




Written Test 65




Minysical Test - 25




That is, Detectivel scored 75 in Physical Test and 65 in




Written Test.




The output should be 76 65




Sample Input 1



65



75




Sample Output 1



75 65







Write a function that takes as input an array of current values 𝑥 and an array of parameters 𝑝𝑎𝑟𝑎𝑚s params and returns the probability density for each value of 𝑥

x based on a probability distribution that is the weighted sum of as many normal distributions as there are current levels in the data. We were given an array of current values of a single ion channel


Write a function that TAKES a list of numbers and RETURNS the addition of all its element

  • Quiz 1 (20 marks - 10% Weight),
  • Quiz 2 (20 marks - 10% Weight),
  • Class test (50 marks - 25% Weight),
  • Assignment (100 marks - 25% weight) and
  • Project (200 marks - 30% weight).

Design a program that will prompt the user for marks for each of the tests and calculate the overall marks (out of 100).