0% found this document useful (0 votes)
16 views31 pages

Phone OSCompleted

This document is a bonafide certificate for a student at Amrita Vidyalayam who completed a Computer Science project on a basic operating system during the academic year 2024-2025. It includes acknowledgments to teachers and parents, an index of project sections, and detailed descriptions of the project components including system analysis, design, and source code for various functionalities like a calculator and messaging app. The project aims to replicate user experiences found in modern mobile operating systems.

Uploaded by

bnaveenrethan
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)
16 views31 pages

Phone OSCompleted

This document is a bonafide certificate for a student at Amrita Vidyalayam who completed a Computer Science project on a basic operating system during the academic year 2024-2025. It includes acknowledgments to teachers and parents, an index of project sections, and detailed descriptions of the project components including system analysis, design, and source code for various functionalities like a calculator and messaging app. The project aims to replicate user experiences found in modern mobile operating systems.

Uploaded by

bnaveenrethan
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
You are on page 1/ 31

BONAFIDE CERTIFICATE

Certified that ____________________________ of Standard XII studying in


Amrita Vidyalayam, K K Nagar,Chennai has successfully completed Computer
Science project on the topic
_____________________________________________________ during the
academic year 2024-2025 under my guidance for SSCE (Senior School
Certificate Examination) 2024-2025.

Date:

Teacher in charge Principal’s Signature

(Mrs.Hemalatha BN) (Mrs.Subashini Haridas)

External Examiner:

School Seal:
ACKNOWLEDGEMENT

Let me offer my pranams to our Satguru MATA


AMRITANANDAMAYI DEVI whose blessings helped us in
completing this project.

I thank our Principal Mrs.SUBASHINI HARIDAS for her


continuous support in all our academic activities. Let me
express my obeisance and sincere thanks to my Informatics
Practices teacher, Mrs.HEMALATHA BN for her valuable
guidance, critical reviews and encouragement which enabled
me to complete my project successfully.

Last but not least let me extend my hearty respects to my


parents for their kind patronage.
INDEX

S.NO TOPIC PAGE NO.


1 INTRODUCTION 01

2 SYSTEM ANALYSIS 02

3 SYSTEM DESIGN 03

4 SOURCE CODE 04-20

5 OUTPUT 21-28

6 BIBLIOGRAPHY 29
INTRODUCTION

An operating system is the core of any phone/desktop/console


etc. This project shows a basic OS that is used in our phones.
We have made a code that has a normal user experience with
an operating system. Apps that are built into the OS to help
the users that use the OS with basic tasks such as calculating
and getting more information from online etc. People of today
are not able to do specific tasks without the help of the OS.
That is why we have decided to make a code that resembles
an OS used in the mobile phones of today.
SYSTEM ANALYSIS

LANGUAGE: Python

HARDWARE:
Processor: Intel ® Pentium ® CPU G2020
@ 2.90GHz

RAM: 8.00GB

Hard drive: 512GB

PLATFORM: Window 10 Pro

EDITOR: WPS Office​

FRONT END: Python (Version: 3.10,64-bit)

BACK END: CSV, Text Files


SYSTEM DESIGN

The main source code is through Python in which we


have multiple user-defined programs that are used for
apps,lock screen etc. Five user-defined functions are
used to run this OS and the apps. These functions run
when a specific app or feature of the OS is being used.
Users can send messages, use the calculator, search for
doubts in google, and change the pin to unlock the
phone if needed.
SOURCE CODE – 1

def lock_screen():
with open("Lockscreen.txt", "r") as f:
a=f.read().strip()
print("\n\n")
print("\t\t█████████████████████")
print("\t\t█ o █")
print("\t\t█ █")
print("\t\t█ █")
print("\t\t█ Enter The Pin: █")
print("\t\t█ **** █")
print("\t\t█ █")
print("\t\t█ 1 2 3 █")
print("\t\t█ █")
print("\t\t█ 4 5 6 █")
print("\t\t█ █")
print("\t\t█ 7 8 9 █")
print("\t\t█ █")
print("\t\t█ [███████] █")
print("\t\t█████████████████████\n\n")

for i in range(10000):
b = str(input("Enter PIN:"))
if b==a:
print("Unlocked!!")
break
else:
print("Incorrect PIN. Try again.")
SOURCE CODE – 2

def calculator():
while True:
print("\n\n")
print("\t\t███████████████████")
print("\t\t█ o █")
print("\t\t█ CALCULATOR █")
print("\t\t█ ┌───────────┐ █")
print("\t\t█ │ 1.ADD │ █")
print("\t\t█ │ 2.SUB │ █")
print("\t\t█ │ 3.MULTIPLY │ █")
print("\t\t█ │ 4.DIVIDE │ █")
print("\t\t█ │ 5.HISTORY │ █")
print("\t\t█ │ 6.EXIT │ █")
print("\t\t█ └───────────┘ █")
print("\t\t█ [███] █")
print("\t\t███████████████████\n\n")

y = int(input("\n\nChoose an option:"))

