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

1.How do you show a legend for a line chart with multiple lines in python?

2.How you set a title for a chart in python?



In a game a random sentence was chosen and the players were divided into different groups. Each group was given a word from the sentence, making sure that the number of groups formed is equal to number of words in sentence. Number of players in each group corresponds to number of letters in the word given to them.


They were made to sit in a line in the order of the letters in the word. When game starts, the player should rotate left such that when sat in a line., the word formed should start with a vowel. Find final sentence formed.


Note: if no vowels, player will not rotate



Input: A boy carrying bag slipped on floor



Output: A oyb arryingc agb ippedsl on oorfl



Need correct output sir.

Anil is given a sentence s. He tries to make this sentence special. A sentence can be mads special by swapping the character with the highest frequency with character having lowest frequency in the sentence. Help anil by transfering sentence into a special sentence.



Note: upper and lower case letters are different



* If there are multiple letters with same frequency, choose lower case letter that comes earliest in dictionary order.



* If letters like X and B have same frequency consider X



If x and b have same frequency consider b.



Input: python is a programming language



Output: python is e progremming lenguega




Need correct output sir.

2 6 9 8 5 2 4 6 8 1 8


Find mean, median, mode.

Part 3: KNN

  • Apply the kNN classifier to the Iris data (using 3 neighbors and unweighted distances).
  • Output the classification report and confusion matrix and submit a screenshot of the result (1 mark).

Write a pseudocode algorithm for the problem


JamEx Limited requires a program to calculate and print the commission received by a salesperson. The program should process an undetermined number of salespersons and appropriately terminate by a predefined input. The commission rate is based on two factors, the amount of sales and the class to which a salesperson belongs. The input will be the salesperson number, sales amount and class. The commission rate will be based on the following criteria:

Class=1

If sales is equal to or less than $1000, the rate is 6 percent.

If sales is greater than $1000 but less than $2000, the rate is 7 percent.

If the sales is $2000 or greater, the rate is 10 percent.


Class=2

If the sales is less than $1000, the rate is 4 percent.

If the sales is $1000 or greater, the rate is 6 percent.


Class=3

The rate is 4.5 percent for all sales amount


Class=any other value

Output an appropriate error message


sum of powers:


you are given a list of integers L of size N.write a program to compute the value of SUM

SUM=x1pow1+x2pow2+x3pow3+---+xNpowN

where xi concatenated with powi is the i th element of the list L

and powj is a single digit number

i/p: the input contains space separated N integers

the o/p should be a single integer denoting SUM

L=[25]

o/p:x1=2 , pow1=5

SUM=2^5=32

i/p: 132 301

o/p:199


Find The missing number in each row


4


1 2 3 4


2 3 4 1


3 4 1 2


4 1 2 3


If all rows contains 1 to 4 numbers then it is true else false



Find the difference numbers 7 5 1


Output: 7-5=2, 5-1=4, 7-1=6.


So output is least difference 2





Find the missing number, which number is repeated 1 3 2 1 4



Output: repeated and missing number



1 4




LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS