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

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



Given a 1D integer array of size n. Range of elements is natural numbers from 1 to n. One number is missing, and one occurs twice. Your task is to find these two numbers.


For example: Arr[9] : 5 6 4 3 2 1 3 7 9 Missing element: 8


Element that occurs twice: 3

Input a positive integer from the user and determine whether the number is a prime number or not.

Input a positive integer from the user and determine whether the number is a perfect number or not.


Note: A perfect number is a positive integer that is equal to the sum of its proper positive divisors, that is, the


sum of its positive divisors excluding the number itself.

Input 10 numbers, and display smallest number


1. Create a method named getCircleDiameter that takes a radius of double type as the parameter. The method should return the diameter of a circle. To compute the diameter of a circle, multiply the radius by 2.



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


Create a class named Person with an instance variable named full_name. Declare one (1) constructor without a parameter and initialize the variable with a default value.



3.Create a class named Account with an instance variable named account_number. Make this class a member of the Accounts namespace.

Write a C++ program using classes and objects, which can find the overall average of the entire group(say n) of patients. A single object with default constructor adds 10 patients with 60 kg average kg overweight or underweight. All objects of this patient class(and ONLY objects of this patient class) update the total weight and the total number(n) of patients and can display the overall average. Your C++ program should provide all these facilities.

      


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

rceast

cat create sat

Sample Output1

2


Sample Input2

tacren

trance recant

Sample Output2

108



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'.


LATEST TUTORIALS
APPROVED BY CLIENTS