Write a program that allows the user to enter center point

Assignment Help C/C++ Programming
Reference no: EM131745988

Program Assignment

The following formula gives the distance between two points (x1, y1) and (x2, y2) in the Cartesian plane:

√((x_2- x_1 )^2+(y_2- y_1 )^2 )

Given the center and a point on a circle, you can use this formula to find the radius of the circle. Write a program that allows the user to enter the center point and a point on the circle into textboxes (you can use four for the four coordinates). The program should then display in a listbox the circle's radius, diameter, circumference, and area. Your program must have at least the following methods:

- Distance: This method takes as its parameters four numbers that represent two point in the plane and returns the distance between them

- Radius: This method takes as its parameters four numbers that represent the center and a point on the circle, calls the method distance to find the radius and returns the circle's radius

- Circumference: This method takes as its parameter a number that represents the radius of the circle and returns the circle's circumference. (If r is the radius, the circumference is 2∏r.)

- Area: This method takes as its parameter a number that represents the radius of the circle and returns the circle's area. (If r is the radius, the area is ∏r2.)

- Assume that ∏ = 3.14159.

Reference no: EM131745988

Questions Cloud

Views on such hierarchical systems in modern society : How do notions of status affect Hindu religion? What are your views on such hierarchical systems in modern society?
What is the average time blood sample spends in the lab : What is the average time a blood sample spends in the lab?
Specializes in exploration and development of natural gas : You are the CFO of Thunderduck Energy, Inc, a public company that specializes in the exploration and development of natural gas.
Analyze the value of the press coverage in the media : Analyze the value of the press coverage in the media of the high profile law cases.Give special attention on the effect of the prejudicial publicity in the case
Write a program that allows the user to enter center point : Write a program that allows the user to enter the center point and a point on the circle into textboxes (you can use four for the four coordinates).
Estimate the true percentage of people : How many such random checks would they have to do to estimate the true percentage of people who misrepresent their backgrounds to within with 98% confidence
How is status determined in hindu society : Describe in more detail the four castes prescribed by orthodox Hinduism? How is status determined in Hindu society?
Construct a confidence interval for the true distance : Paper airplanes. In preparation for a regional paper airplane competition, a student tried out her latest design. Construct a 95% confidence interval
Wealthy neighborhood and a fairly poor neighborhood : You recently inherited some property between a wealthy neighborhood and a fairly poor neighborhood.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd