0% found this document useful (0 votes)
35 views3 pages

Python Flowchart Lab Manual

This document outlines the tasks for the first Python programming lab of the semester. Students are instructed to form teams of 2-3 members and complete a series of tasks related to flowcharts, Python installation, and career applications of Python. The tasks include drawing flowcharts for basic programming problems and scenarios, installing the latest version of Python, and explaining why Python is useful for career development. During the last half hour of the lab session, teams will present their flowchart solutions and receive feedback from peers, with grading based on their presentation.

Uploaded by

Sahil Shah
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views3 pages

Python Flowchart Lab Manual

This document outlines the tasks for the first Python programming lab of the semester. Students are instructed to form teams of 2-3 members and complete a series of tasks related to flowcharts, Python installation, and career applications of Python. The tasks include drawing flowcharts for basic programming problems and scenarios, installing the latest version of Python, and explaining why Python is useful for career development. During the last half hour of the lab session, teams will present their flowchart solutions and receive feedback from peers, with grading based on their presentation.

Uploaded by

Sahil Shah
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

SVKM’s NMIMS University

Mukesh Patel School of Technology Management & Engineering


COURSE: Python Programming Lab Manual
Faculty: Prof. Leena Nadkar
BTI Sem III - Div B,C,D

Week - 1
Lab -1 - Part I
Lab Aim: Revision - FlowChart, Basic Programming Concepts, Python Installation

Task 1: (Estimated Time: 10 mins)


Make a team of 2-3 students and enter your team details in the shared sheet.
Same team should be maintained till the end of semester including for the mini project and
other group activities.
[Link]

Task 2: (Estimated Time: 60 mins)


Revise flowchart basics and draw flowchart for the problem statements mentioned
below:

Flowchart Basics:

Flowcharts graphically represent the flow of a program. There are four basic shapes used in a
flow chart. Each shape has a specific use:

oval: start / end parallelogram: input / output

rectangle: calculations diamond: selection structures

Arrows connect the basic shapes in a flowchart. The shapes and arrows of a flowchart
describe the flow of a program from start to end. Flowcharts typically flow from the top to
the bottom or flow from the left to the right.
SVKM’s NMIMS University
Mukesh Patel School of Technology Management & Engineering
COURSE: Python Programming Lab Manual
Faculty: Prof. Leena Nadkar
BTI Sem III - Div B,C,D

Draw Flowchart for following questions:


Note:
Flowcharts can be drawn in notebooks, scanned and uploaded in document OR following
software can be used [Link]

Direct Programs:
1. Program to Add Two Numbers
2. Program to Find the Square Root
3. Program to Calculate the Area of a Triangle
4. Program to Swap Two Variables
5. Program to Convert Celsius To Fahrenheit
6. Program to Check if a Number is Positive, Negative or 0
7. Program to Check if a Number is Odd or Even
8. Program to Find the Largest Among Three Numbers
9. Program to Check Prime Number
10. Program to Find the Factorial of a Number
11. Program to Display the multiplication Table
12. Program to Print the Fibonacci sequence
13. Program to Find the Sum of Natural Numbers
14. Program to Find the Factors of a Number
15. Program to Make a Simple Calculator
16. Program to Add Two Matrices
17. Program to Transpose a Matrix
18. Program to Multiply Two Matrices

Scenario based Programs:


1. Draw flowchart for : Playing snakes and ladders between two players
(Text in pink is dry run)

a. Start
b. Throw the dice: the number indicated by dice is 3.
c. Move the coin: through 3 blocks on the board.
d. Landed on snake head?: No.
e. Landed on the bottom of the ladder?: Yes (See the snakes and ladders
board given). Move up the ladder: reached block 14 on the board.
f. Reached the last block of the game?: No.
g. Give dice to the next player.
h. Enter the loop till the last block of the game is reached.
SVKM’s NMIMS University
Mukesh Patel School of Technology Management & Engineering
COURSE: Python Programming Lab Manual
Faculty: Prof. Leena Nadkar
BTI Sem III - Div B,C,D

i. End
2. There are four types of fruits Apples, Oranges, Bananas and Grapes. Each student can
pick up two fruits. There are some conditions which have to be used to pick up the
fruits. Draw a flow chart which can take the name of first fruit as an input and print
the names of second fruit or fruits that can be picked up. The conditions are:
a. If you pick an apple you can pick a banana.
b. If you pick oranges you can pick grapes.
c. If you pick grapes you can pick bananas.

Task 3: (Estimated Time: 15 mins)


Python Installation
Download Python from following link: [Link]
Download the latest version

Links for guidance:


Windows Installation [Link]
[Link]
Mac Installation
s
Ubuntu Installation [Link]

Task 4: (Estimated Time: 10 mins)


Answer the following question in detail:
Why should you learn python in 2021? How can Python help you in career development?

Task 5: (Last half hour of Lab Session)

1. Teams will be selected randomly


2. Any student from team will be asked to share screen and explain to the batchmates
their solution for flowchart questions
3. Peers are expected to correct / give suggestions where necessary in the questions
4. It is expected that students parallely go on solving and uploading their solutions in
document and must present it when asked
5. Grading of this lab session (10 marks) will be done on basis of presentation given by
the team

Instructions:
1. Upload the document on portal when access is available
2. Naming convention: PP__Lab1_PartI_Week1_Div_RollNo

Common questions

Powered by AI

The implicit benefits of working in teams include the development of communication skills, exposure to diverse problem-solving approaches, and enhanced learning through peer assistance. The NMIMS University lab manual suggests that teamwork leads to collaborative learning and shared responsibility in tasks like flowchart design and programming exercises, ultimately resulting in a more comprehensive and thorough understanding of course material .

The Python installation process differs across operating systems mainly in installation methods and post-installation environment setup. For instance, Windows requires using an installer and may involve setting environment variables, while Ubuntu installation is typically command-line based using a package manager. Challenges include dealing with PATH settings in Windows or dependency issues in Linux distributions, which the lab manual acknowledges by providing different installation guides .

Python is considered a suitable language for beginners due to its readable syntax, comprehensive libraries, and supportive community. The lab exercises, such as the ones focused on basic programming concepts like addition and condition checks, support this characterization by offering straightforward problems that highlight Python's simplicity and immediate applicability, thereby reducing the barrier to entry for new programmers .

Creating a flowchart for converting Celsius to Fahrenheit involves starting with an input shape to receive the Celsius value, using a rectangle to perform the calculation (Fahrenheit = Celsius * 9/5 + 32), followed by a parallelogram to output the Fahrenheit result. The use of clear shapes to distinguish input, processes, and output aligns with the methodologies outlined in the lab manual for developing program flowcharts .

Python programming can significantly enhance career prospects in 2021 by equipping individuals with a versatile skill set applicable in various fields such as data science, web development, and automation. The exercises in the lab manual, such as developing flowcharts and solving algorithmic tasks, foster critical thinking, problem-solving abilities, and familiarity with computational logic, all of which are highly valued by employers in tech-driven industries .

The lab manual's educational approach, which emphasizes practical learning through tasks and flowchart development, contrasts with traditional curricula focused more on theoretical lectures. This hands-on approach can lead to better student outcomes by actively engaging students in problem-solving and collaboration from the beginning, which enhances retention and understanding of programming concepts compared to passive learning methods .

The Python Programming Lab manual incorporates collaborative learning by forming teams to work on tasks throughout the semester. This approach enhances student engagement by fostering peer-to-peer interaction, allowing students to explain concepts to one another which can improve comprehension. Team-based projects and peer review sessions, as outlined in Tasks 1 and 5, encourage active learning and critical analysis of solutions, which can lead to a deeper understanding of the material .

The flowchart exercises prepare students for real-world programming challenges by fostering algorithmic thinking through the systematic analysis of problems and solutions. By requiring students to break down tasks such as checking if a number is prime into discrete steps, these exercises develop their ability to plan and organize code logic effectively, which is crucial for tackling complex programming tasks in professional environments .

Flowcharts play a critical role in understanding and developing Python programs by visually representing the program's flow, processes, and decision points, which aids in conceptualizing complex logic and order of operations. At NMIMS University, they are essential for educational purposes as they help students visually break down problems before coding, ensuring they understand the logic before implementation .

Flowchart-based programming exercises are effective for understanding conditional logic because they visually represent decision-making steps. The use of diamond shapes in flowcharts to denote conditions enables students to see the flow of logic clearly, such as checking if a number is odd or even. This visual aid helps in understanding how different pathways are taken based on conditions, which is fundamental to grasping Python's control structures .

You might also like