Question

In: Computer Science

In programming and flowcharting, what components should you always remember in solving any given problem?

In programming and flowcharting, what components should you always remember in solving any given problem?

Solutions

Expert Solution

Initially, before answering the problem, We need to Analyse the problem, regarding logic and what we required to solve the problem. whether it is programming or flowchart.

Lets start with the programming components:

Step 1:As i mentioned above the firts and foremost we should analyse the problem for writing the logic.

Step 2: For writing the logic we need to prepare the algorithm based on what we analysed on the problem.

Step 3: Based on algorithm we will implement flowchart and next will put those process into programming language for getting solution for the problem what we analysed earlier.

Step 4: While writing the logic in programming we need some components like Input,output, conditional statements and loopings and some arithmetic operations.

In programming language we need to aware about the syntax of the language and below steps.

Input: we need to know what are the inputs from the problem.

Logic : When its come to main part in the program is logic we need to very clear about what we need to use for the getting opur required output to solve the problem.

Output: we should know about what we should get from the program.

Flowchart Components:

Step 1: As i mentioned above the firts and foremost we should analyse the problem for draw the flowchart.

Step 2: Before creating the flowchart we should implement the algorithm for the process.

Step 3: Based on algorithm we will create the flowchart for the problem

Step 4: In both, Flowchart and Programming the process is same but only the difference is implementation.

In Flowchart implementation is based on the symbol shapes like Oval, Recatangles and Diamonds...

The main thing while creating the flowchart is we should maintain the ordering the components(shapes).

Because each symbol or shape having a different meaning.

Ex: OVAL represent start and end points in Flowchart.

RECTANGLE represent the clear description for the work (process)

DIAMONDS represent the decision points.

ARROWS represent the dirction of process.

Note: Programming and Flowchart process is almost similar but the way of iplementation is different.   


Related Solutions

What should a good investor always remember when they are trading?
What should a good investor always remember when they are trading?
What is meant by community-oriented policing and problem solving, and what are the components of the...
What is meant by community-oriented policing and problem solving, and what are the components of the problem-solving process?
In this assignment, you will practice solving a problem using object-oriented programming and specifically, you will...
In this assignment, you will practice solving a problem using object-oriented programming and specifically, you will use the concept of object aggregation (i.e., has-a relationship between objects). You will implement a Java application, called MovieApplication that could be used in the movie industry. You are asked to implement three classes: Movie, Distributor, and MovieDriver. Each of these classes is described below. The Movie class represents a movie and has the following attributes: name (of type String), directorsName (of type String),...
Main task is solving problem, in this code there is problem. and you should explain? #include...
Main task is solving problem, in this code there is problem. and you should explain? #include <unistd.h> #include <fcntl.h> #include <stdlib.h> #include <stdio.h> int main(int argc, char *argv[]){ int fd1, fd2; char buffer[100]; long int n1; if(((fd1 = open(argv[1], O_RDONLY)) == -1) || ((fd2 = open(argv[2], O_CREAT|O_WRONLY|O_TRUNC,0700)) == -1)){ perror("file problem "); exit(1); } while((n1=read(fd1, buffer, 512) > 0)) if(write(fd2, buffer, n1) != n1){ perror("writing problem "); exit(3); } // Case of an error exit from the loop if(n1 ==...
Dynamic Programming (DP) is an algorithmic technique for solving an optimization problem by breaking it down...
Dynamic Programming (DP) is an algorithmic technique for solving an optimization problem by breaking it down into simpler subproblems and utilizing the fact that the optimal solution to the overall problem depends upon the optimal solution to its subproblems. When the technique is applicable, this condition can be extended incrementally without having to alter previously computed optimal solutions to subproblems. Eventually the condition applies to all of the data and, if the formulation is correct, this together with the fact...
Hands-On Assignments are designed to foster independent thinking and problem solving programming skills. This activity is...
Hands-On Assignments are designed to foster independent thinking and problem solving programming skills. This activity is closely guided by the course instructor. Students are encourages to ask instructor any questions related to this challenge. Similar to the course Exercises, this activity also has a Base Code. The initially given Base Code to Start with this exercise: --------------Start---------------- guess.py   (also, see starters in the course FILES/StudentFiles/Exercise Starter Files) --------------End ---------------- Prompt Task to Accomplish The Base Code implements “guessing” of one number....
What is Group Problem Solving? Explain the different types of problem-solving techniques. Please explain what technique...
What is Group Problem Solving? Explain the different types of problem-solving techniques. Please explain what technique you think is most effective and why?
Find f by solving the initial-value problem. (Remember to use absolute values where appropriate.) f '(x)...
Find f by solving the initial-value problem. (Remember to use absolute values where appropriate.) f '(x) = (x+9)/x   ; f(1) = 2 f(x)=
Problem Solving/Goal Setting Checkpoint Provide an example of a time when you used the problem solving...
Problem Solving/Goal Setting Checkpoint Provide an example of a time when you used the problem solving and decision making. What is the role of creativity in the problem solving process? What are three ways that you can increase your personal creativity? Respond to the following in a essay: Describe a time you encountered a problem that required you to use the problem solving and decision making steps on page 150 of the textbook. How did you solve the problem using...
Recall the dynamic programming algorithm we saw in class for solving the 0/1 knapsack problem for...
Recall the dynamic programming algorithm we saw in class for solving the 0/1 knapsack problem for n objects with a knapsack capacity of K. In particular, we characterized our recurrence OPT(j, W) to be following quantity: OPT(j, W) := The maximum profit that can be obtained when selecting from objects 1, 2, . . . , j with a knapsack capacity of W , where (after filling in our dynamic programming table), we return the value stored at OPT(n, K)...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT