Advertisement

What is Computer Problem Solving Learning Objectives and Modular Programming


Computer Problem Solving 

The plan period of the program improvement cycle is the main period of program advancement particularly on account of industry level code. In this part you will discover that separating a perplexing issue into more modest undertakings during the plan stage makes it simpler to address and prompts improvement of particular projects. 

You will likewise become familiar with some program configuration devices that guide in the plan of a program – pseudocode, stream graphs and progressive system diagrams. 

Given an issue, finding an answer that can be incorporated into a program for a PC is an innovative and testing task. Despite the fact that there is no broad equation or formula for composing a program, there are a few systems that can be utilized for concocting an answer for a given issue. In this section, you will become familiar with some broad critical thinking procedures for tackling issues utilizing PCs. 

Acquiring these abilities will help you configuration top down secluded projects utilizing program configuration instruments. 

Learning Objectives 

In the wake of perusing this part you ought to have the option to: 

  1. Use different procedures and instruments to configuration programs. 
  2. Utilize the standards of top down measured program plan. 
  3. Apply stepwise refinement to part an issue into less complex sub issues. 
  4. Depict the advantages of measured programming. 
  5. Use pseudocode to plan a program. 
  6. Use chain of importance diagrams to portray a secluded plan. 
  7. Use flowchart images to plan a program portion. 
  8. Portray general critical thinking procedures. 

Measured Programming 

Envision the perplexing assignment of building a house. Putting resources into first getting a modeler to plan the house and make a diagram will clearly bring about a decent quality house that suits clients' requirements. 

Likewise, a decent definite plan is much the same as a diagram that makes it simpler to compose great and right program code. Investing exertion and energy in building a decent plan as opposed to racing into coding can't be more over-stressed. 

Likewise, the assignment of developing the house is impossible all together. The plan must be separated into more modest sensible assignments, for example, – establishing the framework, assembling the dividers, laying the rooftop, placing in entryways and windows, laying electrical links, etc. 

This division of assignments reveals to us that specific undertakings should be done before others –, for example, dividers can't be set up before the establishment has been laid. Additionally, we come to realize that specific undertakings can be performed simultaneously –, for example, windows can be set up simultaneously as the electrical wiring is being finished. 

It's the equivalent with a program. It is simpler to review huge projects by breaking the perplexing issue into more modest and easier reasonable units. A decent method to start planning a huge program is to recognize the significant undertakings that the program should achieve. Every one of these assignments at that point turns into a module in the program. Recognizing the undertakings and different subtasks associated with the program configuration is called secluded programming. 

A particular program, as opposed to one single piece of source code is made out of more modest, isolated lumps of code (modules) that are very much disconnected yet have all around characterized interfaces for correspondence with different modules. These modules can be created by independent groups with their own life cycles and their own timetables. The outcomes can later be gathered together. 

In C++ modules are executed as capacities. You will figure out how to compose capacities in the following unit.

Stepwise program

When the basic undertakings that are expected to tackle an issue are distinguished, the more significant level assignments can be additionally part into sub errands if conceivable. The subtasks become sub-modules of the first parent task. The development of assignments can proceed as long as fundamental or until the subtask can't be additionally refined. 

This cycle of separating an issue into less complex and more modest sub issues more than once until no further separate is conceivable is called stepwise refinement or top-down plan. A top-down model is frequently determined with the help of "secret elements", these make it more clear. 

To represent the particular programming strategy, let us think about a model. 

A bank needs to build up a program, which when given a sum/balance in an individual's fixed store account, the pace of revenue and the time span for the store, will register the basic premium that the sum in the record has acquired. This interest is then added to the record's equilibrium to get the new equilibrium sum. 

The information factors expected to take care of the issue are 

  • Amount - the sum/balance in the record 
  • The pace of interest 
  • Period – the time frame for which the store has been held 
  • Interest – the premium acquired on the store sum 

The crucial errands that we need to perform to tackle the issue are as per the following: 

1. Input Data: Input factors – sum, return on initial capital investment and the time frame. 

2. Perform Calculations: 

Register the interest. Addition the sum. 

3. Display Result: Display the premium procured on the store and the new sum. The central errands can be additionally partitioned into more modest sub modules if conceivable.

Following are the reasons why you ought to follow a secluded way to deal with program plan: 

Improved Readability – The program is simpler to peruse and comprehend. This lessens the time expected to find blunders in the program code. 

Increased Productivity – It is simpler to configuration, code and test enormous projects each module in turn instead of at the same time. This expands the efficiency of the developers. 

Higher Maintainability – It is simpler to recognize segments in code (in a particular module) where flaws happen and make essential changes to it without influencing the remainder of the modules. 

Reduced Development Time – Different program modules can be planned and coded by various developers consequently diminishing an opportunity to grow enormous complex programming. 

Smaller Programs – a similar module can be utilized/summoned more than once in various pieces of the code of a similar program in this way lessening size of the code. 

Reusability – Modules performing regular undertakings, (for example, looking or arranging) can be utilized in more than one program subsequently lessening the time and exertion in program advancement. 

Post a comment

0 Comments