if y==1:
a = float(input("\nEnter the first number: "))
b = float(input("Enter the second number: "))
r = str(a+b)
o = str(a) + " + " + str(b) + " = " + str(r)
print("\n\n")
print("\t\t███████████████████")
print("\t\t█ o █")
print("\t\t█ █")
print("\t\t█ █")
print("\t\t█ RESULT: █")
print("\t\t█ █")
print("\t\t█ ",r," ‎‎ █")
print("\t\t█ █")
print("\t\t█ █")
print("\t\t█ █")
print("\t\t█ █")
print("\t\t█ [███] █")
print("\t\t███████████████████")

with open('calc_log.txt', 'a') as f:


f.write(o + '\n')

elif y==2:
a = float(input("\nEnter the first number: "))
b = float(input("Enter the second number: "))
r = str(a-b)
o = str(a) + " - " + str(b) + " = " + str(r)
print("\n\n")
print("\t\t███████████████████")
print("\t\t█ o █")
print("\t\t█ █")
print("\t\t█ █")
print("\t\t█ RESULT: █")
print("\t\t█ █")
print("\t\t█ ",r," ‎‎ █")
print("\t\t█ █")
print("\t\t█ █")
print("\t\t█ █")
print("\t\t█ █")
print("\t\t█ [███] █")
print("\t\t███████████████████")
with open('calc_log.txt', 'a') as f:
f.write(o + '\n')

elif y==3:
a = float(input("\nEnter the first number: "))
b = float(input("Enter the second number: "))
r = (a*b)
o = str(a) + " * " + str(b) + " = " + str(r)
print("\n\n")
print("\t\t███████████████████")
print("\t\t█ o █")
print("\t\t█ █")
print("\t\t█ █")
print("\t\t█ RESULT: █")
print("\t\t█ █")
print("\t\t█ ",r," ‎‎ █")
print("\t\t█ █")
print("\t\t█ █")
print("\t\t█ █")
print("\t\t█ █")
print("\t\t█ [███] █")
print("\t\t███████████████████")
with open('calc_log.txt', 'a') as f:
f.write(o + '\n')
elif y == 4:
a = float(input("\nEnter the first number: "))
b = float(input("Enter the second number: "))

if b == 0:
print("\n\tError: Division by zero is not defined.")
continue

r=(a/b)
o = str(a) + " / " + str(b) + " = " + str(r)
print("\n\n")
print("\t\t███████████████████")
print("\t\t█ o █")
print("\t\t█ █")
print("\t\t█ █")
print("\t\t█ RESULT: █")
print("\t\t█ █")
print("\t\t█ ",r," ‎‎ █")
print("\t\t█ █")
print("\t\t█ █")
print("\t\t█ █")
print("\t\t█ █")
print("\t\t█ [███] █")
print("\t\t███████████████████")
with open('calc_log.txt', 'a') as f:
f.write(o + '\n')

elif y == 5:
print("\n\t===== Calculation History =====\n")
with open('calc_log.txt', 'r') as f:
h= f.readlines()
if h != []:
for l in h:
print("\t",l,"\t-----------------------\n")
else:
print("No calculations logged yet.")

​ elif y == 6:
print("Exiting calculator...")
break

else:
print("Invalid choice. Try again.")
SOURCE CODE – 3
def google():
x={}
with open("google.txt", "r") as f:
for i in f:
a,b=i.split("-")
x[a]=b
while True:
print("\n\n")
print("\t\t███████████████████")
print("\t\t█ o █")
print("\t\t█ GOOGLE CHROME █")
print("\t\t█ 1.Search █")
print("\t\t█ 2.Exit █")
print("\t\t█ ┌─────┐ █")
print("\t\t█ │ ┌-┐ │ █")
print("\t\t█ │ │█│ │ █")
print("\t\t█ │ └─┘ │ █")
print("\t\t█ └─────┘ █")
print("\t\t█ █")
print("\t\t█ [███] █")
print("\t\t███████████████████\n\n")
e=int(input("Enter a Choice:"))

if e==1:
c=input("\nSEARCH GOOGLE:")
d=c.lower()
if d in x :
print("\nAnswer:",x[d])
else:
print("Sorry, I don't know the answer :(")

elif e==2:
print("Exiting Google....")
break
else:
print("Input a Valid Choice.")
SOURCE CODE – 4

import csv
import lock_screen
def settings():
while True:
print("\n\n")
print("\t\t███████████████████")
print("\t\t█ o █")
print("\t\t█ SETTINGS █")
print("\t\t█ █")
print("\t\t█ 1.Change Pin █")
print("\t\t█ █")
print("\t\t█ 2.Factory Reset █")
print("\t\t█ █")
print("\t\t█ 3.Exit █")
print("\t\t█ █")
print("\t\t█ █")
print("\t\t█ [███] █")
print("\t\t███████████████████\n\n")
d=int(input("\n\nEnter a Choice:"))
if d==1:
with open("Lockscreen.txt", "r") as f:
a=f.read()
b=input("\nEnter the pin u want to set: ")
a=b
with open("Lockscreen.txt", "w") as f:
f.write(b)
print("\n\n")
print("\t\t███████████████████")
print("\t\t█ o █")
print("\t\t█ █")
print("\t\t█ █")
print("\t\t█ █")
print("\t\t█ PIN IS █")
print("\t\t█ █")
print("\t\t█ CHANGED !! █")
print("\t\t█ █")
print("\t\t█ █")
print("\t\t█ █")
print("\t\t█ [███] █")
print("\t\t███████████████████")

