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

Dice Score:

two friends are playing a dice game, the game is played with five six-sided dice. scores for each type of throws are mentioned below.

three 1's = 1000 points

three 6's = 600

three 5's = 500

three 4's = 400

three 3's = 300

three 2's = 200

one 1 = 100

one 5 = 50

I/p: 2

1 1 1 1 1

6 6 6 1 5

O/p: 1200

750

I/p: 2

2 1 5 2 2

1 1 1 2 2

O/p: 350

1000



Pager:

Imagine a paper with only one button. for the letter "A", you press the button one time, for "B", you press it 2 times for "E", you press it five times. for "G", it's pressed seven times, etc.

Given a string s, print the total number of times the button should be pressed

explanation: given string is abde. then the total no. of times the button pressed is 1+2+4+5=12

I/p: abde

O/p: 12

I/p: xyz

O/p: 75


given a matrix of M rows & N columns, you need to find the smallest number in each row & print the sum of the smallest numbers from all rows.

explanation: M=3. given matrix is

1 2 3

4 5 6

7 8 9

the minimum elements of each row 1, 4, 7 => sum is 1+4+7=12

I/p: 3 3

1 2 3

4 5 6

7 8 9

O/p: 12

I/p: 2 3

0 12 -13

-10 0 10

O/p: -23


m rows, n columns:



input:

3,3


output:

1 2 3

4 5 6

7 8 9


validation:


username should be in between 4 and 25

should start with letters but not underscore

should not be special characters


input:

google

output:

true


input:

google@123

output:

false


max points on your card:


input:

2

3

CA D9 H8

3

SJ SQ S8


OUTPUT:

11

28


pager:


input:

abde(1+2+4+5)

output:

12


input:

XYZ

output:

75


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


How to calculate arithmetic in python programming

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS