Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Most programming problems are quite large and difficult to fully understand. One

ID: 3664788 • Letter: M

Question

Most programming problems are quite large and difficult to fully understand. One approach to dealing with such a problem is to decompose the problem into smaller sub-problems (divide and conquer). Each sub-problem may then be further broken down into even smaller problems (stepwise refinement). Eventually, each remaining problem is small enough to develop a function for. Think about software systems you have used (i.e. word processor, web server, calculator, iPod, etc.) and identify some of the main functions that those systems would need.

Explanation / Answer

Generally In the Case of Calculator, We can follow the Approach of BASIC C++ that is it follows some OOPS (Object Oriented Programming Structured) .Based on this we can explain in the case of Calculator.

Let us consider Calculator is Main Program, the generally we write like this

            Calculator c = new Calculator ();

Here Calculator class can be initialized. So it is main program, it contains different functions like ADDITION, SUBTRACTION, DIVISION,MULTIPLICATION and so on…

That means the program divided into subprograms like ADDITION, DIVISION ..

Each Contains so many instructions like what they to do, this comes under divide and conquer principle. We can call as c.Addition (), c.Division() and so on..

Sub Programs also follow some OOPS instructions and do their Operations. It is also follow divided and conquers rules and performs operations.

This is Generally idea about divide – conquer principles.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote