Question: Call your new C++ program SimplifyRadical. Prompt the user to enter the radicand (number under the radical sign) and convert it to a simplified form.
Call your new C++ program SimplifyRadical. Prompt the user to enter the radicand (number under the radical sign) and convert it to a simplified form. While this program will require very good problem solving skills, in the end it's rather simple in it's nature. Think about the steps in simplifying a radical and make each one a line of code. You can have two different approaches to this problem:
1. to work from the largest possible perfect square you can factor from your radicand and work down.
2. to work from the smallest possible perfect square you can factor from your radicand and work up.
You can do this with a while loop and a half dozen lines of code.
You will need to do some housekeeping in the end to make your result look nice - you will see once you finish the first part.
Here is some sample data from my program:
Please enter a number to simplify: 72 6 SqRt [2]
Do you have another number to simplify? y for yes or n for no y
Please enter a number to simplify: 36 6
Do you have another number to simplify? y for yes or n for no y
Please enter a number to simplify: 29 SqRt [29]
Do you have another number to simplify? y for yes or n for no
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
