Garantie de satisfaction à 100% Disponible immédiatement après paiement Lire en ligne ou en PDF Tu n'es attaché à rien 4,6 TrustPilot
logo-home
Notes de cours

Basic & introduction with python

Note
-
Vendu
-
Pages
6
Publié le
29-03-2023
Écrit en
2022/2023

It's all about problem solving methods and types in python and learn basic & introduction with python object oriented programing language. If want learn more about python language then i will upload all unit of python language. Kepp supporting see you soon

Montrer plus Lire moins
Établissement
Cours

Aperçu du contenu

UNIT-1
Problem Solving Process
The process of problem-solving is an activity which has its ingredients as the
specification of the program and the served dish is a correct program. This
activity comprises of four steps :
1. Understanding the problem: To solve any problem it is very crucial to
understand the problem first. What is the desired output of the code and
how that output can be generated? The obvious and essential need to
generate the output is an input. The input may be singular or it may be a set
of inputs. A proper relationship between the input and output must be drawn
in order to solve the problem efficiently. The input set should be complete
and sufficient enough to draw the output. It means all the necessary inputs
required to compute the output should be present at the time of
computation. However, it should be kept in mind that the programmer
should ensure that the minimum number of inputs should be there. Any
irrelevant input only increases the size of and memory overhead of the
program. Thus Identifying the minimum number of inputs required for
output is a crucial element for understanding the problem.
2. Devising the plan: Once a problem has been understood, a proper action
plan has to be devised to solve it. This is called devising the plan. This step
usually involves computing the result from the given set of inputs. It uses the
relationship drawn between inputs and outputs in the previous step. The
complexity of this step depends upon the complexity of the problem at hand.
3. Executing the plan: Once the plan has been defined, it should follow the
trajectory of action while ensuring the plan’s integrity at various checkpoints.
If any inconsistency is found in between, the plan needs to be revised.
4. Evaluation: The final result so obtained must be evaluated and verified to
see if the problem has been solved satisfactorily.

, Problem Definition/Specification: A computer program is basically a machine
language solution to a real-life problem. Because programs are generally
made to solve the pragmatic problems of the outside world. In order to solve
the problem, it is very necessary to define the problem to get its proper
understanding. For example, suppose we are asked to write a code for “
Compute the average of three numbers”. In this case, a proper definition of
the problem will include questions like :
“What exactly does average mean?”
“How to calculate the average?”
Once, questions like these are raised, it helps to formulate the solution of the
problem in a better way. Once a problem has been defined, the program’s
specifications are then listed. Problem specifications describe what the
program for the problem must do. It should definitely include :


INPUT :
what is the input set of the program
OUTPUT :
What is the desired output of the program and in what form the output is
desired?
Problem Analysis (Breaking down the solution into simple steps): This step of
solving the problem follows a modular approach to crack the nut. The problem
is divided into subproblems so that designing a solution to these subproblems
gets easier. The solutions to all these individual parts are then merged to get
the final solution of the original problem. It is like divide and merge approach.
Modular Approach for Programming :
The process of breaking a large problem into subproblems and then treating
these individual parts as different functions is called modular programming.
Each function behaves independent of another and there is minimal inter-
functional communication. There are two methods to implement modular
programming :
Top Down Design : In this method, the original problem is divided into
subparts. These subparts are further divided. The chain continues till we get

École, étude et sujet

Établissement
Cours

Infos sur le Document

Publié le
29 mars 2023
Nombre de pages
6
Écrit en
2022/2023
Type
Notes de cours
Professeur(s)
Sunil
Contenu
Toutes les classes

Sujets

$8.59
Accéder à l'intégralité du document:

Garantie de satisfaction à 100%
Disponible immédiatement après paiement
Lire en ligne ou en PDF
Tu n'es attaché à rien

Faites connaissance avec le vendeur
Seller avatar
hiworld

Faites connaissance avec le vendeur

Seller avatar
hiworld
S'abonner Vous devez être connecté afin de pouvoir suivre les étudiants ou les formations
Vendu
-
Membre depuis
2 année
Nombre de followers
0
Documents
1
Dernière vente
-

0.0

0 revues

5
0
4
0
3
0
2
0
1
0

Documents populaires

Récemment consulté par vous

Pourquoi les étudiants choisissent Stuvia

Créé par d'autres étudiants, vérifié par les avis

Une qualité sur laquelle compter : rédigé par des étudiants qui ont réussi et évalué par d'autres qui ont utilisé ce document.

Le document ne convient pas ? Choisis un autre document

Aucun souci ! Tu peux sélectionner directement un autre document qui correspond mieux à ce que tu cherches.

Paye comme tu veux, apprends aussitôt

Aucun abonnement, aucun engagement. Paye selon tes habitudes par carte de crédit et télécharge ton document PDF instantanément.

Student with book image

“Acheté, téléchargé et réussi. C'est aussi simple que ça.”

Alisha Student

Foire aux questions