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

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.


Given an array A of N integers and two integers X and Y, find the number of integers in the array that are both less than or equal to X and divisible by Y

Create a C++ program which shows the given menu items:

1. Create (The create option will create a text file named "mytext.txt"). 

   * This option should save accept basic personal information of the user such as name, course, email and contact number.

2. Read (The read option will read the contents of the file.)

3. Append (The append option will add text contents in mytext.txt)

 * This option should add a string inputted by the user

4. Exit (The exit option will terminate the program which means the program is in loop while running)


User inputs a word. Programmesays if it has vowels or not

1.    Create a class named 'Student' with a string variable 'name' , an integer variable 'roll_no' , 3 float variable called marks 1 , marks 2 , marks 3 and a character variable called grade . Assign the value by creating an object of the class Student.

Then print the ouput like:

 

Name: hamza manzoor

Roll No: s2019266036

Marks 1: 63.5

Marks 2: 55.5

Marks 3: 89.5

Grade: B

Write a program to accept five different numbers by creating a class called friend func1 and  friend func2 taking 2 and 3 arg respectively and calculate the average of these numbers by passing   object of the class to friend function.


Take in a number




from the user print if it's divisible by 3 or 5 or 3 and 5

Write a C++ program to make a structure of a student consisting of integer age, char name and


structure roll number that further divides into department, session, registration number and


degree. Set and display all the values from main function and display the record on screen to


present the access of structure within structure. You have to by access structure using pointer


type variable of structure.



How big of a role do green issues such as energy efficiency


LATEST TUTORIALS
APPROVED BY CLIENTS