Develop a program to implement the division of the line segment. P В A You need to consider the following requirements:
QUESTION 2
Develop a
*PICTURES
You need to consider the following requirements:
1. Your program should be able to provide the user with a menu that offers the following options:
a. Find point P: ask the user to enter start point (A), endpoint (B), and the ratio (AB:PB).
b. Calculate the ratio (AP:PB). Ask the user to enter start point (A), endpoint (B) and point P (the point between A and B).
c. Find the start point A: ask the user to enter endpoint (B), point P, and the ratio (AP:PB).
d. Find the endpoint B: ask the user to enter start point (A), point P, and the ratio (AP:PB).
2. Use the formula you have learned in the class to calculate distance, point P, and point B.
3. Display the output to the user.


Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images









