View the step-by-step solution to:

This is the question:

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

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question