CS Project
CS Project
CS Project
COMPUTER SCIECNE
PROJECT REPORT ON
SUBMITTED BY:
1
DEPARTMENT OF COMPUTER SCIENCE
Bonafide Certificate
This is to certify that A.ALDEN EMMANUEL , a student of
class XI has successfully completed the research on the project
"CONVERT NUMBER TO WORD" under the guidance of
Mrs.Kamala Priya K T during the year 2022-23 in partial
fulfillment of AISSCE Practical Examination. Further, I certify
that this is a record of Bonafide work carried out by the student.
Date InternalExaminer
PRINCIPAL External Examiner
ACKNOWLEDGEMENT
The success and final outcome of this project required a lot of guidance and
assistance from many people and I am extremely privileged to have got this all along
the completion of my project.
Then I thank my Institution and the Institutional Head for helping and guiding me
in the successful completion of my project work.
Finally I thank all those who helped and supported me in completing my project
work.
3
TABLE OF CONTENTS [ T O C ]
01 INTRODUCTION 05
03 PROPOSED SYSTEM 06
06 FLOW CHART 15
07 SOURCE CODE 16
08 OUTPUT 21
09 TESTING 22
11 INSTALLATION PROCEDURE 26
12 27
BIBILOGRAPHY
INTRODUCTION
Number to word processing has increasing importance, and many systems have been
retrieval and extraction, speech synthesis and recognition, localization and multilingual
4
information retrieval systems, text to speech, and tutoring systems. In this Project, we
will focus on converting number to words. Numbers are noted in one or more symbolic
formats: as written words (e.g. “one”), or as Arabic digits (e.g. “1”). Writing the numbers
as words is a difficult task for a large class of people that have a high probability of
errors. They sometimes use one number word in place of another and may write the
number with spelling errors. So, we will focus on how to convert number to digit using
The objective of this project is to let the students apply the programming
knowledge into a real- world situation/problem and exposed the students how
PROPOSED SYSTEM
Today one cannot afford to rely on the fallible human beings of be really
wants to stand against today’s merciless competition where not to wise saying
5
“to err is human” no longer valid, it’s outdated to rationalize your mistake. So, to
keep pace with time, to bring about the best result without malfunctioning and
greater efficiency so to replace the unending heaps of flies with a much sophisticated
One has to use the data management software. Software has been an ascent
markets, which have helped in making the organizations work easier and efficiently.
Data management initially had to maintain a lot of ledgers and a lot of paper work
has to be done but now software product on this organization has made their work
faster and easier. Now only this software has to be loaded on the computer and work
can be done.
This prevents a lot of time and money. The work becomes fully automated
and any information regarding the organization can be obtained by clicking the
6
SYSTEM DEVELOPMENT LIFE CYCLE (SDLC)
divides complex projects into smaller, more easily managed segments or phases.
and planning phases. End users of the system under development should be
involved in reviewing the output of each phase to ensure the system is being built to
7
PHASES OF SYSTEM DEVELOPMENT LIFE CYCLE
INITIATION PHASE
8
SYSTEM CONCEPT DEVELOPMENT PHASE
9
PICTORIAL REPRESENTATION OF SDLC:
PLANNING PHASE
10
REQUIREMENTS ANALYSIS PHASE
This phase formally defines the detailed functional user requirements using high-
level requirements identified in the Initiation, System Concept, and Planning phases. It
also delineates the requirements in terms of data, system performance, security, and
maintainability requirements for the system. The requirements are defined in this
phase to a level of detail sufficient for systems design to proceed. They need to be
measurable, testable, and relate to the business need or opportunity identified in the
Initiation Phase. The requirements that will be used to determine acceptance of the
system are captured in the Test and Evaluation Master Plan.
Further define and refine the functional and data requirements and document
them in the Requirements Document,
Complete business process reengineering of the functions to be supported
(i.e., verify what information drives the business process, what information is
generated, who generates it, where does the information go, and who
processes it),
Develop detailed data and process models (system inputs, outputs, and the
process.
Develop the test and evaluation requirements that will be used to determine
acceptable system performance.
DESIGN PHASE
12
DEVELOPMENT PHASE
Testing as a deployed system with end users working together with contract
personnel
13
Operational testing by the end user alone performing all functions.
Requirements are traced throughout testing, a final Independent Verification
& Validation evaluation is performed and all documentation is reviewed and
accepted prior to acceptance of the system.
IMPLEMENTATION PHASE
This phase is initiated after the system has been tested and accepted by the
user. In this phase, the system is installed to support the intended business
functions. System performance is compared to performance objectives established
during the planning phase. Implementation includes user notification, user training,
installation of hardware, installation of software onto production computers, and
integration of the system into daily work processes. This phase continues until the
system is operating in production in accordance with the defined user requirements.
14
FLOW CHART
15
SOURCE CODE
import sys
def intro():
print("\t\t\t\t*****************************************")
print("\t\t\t\t*****************************************")
print("\t\t\t\t1.Akash")
print("\t\t\t\t2.Antino Jose")
print("\t\t\t\t3.Jery Kristen")
print("\t\t\t\t4.Vinujai Kumar")
print()
intro()
one_digit_words = {
'0': ["zero"],
'1': ["one"],
16
'3': ["three", "thir"],
'6': ["six"],
'7': ["seven"],
'8': ["eight"],
'9': ["nine"],
hundred = "hundred"
def converter(n):
word = []
if n.startswith('-'):
word.append("(negative)")
n = n[1:]
17
sum_list = [n[i:i + 3] for i in range(0, len(n), 3)]
skip = False
for _ in range(len(num)):
num = num.lstrip('0')
if len(num) == 1:
word[-1]):
word.append("and")
word.append(one_digit_words[num][0])
num = num[1:]
break
if len(num) == 2:
if num[0] != '0':
word.append("and")
if num.startswith('1'):
if int(num[1]) in range(3):
18
word.append(two_digit_words[int(num[1])])
else:
range(3, 6, 2) else 0]
"een"))
else:
word.append(one_digit_words[num[0]][1 if int(num[0]) in
range(2, 6) else 0] + ("ty " if num[0] != '8' else 'y ') + (one_digit_words[num[1]]
break
else:
num = num[1:]
continue
if len(num) == 3:
if num[0] != '0':
num = num[1:]
word.append(large_sum_words[len(sum_list[i:]) - 2])
skip = True
19
word = " ".join(map(str.strip, word))
if __name__ == "__main__":
while True:
try:
")
if n == "exit":
break
int(n)
except ValueError:
20
OUTPUT
21
TESTING
TESTING METHODS
Software testing methods are traditionally divided into black box testing and
white box testing. These two approaches are used to describe the point of view that
a test engineer takes when designing test cases.
SPECIFICATION-BASED TESTING
Specification-based testing aims to test the functionality of software according
to the applicable requirements.[16] Thus, the tester inputs data into, and only sees
the output from, the test object. This level of testing usually requires thorough test
cases to be provided to the tester, who then can simply verify that for a given input,
22
the output value (or behaviour), either "is" or "is not" the same as the expected value
specified in the test case. Specification-based testing is necessary, but it is
insufficient to guard against certain risks
The black box tester has no "bonds" with the code, and a tester's perception
is very simple: a code must have bugs. Using the principle, "Ask and you shall
receive," black box testers find bugs where programmers don't. But, on the other
hand, black box testing has been said to be "like a walk in a dark labyrinth without a
flashlight," because the tester doesn't know how the software being tested was
actually constructed.
That's why there are situations when (1) a black box tester writes many test
cases to check something that can be tested by only one test case, and/or (2) some
parts of the back end are not tested at all. Therefore, black box testing has the
advantage of "an unaffiliated opinion," on the one hand, and the disadvantage of
"blind exploring," on the other.
White box testing, by contrast to black box testing, is when the tester has
access to the internal data structures and algorithms (and the code that implement
these)
23
CODE COMPLETENESS EVALUATION
White box testing methods can also be used to evaluate the completeness of
a test suite that was created with black box testing methods. This allows the software
team to examine parts of a system that are rarely tested and ensures that the most
important function points have been tested.
24
HARDWARE AND SOFTWARE REQUIREMENTS
SOFTWARE REQUIREMENTS:
I. Windows OS
II. Python
25
INSTALLATION PROCEDURE
26
BIBLIOGRAPHY
*************************
27