You are on page 1of 10

OOPS ASSINGNMENT

PROCEDURAL PROGRAMMING

 Bakeshop and boutique

ROLLNO :CS_110
SECTION :C
NAME :AREESHA SOOMRO
MISS FAUZIA YASIR
INTRODUCTION :
In this the problem description is here we are
having the python program written in procedural
programming and here there is a bakeshop
selling two items samosa and roll in stock and
after this it is extended furthermore as boutique
and also in this application we can view employee
all information such as his/her wage ,bonus and
status.so concluding this all here in this code we
have and interdependency between bakeshop
and boutique that if a person shops at bakery and
the bill will be above or equal to 200 than a gift
from boutique will be given ,as because of this
dependency we are having some problem and the
problem is discuss soon.

Manual to run the program:


 As in code I made an interface that fully
guide the user to know at what input the
program will proceed
 Here dependency is that if someone get
samosa and roll also do shopping from
boutique if greater or equal to 200 rupees will
get reward from bakeshop

Problem when making solution to it:

 While solving and making algorithm


of this problem ,I faced some problem in
integrating the two different fields that
are bakeshop and boutique.
 As when I made the calculation for
bakeshop it find difficult to also access the
calculation in boutique ,meaning that it be
a difficulty in accessing value that made
bill in bakery to boutique and compare it
,after further resolving I reached a
solution that making the bill as global
variable afterwards the problem resolve
but as the problem solved the problem
also appear that is it is a bad practice to
access many times a global data ,which
may not occur error but some times made
an logically error in calculation .

Why global accessing is not good?

You might also like