elif d==2:
with open("mwhatsapp.csv", "w") as f:
print("\n\n")
print("\t\t███████████████████")
print("\t\t█ o █")
print("\t\t█ █")
print("\t\t█ █")
print("\t\t█ █")
print("\t\t█ FACTORY █")
print("\t\t█ █")
print("\t\t█ RESETTING !! █")
print("\t\t█ █")
print("\t\t█ █")
print("\t\t█ █")
print("\t\t█ [███] █")
print("\t\t███████████████████")
pass
with open("calc_log.txt", "w") as f:
pass
with open("Lockscreen.txt", "w") as f:
pass
lock_screen.lock_screen()
break
elif d==3:
print("\n\n")
print("\t\t███████████████████")
print("\t\t█ o █")
print("\t\t█ █")
print("\t\t█ █")
print("\t\t█ EXITING █")
print("\t\t█ █")
print("\t\t█ SETTINGS!! █")
print("\t\t█ █")
print("\t\t█ █")
print("\t\t█ █")
print("\t\t█ █")
print("\t\t█ [███] █")
print("\t\t███████████████████")
break
else:
print("Invalid Choice....")
SOURCE CODE – 5

import csv
def whatsapp():
print('========================WhatsApp========
================')
while True:
print("\n\n")
print("\t\t███████████████████")
print("\t\t█ o █")
print("\t\t█ WHATSAPP █")
print("\t\t█ █")
print("\t\t█ 1.View Messages █")
print("\t\t█ █")
print("\t\t█ 2.Send Messages █")
print("\t\t█ █")
print("\t\t█ 3.Exit Whastsapp █")
print("\t\t█ █")
print("\t\t█ █")
print("\t\t█ [███] █")
print("\t\t███████████████████\n\n")

a=int(input('Choose an option: '))

if a==1:

with open('mwhatsapp.csv','r') as f:
r=csv.reader(f)
print('\n')
for i in r:
print('Receiver:', i[0])
print('Message:', i[1],)

print('----------------------------------------------------')
print('\n')

elif a == 2:

b = input('Enter recipient name:')


c = input('Enter message:')

with open('mwhatsapp.csv','a',newline='') as f:
w=csv.writer(f)
w.writerow([b,c])
print('Message sent!')

elif a == 3:
print('Visit again :)')
break

else:
print('Invalid choice !! Try again.')
SOURCE CODE – 6

import lock_screen
lock_screen.lock_screen()
import whatsapp
import calculator
import settings
import google
import random

while True:

x=random.randint(10,60)
y=random.randint(10,24)
z=str(y)
w=str(x)
print("\n\n")
print("\t\t███████████████████████")
print("\t\t█ o █")
print("\t\t█ ",z+':'+w," █")
print("\t\t█ TUESDAY █")
print("\t\t█ ┌─────────────┐ █")
print("\t\t█ │ 1.WhatsApp │ █")
print("\t\t█ │ 2.Calculator │ █")
print("\t\t█ │ 3.Chrome │ █")
print("\t\t█ │ 4.Settings │ █")
print("\t\t█ │ 5.Lock Screen │ █")
print("\t\t█ │ 6.Power Off │ █")
print("\t\t█ └─────────────┘ █")
print("\t\t█ █")
print("\t\t█ [███████] █")
print("\t\t███████████████████████\n\n")

a=int(input("Choose an option:"))

if a==1:
whatsapp.whatsapp()

elif a==2:
calculator.calculator()

elif a==3:
google.google()

elif a==4:
settings.settings()

elif a==5:
lock_screen.lock_screen()

elif a==6:
print("\n\n")
print("\t\t███████████████████")
print("\t\t█ o █")
print("\t\t█ █")
print("\t\t█ █")
print("\t\t█ SHUTTING █")
print("\t\t█ █")
print("\t\t█ █")
print("\t\t█ DOWN..... █")
print("\t\t█ █")
print("\t\t█ █")
print("\t\t█ █")
print("\t\t█ [███] █")
print("\t\t███████████████████")
break

else:
print("Invalid choice. Try again.")
PROGRAM OUTPUT

OUTPUT FOR MAIN CODE:


OUTPUT FOR LOCKSCREEN:
OUTPUT FOR CALCULATOR:
OUTPUT FOR GOOGLE:
OUTPUT FOR SETTING:
OUTPUT FOR WHATSAPP:
BIBLIOGRAPHY

​ Class 12 Computer Science Book

You might also like