Information System c2
Information System c2
Islington College
Programming
CS4001NI
Coursework 2
Student Name 1
CS4001NI Programming
Proposal
This coursework belongs to develop the application for the hotel which includes the
information about rooms and guest. Different system software is use for managing
the application in computer. An application is the group of programs which is
designed for user to perform the task. It also known as the end-user programs. The
system software is to run as hardware and application programs. For the operating
system, it includes macOS, windows, Linux, etc.
Purpose
In this coursework, the application software is to develop for a hotel which includes
information in a text file about its room and guests. An application designed for the
task perform as to display the available rooms for the guest. To design the process
of hotel in the text file as, the note of check in and check out of the particular guests
contain various detail such as contact number, date and time of check in and check
out and the total amount of payment of the room. And also, to keep the information
about the room of guest that how many days they stay for the total amount
calculation which will keep in the file.
Problem Statement
The many kind of problem will be face if hotel do not have application software in the
hotel. There records will not be kept in proper way some of the records are
misplaced, work will be harder, while updating status of room in hotel many errors
are found and also consumed more time if the application is not used. Likewise,
using the application software platforms it is easier to manage the information or
records, it also streamlined and workflows and consumed less time.
Student Name 2
CS4001NI Programming
Objectives
a) For creating four different modules which operate different operations
b) Algorithm, pseudocode and constructing flowchart which create source code
for the given application.
c) Using source code containing loops inside loops, function and list of data
structure is created.
d) To avoid invalid inputs exception is use.
Proposed deliver
a) Recording all the information object in a systematically.
b) Created the application for check in and check out note and all the information
of hotel.
c) Discover of calculation system which consumed less time.
Target Audience
Mainly, this project is created to keep the information about the hotel. This project is
run in the python. The concept of creating the application system with python, it
helps to student who wiling to have knowledge about python. This application is use
in different commercial organization also. The other student also can able create
appropriate the application software with concept of python.
Student Name 3
CS4001NI Programming
run the program in computer system must have appropriate Linux, windows and
macOS .
Introduction
Hotel is an establishment which provide paid lodging, meals, and other various
services for guest. In hotel facilities, it may range from a modest-quality mattress in a
hotel. There are two types of hotels like higher-price hotel provide event facilities,
day spa, social function services, swimming, numbered of rooms and also both small
to large room small room some hotel are attached with restaurants also. In higher
price hotel it also provides conference and event facilities too such as basketball
courts, or tennis. But in low-price hotel it has less facilities than higher price hotel
quality beds, dresses, refrigerator, flat screen television, and unsuited bathroom.
This course work is for to design the system software to store the information for the
hotels in computer system. It stores information about the rooms and the guests of
check in and check out note, updating the room available, calculate the total
payment of guest. This program is run in the computer system which contains both
hardware and software component. Hardware component like keyword, mouse,
power supply, etc are used. Likewise, in software component as to run the program
Student Name 4
CS4001NI Programming
we must download IDLE (python) in computer system. The IDLE (python) is run with
help of code and with the knowledge about python.
Student Name 5
CS4001NI Programming
This program is all about coding without coding the python the program is
unsuccessful. In the program, the documenting, testing, programming and bug fixing
is created. This program plays a vital role in hotel to manage the information for the
rooms and the guests. It makes the hotel works more easier, faster, reliable and also
consumed less time. It has provided more facilities and services for the guest.
In this coursework, as we know without coding the program it cannot create any
application. To write the source it is harder however I manage to know about code
for the program, it seems interesting work and it also include algorithm, pseudocode
and flowchart. And we create the file and store the information of hotel which include
rooms and guests. In this program we create the check out and check in note,
contact details, details of hotels rooms and total amount which guests must pay. At
first, the program asks to update the information about the information of room which
one is available for the state of the room. So, the program is asking the user to enter
the notes of check in and check out, then the process is runs check in procedure by
keeping the details of the guests and also to book the room to create the file. And
after the check in procedure completed the user asked to continue the program or
not, if the guest’s choice to continue the program then they are asked to enter the
input to check in and check out process. After choosing in check out the checkout
process is starts. After that, the program is asking to enter the required details then
the process create the separate file to add the same information to the file to create
checkout note. Then program is accepted as to be finish and the overall change of
the program is update into first text file containing information about the room. Thus,
I have gained the knowledge to create application software which I had been willing
to know about.
Student Name 6
CS4001NI Programming
Data Structures
Collection of data types that is used in programme are given below with
description:
a) Lists
List is the data structure of the python. This data type is the mutable data type. It
is used to store multiple pieces of information at once and contain multiple
number pairs of items. It is as also use in appending, removing, changing the
state of the room. Lists is denoted as [].
b) String
String is in python is a sequence of characters. It is immutable type. It is created
with single quote, double quotes, or triple quote. String is used in main module to
store the address, name of the guest and also store phone number and room
number, total amount of guests.
c) Boolean
Boolean values are of two states true and false. It represents two states as
either true or false. It is express as numeric value as 0 or 1, 0 is defined to have
false and 1 as true. And in the program, we use Boolean for exceptional
handling, deciding check in and check out and also to deciding that the program
will continue or not. (2018, Shakya)
d) Integer
Student Name 7
CS4001NI Programming
Integer often call as int, this data types store the numeric values. It used to store
data in numeric data to read module in hotels.
Algorithm
Step 1: Start
Step 2: Create a text having all the information about rooms in the hotel such as
room number, free or occupied.
Step 3: Create a new module called ‘checkin.py’ which has parameters like name,
address, phone.no and room no.
Step 4: Create a new module called ‘checkout.py’ which has parameters like name,
room no. and no. of days stayed.
Step 5: Create a new module called ‘main.py’.
Step 6: Read the text file from step 2, which has all the information of room.
Step 7: Ask to check in room.
If selected yes, or no for checkout.
Step 8: If yes then,
Step 8.1: Ask name, address, phone number of the guest.
Step 8.2: Make an exception case to put correct datatypes in each case or
else display a message to put appropriate data types.
Step 9: Call the ‘write-check in’ function to read provide information of the guest and
the ‘free' ‘status to occupied’.
Step 10: If guest selects no. form step 8, then proceed to checkout.
Step 10.1: Ask name, room number and no. of days stayed.
Step 10.2: Make an exception case to put correct datatypes in each case
display a message to put appropriate data types.
Step 10.3: Calculate the total amount by multiplying the no. of days with price
of the room.
Step 11: Call the ‘write-check out’ function and change ‘occupied’ status to ‘free’.
Step 12: Ask the guest to continue or exit the program
Step 13: If No, update the entire file which had information.
Student Name 8
CS4001NI Programming
Pseudocode
Read.py:
read_room()
OPEN the txt file
Read the lines
Print the lines from the txt file.
END file
Checkin:
OPEN file
Create a function write_checkin
Set the parameters such as name, address, room number and number of
days
Create a file name checkin.txt
Ask the guest to insert name, address, phone number and room number to
the file checkin.txt
END file
Checkout
OPEN file
Create a function write_checkout
Set parameters such as name, room number, number of days stayed
Create a file name checkout.txt
Ask the guest to insert name, room number and number of days to the
file checkout.txt
END file
Main.py
Call the function read_rooms to have the information of available rooms
Student Name 9
CS4001NI Programming
END WHILE
Calculate the total amount by multiplying the no. of days with the price of
the room
If NO
Call and set the variable total amount=0
Ask the guest to continue or exit the program
Update the entire file.
Student Name 10
CS4001NI Programming
Flowchart
Program
Student Name 11
CS4001NI Programming
a) Read.py
Student Name 12
CS4001NI Programming
b) Main.py
c) Checkin.py
Student Name 13
CS4001NI Programming
d) Checkout.py
Student Name 14
CS4001NI Programming
Research
1)
https://www.techworm.net/programming/best-python-programming-books/
Student Name 15
CS4001NI Programming
Student Name 16
CS4001NI Programming
Conclusion
In this entire project and coursework, I would say this coursework was very hard to complete
and it takes lot of time. This help to gain knowledge about the Python programming. It
contains many more researches through coding and documentation. Throughout this
coursework I learned to create the application software for hotel though it faced many
problems with coding during error while solving the project.
I learned about different types of method as creating algorithm, flowchart and also gain
knowledge about data structure which is used to create application system for hotel. To create
the application system, I learnt about the coding which is used in IDLE (python) were records
of hotel are store in the application system. I also learned to create algorithm, pseudocode,
flowchart and coding. I learnt about the different data structure such as lists, integers, strings
and Boolean which is use for creating the application software of the hotel. This program
includes the system of check in and check out process. This project and coursework is for
creating application system which make work more easier, reliable and faster. It helps to keep
the record of the hotel, it makes more easier to excess the details of rooms and guests. Some
of the hotels still do not have application software which create the problems like some of the
data where misplaced and consumed more time. Likewise, the database system is created to
sort out the problems of the records. And it is easier to search the details of records. It makes
the works easier, faster and familiar.
This course work helps me to know about coding and the importance of python
programming. It held to make the application software of hotel with the help of coding. This
task held to tackle the problem during the course work. It helps to develop more skill in
research and for developing programs with coding.
Student Name 17
CS4001NI Programming
Student Name 18
CS4001NI Programming
Student Name 19
CS4001NI Programming
Student Name 20