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 python program to print the following output.


Input

The first line of input contains a single line positive integer N.

The second line of input contains a space-separated integers denoting the cost of the item.


Output

The output is a single line integer.


Explanation

For example, Given N = 2 and cost = 10 200

Ram has to pay for both the items, he won't get anything for free.

So the output is 210.



Sample Input1

4

1 1 2 2

Sample Output1

4


Sample Input2

2

10 200

Sample Output2

210


Write code to load data from cars.csv into a dataframe and print its details. Details like: 'count', 'mean', 'std', 'min', '25%', '50%', '75%', 'max'.


You are given n inputs, write a program to print the first prime number in the given inputs.


In the given example of 5 integers.

5

1

10

4

3

2


Output should be

3


A 2-character string, userPassword, is read from input. Replace each digit character in userPassword with '*'. Otherwise, userPassword is not changed.


Given string inputString on one line, character newLetter on a second line, and integer strIndex on a third line, change the character at index strIndex of inputString to newLetter


Write a complete C++ program that • Creates a 12 element integer array containing elements between 0 and 20 using the rand function. • After creating the array, sort it using any of the sorting methods then ask the user to guess a number between 0 and 20. • To search if the number is in the array, create a menu: 1: Linear 2: Binary. The different search algorithms are to be created in separate Functions. • int LinearSearch(int list[], int size, int value) • int BinarySearch(int list[], int size, int value) • if it is guessed number is found the chosen function should return the index of the value to the main function, then the main function should sshow index and value to the user


write a program that show the working of tollplaza.the program will consist of vehicle class which has further two child(paying vehicle and non paying vehicle).Vehicle class should be having an account of all the vehicle that pass through the toll-plaza . paying vehicle has three type:

1)Type A(used for cars/jeeps)

2)Type B(used for Hiace/truck)

3)Type C(used for bus/heavy vehicles)

Type A has passing fee RS30/- Type B has passing fee RS50/- Type C has passing fee RS100/-

There is another class Person who is going to the entry but he needs to be authorized by assigning a unique id and password.

Note:

us static function,classes,constant,global variable where ever necessary.Output will begin by a Welcome message and then ask for authorization of the person. It should be having proper messages and the object should only be created at the time of use. Incorrect entry of person should only take 5 entries and then end/exit the program.


  1. Create a struct named Product where its fields are code, description, and price. 

Write a program to print the following output.


Input

The first line contains a string.

The second line contains some space-separated strings.


Output

The output should be a single integer.


Explanation

scramble word = "tacren"

guessed words = ["trance", "recant"]


Since "trance" and "recant" both have length 6 then you score 54 pts each.

So the output is 108.


Sample Input1

tacren

trance recant

Sample Output1

108


Sample Input2

rceast

cat create sat

Sample Output2

2


Python Program


Write a program to print the following, Given a word W and pattern P, you need to check whether the pattern matches the given word.The word will only contain letters(can be Uppercase and Lowercase). The pattern can contain letters, ? and *.


? : Can be matched with any single letter.

* : Can be matched with any sequence of letters (including an empty sequence).


If the pattern matches with the given word, print True else False.


Sample Input1

3

Hello *l?

Hell He?ll

Hell ?*

Sample Output1

True

False

True


Sample Input1

3

Hello Hell*

Hell He*ll

Hell hell*

Sample Output1

True

True

False


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS