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

Calculate Manhattan distances between these pairs of points (total 10*10 = 100


pairs inlcuding self pairs).This should give you a 10*10 2-D array where each value


corresponds to the distance between a pair

in a building there are n rooms numbered from 1 to n in each room there is a bulb that is initially open for the odd numbered rooms and off for the even numbered rooms before visiting a room, you will note the state of the bulb rooms before visiting a room you will note the state of the bulb when you leave a room the bulb is turned off if it is on and turned on if it numbered you then return to the station room and repeat the process for n times in python assignment


riya took part in a maths quiz competition to win the prize money she hass to solve a tricky question at the end for a given list of integers write a program where all the integers in a given index range have to be added she will be given M multiple rangs where she should print the sum of numbers for each corresponding range


New Dictionary


Peter is making a new dictionary. He wants to arrange the words in the ascending order of their length and later arrange the ones with the same length in lexicographic order. Each word is given a serial number according to its position. Find the word according to the serial number.


The serial number of words in Peter's dictionary is as follows


Word


Serial Number


A


B


1.


C


24


25


26


27


AA


AB


28


BA



a class of students p gave a science viva their final results are listed out in the order of their roll numbers in the list s the teacher asked the students to note the number of students who gave the viva after them and got less score than them write a program to get the final list from the students in the roll number order


A credit card company calculates a customer's "minimum payment" according to the following formula. The minimum payment is equal to either $10 or 19.9% of the customer's balance, whichever is greater; but if this exceeds the balance, then the minimum payment will be the balance. Write a program to print out the minimum payment using Python built-in functions min and max.

Example 1: If your balance is 1000, then your program should print "The minimum payment is 199".

Example 2: If your balance is 600, then your program should print "The minimum payment is 119.40".

Example 3: If your balance is 25, then your program should print "The minimum payment is 10".

Example 4: If your balance is 8, then your program should print "The minimum payment is 8".


smallest amoung three numbers input = 6,5, 4 and -1000, - 1000, -1000


Find the closest pairs (excluding self pairs) on the basis of both the distance


measures

b) Define the find_max_gap function which will take as a parameter a list of values, sort it in ascending order and return the largest difference between two consecutive values ​​in the list. Assume that the value list has at least two values ​​and that no function control is required for this. c) Define the present_list function that accepts a value list as an argument, and prints it as in the example: The random list is: 466.45, -59.27, -492.51, 410.98, 439.27 d) The program asks the user to enter the number n of the random values ​​that will be created, the range of values ​​(the user will give m), and the seed.


A program is asked to execute a text that is given as a multi-line string, and then returns statistics on the frequency of characters and word usage in the text based on the following specification. a) Create the auxiliary function capitalize_keep_only_en_chars (word) which accepts a word at the input and returns it in capital letters after ignoring characters other than the English alphabet (punctuation, etc.). For example, to enter "one--" return the word "ONE".