Source Code Project PDF
Source Code Project PDF
INPUT/OUTPUT 9
7
REQUIRMENTS
HARDWARE & 10
8 SOFTWARE
REQUIRMENTS 13
9
DATABASE(CSV FILES) 15
10
SOURCE CODE 24
11 OUTPUT 30
12
REFRENCE
ACKNOWLEDGEMENT
APART FROM THE EFFORT OF ME, THE SUCCESS OF ANY PROJECT
DEPENDS ON THE ENCOURAGEMENT AND GUIDELENES OF MANY
OTHERS. I TAKE THIS OPPORTUNITY TO EXPRESS OUT GRATITUDE TO
THE PEOPLE WHO HAVE BEEN INSTRUMENTAL IN THE SUCCESSFUL
COMPLETION OF THIS PROJECT.
ROLL NO:
CLASS: XII Sc
Preface
AIM: TO DEVELOP “DATA MANAGEMENT SYSTEM”
(Multinational Companies).
Objective
Simple and easy to operate.
Increased efficiency.
Save time.
How data management
system more beneficial
then manual system?
High level
Object oriented
Simple
Interpreted
Open software
Expressive language
GUI programming
Python Library-matplotlib
Matplotlib is a cross-platform, data visualization and
graphical plotting library for Python and its numerical
extension NumPy. As such, it offers a viable open source
alternative to MATLAB. Developers can also use matplotlib’s
APIs (Application Programming Interfaces) to embed plots in
GUI applications.
C.s.v file
A CSV (comma-separated values) file is a text file that has a
specific format which allows data to be saved in a table
structured format.
Database csv file
SOURCE CODE
df1=pd.read_csv("C:\\Users\\lenovo\\Desktop\\companies
data.csv")
print(df1)
s=("Main Menu")
while(True):
print("Main Menu")
print("1. Display records of top MNCs")
print("2. Fetch data")
print("3. Update values")
print("4. Looking for a particular section?")
print("5. Want some comparison?")
print("6. EXIT")
break
Ch=int(input("Enter Choice"))
if Ch==1:
print(df1)
elif Ch==2:
while(True):
print("Database")
print("1. Top 5 Companies")
print("2. Bottom 5 Companies")
print("3. Specific number of companies from the top")
print("4. Specific number of companies form bottom")
print("5. Exit")
Ch2=int(input("Enter Choice"))
if Ch2==1:
print(df1.head())
elif Ch2==2:
print(df1.tail())
elif Ch2==3:
n=int(input("Enter how many companies you want to
display from the top"))
print(df1.head(n))
elif Ch2==4:
n=int(input("Enter how many companies you want to
display from the bottom"))
print(df1.tail(n))
elif Ch2==5:
break
elif Ch==3:
while(True):
print("Working on columns Menu")
print("1. Insert a new column data")
print("2. Delete a specific column")
print("3. Exit")
Comp=['Microsoft','Meta','Amazon','Google','Tesla','Tata','Relian
ce','Infosys','SpaceX','Netflix']
Emp=[221000,58604,1468000,150028,110000,935000,342982,2
76319,12000,11300]
plt.title("No. of employees in top MNCs")
plt.xlabel("Company name")
plt.ylabel("No. of employees in lakhs")
plt.plot(Comp,Emp,color='y',)
plt.show()
break
elif Ch5==2:
Comp=['Microsoft','Meta','Amazon','Google','Tesla','Tata','Relian
ce','Infosys','SpaceX','Netflix']
Net=[2135,36,1053.5,1420,710.78,260,229,79.06,2,131.6]
plt.title("Net worth of top MNCs")
plt.bar(Comp,Net,color='b')
plt.xlabel("COMPANY NAME")
plt.ylabel("NET WORTH IN BILLION DOLLARS")
plt.show()
break
elif Ch5==3:
Comp=['Microsoft','Meta','Amazon','Google','Tesla','Tata','Relian
ce','Infosys','SpaceX','Netflix']
Gpos=[21,27,1,2,103,78,104,50,378,245]
plt.plot(Comp,Gpos,color='r')
plt.title("Horizontal Bar Graph representing company
information")
plt.xlabel("COMPANY NAME")
plt.ylabel("GLOBAL POSITION")
plt.show()
elif Ch5==4:
break
elif Ch==6:
Break
OUTPUTS
References
Preeti arora
Class notes