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

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


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


String repetition-4


you are a given string.repeat the same string N times separated by space.


explanation

in the given example the string is messages , N = 3 .

so we have to repeat the string three times.then we get messages messages messages

as output


sample input 1

messages

3


sample output 1

messages messages messages


sample input 2

pop

4


sample output 2

pop pop pop pop


compare last three characters


write a program to check if the last three characters in the given two strings are same.


input

the first and second lines of inputs are the same.


output

the output should be either True or False


Explanation

given strings are apple , pimple. in both strings,the last three characters ple are common.


sample input 1

apple

pimple


sample output 1

True


sample input 2

meals

deal


sample output 2

False


Make Class Students, having



1. Private data items (First Name, Full Name, Address),



2. Public member functions, getData, showData.



3. Main () function



Create Array of objects (students), (maximum 5 students), call member functions



getData, showData const

Explain the start up process of a computer clearly indicating the purpose of the POST, BIOS and CMOS

LATEST TUTORIALS
APPROVED BY CLIENTS