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

Input a number and display that how many digits it has.


The value of a%b is 3 and the value of b%a is 1 as the smallest of the two is 1 so the out putbe 1





Sample output





3





7





Sampleinput





1

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



LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS