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.
![Develop a program to implement the division of the line segment.
В
A
You need to consider the following requirements:](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fce0115da-a35c-43dd-9de8-4c854747a682%2F13ec8e8e-6ab2-47bf-b52c-36340ba11010%2Ftf14uk_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)