IP Project
IP Project
IP Project
PROJECT
IN
ELECTRONICS COMPANY
NAME : …………………………………………………………………………………….
BONAFIDE CERTIFICATE
PRINCIPAL
ACKNOWLEDGEMENT
I solemnly take the opportunity to thank all the helping hands who
made me to complete this project. First of all I thank the Almighty for keeping me
hale and healthy in order to successfully complete my work.
Last but not the least, I express my heartiest thanks to my lovable parents
and friends for their prayers, suggestions and encouragement for the successful
completion of the project.
Sincerely,
CONTENTS
$ INTRODUCTION
$ SOURCE CODE
$ SAMPLE OUTPUT
$ CONCLUSION
$ BIBLIOGRAPHY
INTRODUCTION
Python is an interpreted, high-level, general-purpose
programming language. Created by Guido van Rossum
and first released in 1991,Python’s design philosophy
emphasizes code readability with its notable use of
significant whitespace. Its language constructs and object-
oriented approach aim to help programmers write clear,
logical code for small and large scale objects.
Electronics Company
This project is done using the python programming
language. This is a project containing a python program of
a company named ‘A.C.E Electronics'. It includes details
about the products, departments and the whole company
. The program can be modified and can be used for other
companies. The work interface is very simple and suits any
type of users. To run this program you have to check the
requirements mentioned inside.
Hardware & Software Requirements
RAM : 2 GB (Minimum)
4 GB (Recommended)
Operating System : 32 bit x86(Minimum)
64 bit x64 (Recommended)
labels=["R15","H450","T800","Y50","R65","H120G","T400R","Y70
"]
size=[342,654,408,322,468,857,436,549]
plt.pie(size,labels=labels)
plt.title("Price Comparison of Laptops")
plt.show()
x7=input("\nType as 'c' to continue or
\n"
"Type'e' to exit : ")
if x7=="e":
print("\nPROGRAM STOPPED")
elif x7=="c":
x7="c"
else:
print("\nINVALID INPUT")
x7="c"
elif cc=="m":
x7="c"
elif cc=="e":
print("\nPROGRAM STOPPED")
break
else:
print("\nINVALID INPUT")
elif aa=="t":
print("\nSmart TVs"
"\n---------")
print("\n",df3)
dd=input("\nTo display graph,Enter 'g' or\n"
"To go to main menu,Enter 'm' or\n"
"To exit the program,Enter 'e' : ")
if dd=="g":
df3.plot.line()
plt.title("Price Comparison of Smart
TVs")
plt.show()
x7=input("\nType as 'c' to continue or
\n"
"Type'e' to exit : ")
if x7=="e":
print("\nPROGRAM STOPPED")
elif x7=="c":
x7="c"
else:
print("\nINVALID INPUT")
x7="c"
elif dd=="m":
x7="c"
elif dd=="e":
print("\nPROGRAM STOPPED")
break
else:
print("\nINVALID INPUT")
elif b=="e":
d=input("\nTo add a new product,Enter 'a' or\n"
"To remove a product,Enter 'r' : ")
if d=="a":
e=input("\nEnter S.no : ")
f=input("Enter the new product name here :
")
srs1=srs1.append(pd.Series(f,index=[e]))
print("\n",srs1)
print("\nPRODUCT ADDED!")
x7=input("\nType as 'c' to continue or \n"
"Type'e' to exit : ")
if x7=="e":
print("\nPROGRAM STOPPED")
elif x7=="c":
x7="c"
else:
print("\nINVALID INPUT")
x7="c"
elif d=="r":
g=input("\nEnter the S.no of the product to
remove : ")
if g in (srs1.index):
srs1=srs1.drop(g)
print("\n",srs1)
print("\nPRODUCT REMOVED!")
x7=input("\nType as 'c' to continue or
\n"
"Type'e' to exit : ")
if x7=="e":
print("\nPROGRAM STOPPED")
elif x7=="c":
x7="c"
else:
print("\nINVALID INPUT")
x7="c"
else:
print("\nPRODUCT NAME NOT FOUND")
else:
print("\nINVALID INPUT")
elif b=="m":
x7="c"
elif b=="x":
print("\nPROGRAM STOPPED")
break
else:
print("\nINVALID INPUT")
elif a=="2":
print("\n",df4)
h=input("\nTo edit, Enter password or\n"
"To continue,Enter 'c' or\n"
"To exit the program,Enter 'e' : ")
if h=="p":
i=input("\nTo change any department's
manager,Type as 'm' or \n"
"To change any manager's salary,Type as
's' : \n"
"To change No.of employees/yers in any
department,Type as 'n' : ")
if i=="m":
j=input("\nEnter D.code of manager(row
number) : ")
k=input("Enter the new manager's name : ")
df4.at[j,"Managers"]=k
print("\n",df4)
print("\nMANAGER OF A DEPT UPDATED!")
x7=input("\nType as 'c' to continue or \n"
"Type'e' to exit : ")
if x7=="e":
print("\nPROGRAM STOPPED")
elif x7=="c":
x7="c"
else:
print("\nINVALID INPUT")
x7="c"
elif i=="s":
l=input("\nEnter D.code of manager(row
number) : ")
m=input("Enter the new salary amount : ")
df4.at[l,"Salary"]=m
print("\n",df4)
print("\nSALARY OF A MANAGER UPDATED!")
x7=input("\nType as 'c' to continue or \n"
"Type'e' to exit : ")
if x7=="e":
print("\nPROGRAM STOPPED")
elif x7=="c":
x7="c"
else:
print("\nINVALID INPUT")
x7="c"
elif i=="n":
n=input("\nEnter the D.code of
departments(row number) : ")
o=input("Enter the number of
employees/employers : ")
df4.at[n,"No.of Employees/Employers"]=o
print("\n",df4)
print("\nNO.OF EMPLOYEES/YERS UPDATED!")
x7=input("\nType as 'c' to continue or \n"
"Type'e' to exit : ")
if x7=="e":
print("\nPROGRAM STOPPED")
elif x7=="c":
x7="c"
else:
print("\nINVALID INPUT")
x7="c"
else:
print("\nINVALID INPUT")
elif h=="c":
x7="c"
elif h=="e":
print("\nPROGRAM STOPPED")
break
else:
print("\nINCORRECT PASSWORD/INVALID INPUT")
elif a=="3":
print("\nAbout the Company\n"
"-----------------\n"
"A.C.E Electronics Private Lmtd company was
incorporated in 1990."
"This is a private owned company started by
Dr.Amartya Sen,"
"incorporated in India.The company's
manufacturing units are "
"spread over around 7 countries.Started with
manufacture of "
"only Televisions and now the company is so
popular for its "
"smartphones and laptops.There are over 11000
of employees "
"working and most of the work are done by
machines.The company "
"produces 35 million smarphones,10 million
laptops,7 million "
"televisions in a year.It is aiming to provide
quality products "
"with more and more upcoming features and at a
low price.")
x7=input("\nType as 'c' to continue or \n"
"Type'e' to exit : ")
if x7=="e":
print("\nPROGRAM STOPPED")
elif x7=="c":
x7="c"
else:
print("\nINVALID INPUT")
x7="c"
else:
print("\nNO DETAILS FOUND")
x7=input("\nType as 'c' to continue or \n"
"Type'e' to exit : ")
if x7=="e":
print("\nPROGRAM STOPPED")
elif x7=="c":
x7="c"
else:
print("\nINVALID INPUT")
x7="c"
SAMPLE OUTPUT
A.C.E Electronics Private Lmtd
------------------------------
Details
-------
Titles:-
1.Products
2.Departments
3.About
Password:'p'
S.No Products
1 SmartPhones
2 Laptops
3 TV
dtype: object
S.No Products
1 SmartPhones
2 Laptops
3 TV
4 Smart Watch
dtype: object
PRODUCT ADDED!
Type'e' to exit : c
------------------------------
Details
-------
Titles:-
1.Products
2.Departments
3.About
Password:'p'
S.No Products
1 SmartPhones
2 Laptops
3 TV
4 Smart Watch
dtype: object
S.No Products
1 SmartPhones
2 Laptops
4 Smart Watch
dtype: object
PRODUCT REMOVED!
Type'e' to exit : c
------------------------------
Details
-------
Titles:-
1.Products
2.Departments
3.About
Password:'p'
S.No Products
1 SmartPhones
2 Laptops
4 Smart Watch
dtype: object
SmartPhones
-----------
S.No
Type'e' to exit : c
------------------------------
Details
-------
Titles:-
1.Products
2.Departments
3.About
Password:'p'
S.No Products
1 SmartPhones
2 Laptops
4 Smart Watch
dtype: object
-------
S.No ...
1 Ace Infinite R15 4GB,1TB SSD ... NVIDIA GTX 4000 34200
2 Ace Infinite H450 12GB,2TB HDD ... AMD Radeon RX5700 65400
3 Ace Infinite T800 8GB,2TB SSD ... NVIDIA Quadro RTX p2000 40800
4 Ace Infinite Y50 4GB,512GB SSD ... NVIDIA Quadro RTX 4000 32200
5 Ace Infinite R65 8GB,2TB HDD ... NVIDIA GTX 6000 46800
6 Ace Infinite H120G 12GB,2TB HDD ... AMD Radeon 5600XT 85700
7 Ace Infinite T400R 8GB,2TB HDD ... NVIDIA Quadro p4000 43600
8 Ace Infinite Y70 8GB,512GB HDD ... NVIDIA Quadro RTX 8000 54900
[8 rows x 5 columns]
Type'e' to exit : c
------------------------------
Details
-------
Titles:-
1.Products
2.Departments
3.About
Password:'p'
S.No Products
1 SmartPhones
2 Laptops
4 Smart Watch
dtype: object
---------
S.No
Type'e' to exit : c
------------------------------
Details
-------
Titles:-
1.Products
2.Departments
3.About
Password:'p'
D.code
To continue,Enter 'c' or
D.code
Type'e' to exit : c
------------------------------
Details
-------
Titles:-
1.Products
2.Departments
3.About
Password:'p'
D.code
To continue,Enter 'c' or
D.code
Type'e' to exit : c
------------------------------
Details
-------
Titles:-
1.Products
2.Departments
3.About
Password:'p'
D.code
To continue,Enter 'c' or
D.code
------------------------------
Details
-------
Titles:-
1.Products
2.Departments
3.About
Password:'p'
-----------------
A.C.E Electronics Private Lmtd company was incorporated in 1990.This is a private owned company
started by Dr.Amartya Sen, incorporated in India.The company's manufacturing units are spread over
around 7 countries.Started with manufacture of only Televisions and now the company is so popular for
its smartphones and laptops.There are over 11000 of employees working and most of the work are done
by machines. The company produces 35 million smarphones,10 million laptops,7 million televisions in a
year. It is aiming to provide quality products with more and more upcoming features and at a low price.
Type'e' to exit : c
------------------------------
Details
-------
Titles:-
1.Products
2.Departments
3.About
Password:'p'
NO DETAILS FOUND
Type'e' to exit : e
PROGRAM STOPPED
-------------------------------------------------------------------------------------------------------------
CONCLUSION
This is a project made with the python programming
language. The program is designed for the data analysis to
an imaginary company (ACE Electronics).This program
contains pandas series, pandas dataframe to store data of
products, departments and these can be edited
(add,delete,update etc) using inputs.This program can be
used for other companies and can be modified to do more
things. Just check out the hardware and software
requirements to run this program.
Thanks to all who helped me to complete this project,
especially our Ip teacher Sudha Ma’am and all of my
friends and family members. Thanks to all the readers.
BIBLIOGRAPHY
Reference Text: Informatics Practices by Sumita
Arora
$ www.google.com
$ www.stackexchange.com
$ www.wikipedia.com
$ www.w3schools.com