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 class named TIME that has hours, minutes, and seconds, data members, as integers. The class has gettime () to get the specified value in the object, showtime () to display the time object in *hh:mm:ss* format. Write a main () function to create two-time objects. get the value in two objects and display all time objects.

Create a class named Distance that has feets (as int) and inches (as float). The class has Getdist (int, float) to get the specified value in object, Showdist () to display distance object in feets’ inches” format. Write main () function to create two distance objects. Get the value in two objects and display all objects.

Rate of interest using abstract class in java


Check whether atm pin num valid or not using encapsulation java

Bhaskar found an array A of size n and wants to find a subsequence of the array which is good.

A subsequence is a sequence that can be derived from the given array by deleting zero or more elements without changing the relative order of the remaining elements.


A good subsequence meets following:

The length of the subsequence is even.

let the subsequence be B of size t, where t is even, So let the function f[i] = B[2*i] + B[2*i + 1] for all i from 0 to t2−1 both inclusive. Please note that indexing is zero-based here. So Sotwik wants all the f[i] to be same. In other words f[0] = f[1] = ... = f[t2−1] should hold.


As Bhaskar wants to utilize the whole array and delete as fewer elements as possible. He needs your help in finding the minimum number of elements that are required to be deleted such that the remaining subsequence is a good subsequence.


Input

n is the size of array. Second line has elements of array A of size n.


Output

Print a single integer denoting the minimum number of deletions required.


1) Review the test data at the bottom of the attached image.

1a) Provide a more likely dataset.

1b) Based on the new dataset you created in 1a), provide an associated expected result.

Data: Normal test data : 50, 50, 50, 50, 50, 50, 50, 50, 50, 50

Expected result: 50


Write a program (Wrapper classes and Vectors)

a. To create a Vector, add element to it and calculate its size and capacity.

b. To add Integer element and find out first and last element in Vector.



A race is going to be held soon in college. Each racer will be assigned 3 random points from a set of N distinct points, the ith point is denoted by (Xi,Yi). In order to complete the race, each person has to run on a triangular track, assuming the 3 assigned points to be the corners of the track.

Raghav being the lazy participant wanted to run on the track with the least distance among all the possible tracks. Now, he wants your help to find out what is the smallest distance he has to run in order to finish the race.


Input

The first line contains an integer N(3≤N≤100)

N(3≤N≤100) — the number of points.

This is followed by N lines, each containing two integer Xi and Yi (−10^9≤Xi,Yi≤10^9)

— the coordinates of the ith point.


Output

Print a single real number d where d is the perimeter of the smallest track.


Explain why the following data needs verification:

a) Entering a telephone number.

b) Entering a pupil's name into the school information system.

c) Entering a part number in the form of XXX999, where X must represent a letter and 9 must be a digit between 0 and 9.


Write a Java driven application with the following requirements:



1. Must enter names of students.



2. Enter test 1, 2 and 3 scores for each of my students.



3.  Program must calculate the average of each student.



4. Average of each student must appear below their names. ARRAY and MENU implementation should be necessary.



For example:



Student Name: Peter



Average: 56



Student Name: Roxy



Average: 89.3

LATEST TUTORIALS
APPROVED BY CLIENTS