Questions: 5 290

Answers by our Experts: 5 288

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

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




Q1. Find the frequency of the given numbers 1 3 1 2 4 5.


Output:


1 2


2 1


3 1


4 1


5 1

Create a class named 'Rectangle' with two data members- length and

breadth and a function to calculate the area which is 'length*breadth'. The

class has three constructors which are :

1 - having no parameter - values of both length and breadth are assigned

zero.

2 - having two numbers as parameters - the two numbers are assigned as

length and breadth respectively.

3 - having one number as parameter - both length and breadth are

assigned that number.

Now, create objects of the 'Rectangle' class having none, one and two

parameters and print their areas.


  1. How you import Matplotlib and Seaborn? What are the common aliases used while importing these modules?
  2. What is the purpose of the magic command %matplotlib inline?
  3. How do you plot a line chart in Python? Illustrate with an example.

question number #176592 same quation but you are two test case pass but submission wrong ans

Special Characters

Write a program to count Vowels and Consonants in string.Input


The input will be a single line containing a string s.Output


The first line of output should contain no of Vowels in the given string

The second line of output should contain no of Consonants in the given stringExplanation


For example, if the given string is "Good Morning"

Vowels in the string "Good Morning" are "o, i" and their count is 4.

Remaining characters in the string are consonants their count is 7.

The First line of output is 4\nThe second line of output is 7.


Write a class named Car that uses the following data attributes:


LATEST TUTORIALS
APPROVED BY CLIENTS