L-032 L2 Samyuktha Mandampully PPS Experiment 1 PDF Algorithms Computer Programming 4
L-032 L2 Samyuktha Mandampully PPS Experiment 1 PDF Algorithms Computer Programming 4
L-032 L2 Samyuktha
Mandampully PPS
Experiment 1
Uploaded by Samyuktha Jagesh
Document Information
This document contains instructions for an experi…
Original Description:
Download now
Download as pdf or txt
Copyright
© © All Rights Reserved
Facebook
Mukesh Patel School of Technology Management and
Engineering, Vile Parle, Mumbai- 400056
Email
Experiment: 1
PART A
TASK: Read two numbers from the user and add these 2 numbers and store the result for
future use
Inputs /outputs/operations
Step 1: accept first number from user into variable A
Step 2: accept second number from user into variable B
Step 3: accept third number in X
Step 4: accept fourth number in Y
STEP 5: accept fifth number in V
Step 6 : accept sixth number
Step 3: Perform C = A+B
Step 4: store the addition/result into C
Step 5: stop
Iterations:
A.3 Theory:
Algorithm:
Defined as: “A sequence of activities to be processed for getting desired output from a given input.”
+ Addition
- Subtraction
* Multiplication
/ Division
Flowchart:
Defined as a diagram which visually presents the flow of data through processing systems.
Flowchart can be used for representing an algorithm. It describes the operations (and in what
sequence) are required to solve a given problem.
A.4 Task 1:
For the following Problem Statements write Algorithm and Draw a Flowchart.
Sponsored