This is the question:

Write a c++ program that accepts the rectangular coordinates of two points (x,y) and (x2,y2), calculates the distance of each point from the origin and calculates the distance between the two points. The distance, d, between two points is given by this formula.

This is what I have thus far. What Im I missing

#include<iostream>

#include<cmath>

using namespace std;

void Cylinder( double radius, double length, double volume, double surface)

{

volume = 3.14 * pow(radius,2) * length;

surface = 2 * 3.14 * radius* length;

return ;

}

int main()

{

double r, l , v, s;

cout << " Please enter the radius ( in cm) of the cylinder : " endl;

cin >> r;

cout << " Please enter length ( in cm) of cylinder: " endl;

cin >> l;

Cylinder ( double radius, double length, double volume, double surface);

cout << " Your volume is: "<< v << " and your surface is: " << s << endl;

return 0;

}

### Recently Asked Questions

- Martin Luther King Jr. changed his strategies in the late 1960s; as a result, he lost the support of the NAACP,

- which dietary consistent needs to be increased for individuals with healing fractures? 1) folic acid to prevent development of anemia 2) dietary calcium to

- Explain the difference between Science and Pseudoscience, giving clear examples of both.