#Write a program using two-dimensional arrays that lists the odd numbers and even numbers separately in a given 12 input values.
Sample input/ output dialogue:
enter twelve numbers
13 15 20 13 35 40 16 18 20 18 20 19
odds
13 15 13 35 19
Even
20 40 16 18 20 18 20
A Pythagorean Triplets is a set of three integers a, b, c such that a2+b2=C2. In the given limit L. Find the number of Pythagorean Triplets R that can be formed (such that a<b<c).
Create a class called time that has separate int member data for hours, minutes, and
seconds. One constructor should initialize this data to 0, and another should initialize it
to fixed values. Another member function should display it, in 11:59:59 format. The final
member function should add two objects of type time passed as arguments. A main() program should create two initialized time objects (should they be const?) and one that isn’t initialized. Then it should add the two initialized values together, leaving the result in the third time variable. Finally it should display the value of this third variable. Make appropriate member functions const.
Implement your own version of the priority queue data structure using java with OOPs principles mentioned functionalities: enqueue, Dequeue (highest priority), peek(highest priority), contains, size, center, sort reverse, iterator, traverse/print.
Use of similar data structures already present in the language/framework is not allowed.
Implement your own version of queue data structure using java with OOPs principles mentioned functionalities: enqueue, Dequeue , peek, contains, size, center, sort reverse, iterator, traverse/print.
Use of similar data structures already present in the language/framework is not allowed.
Area and Perimeter of square
you are given a side of square as input.Write a program to find the perimeter and area of square.
input
the input is an integer representing the length of the side of the square
output
the first line of the output should contain area of the square, and the second line of the output should contain the perimeter of the square as per the format shown in the sample output.
explanation
given the length of the side is 2 .
as the area of square is side*side and perimeter of the square is 4*side
the output should be
area of the square is : 4
perimeter of the square is : 8
sample input 1
3
sample output 1
area of the square is : 9
perimeter of the square is : 12
sample input 2
4
sample output 2
area of the square is : 16
perimeter of the square is : 16
Why is the V soln .1?, Isn't that just the solvent?
In a plant nursery, the owner thinks that the lengths of seedlings in a box sprayed with a new kind of fertilizer has an average height of 26cm. after three days and a standard deviation of 10cm. one researcher randomly selected 80 such seedlings and calculated the mean height to be 20 cm. and the standard deviation was 10cm. will you conduct a one tailed test or two- tailed test? proceed with the test with 95% confidence level
Elements in the range
You are given three numbers. Check if any of the numbers exist in the range from 10 to 20(including 10 to 20).
input
the first,second and third lines of inputs are the integers.
output
the output should be either True or False
Explanation
Given a = 2,b = 4,c = 16 , 16 is in the range between 10 and 20.
so the output should be True.
sample input 1
2
4
16
sample output 1
True
sample input 2
2
4
6
sample output 2
False
chicken egg mas the mass of 60kg.The egg is 10% of the total mass.The egg shall is made of calcium carbonate what is the mass of the calcium in the egg