Академический Документы
Профессиональный Документы
Культура Документы
SUBMITTED BY-
PRACHYA SOURAV PANDA
REG-11607233
ROLL-40
ABSTRACT-
This work was centered on the design and implementation of a gym management system using
shell scripting in Linux. This project “Gym Management System” is solution fitness centres to
manage the customers in an easier and more convenient way. The administrator, is able to view
all the members of fitness centre as well as their details. The basic structure of the system as
follows. This project is a computer-based program and it manages the gym members, the
personnel and the inventory. This system also maintains the client details, to provide the
valuable reports regarding the progress of the gym member.
INTRODUCTION
Objectives of the project This Gym Management System shall enable the user to add members
to a gym and manage the fee payment of the gym user. It is a very simple interface developed
using .net. The user of the system shall be able to add a new gym member. The tool shall add
all the necessary details like name, admission date, contact details into the system. The Gym
Management System shall also monitor the timings for the member. It shall allow the user to
make fee payments. This tool shall hold all the details of gym members. It shall enable the user
to make payments monthly, quarterly or annually.
.
Code:
#! /bin/bash
record_file="GYMRecords.ldb"
temp_file=/tmp/ldb.$$
touch $temp_file;
chmod 644 $temp_file
trap 'rm -f $temp_file' EXIT
echo "__________________________________________________/n"
echo "**************Welcome to Fitness Edge Gym*************"
echo "__________________________________________________"
echo "Gym timing: 5.00AM to 10.00PM"
echo "______________________________________"
echo " Types of exercise "
echo "______________________________________"
echo "1. Strength"
echo "2. cardio"
echo "3. Strength+cardio"
echo "4. Strength+trainer"
echo "5. cardio+trainer"
echo "6. Strength+cardio+trainer"
echo "7. Strength+cardio+crossfit"
echo
1)
echo "You have entered the strength type of exercise"
echo "press y if yes or press n to go back in menu"
read option
if [ "$option" == 'y' ]
then
echo "The fees of this type is 400/month"
fees=`expr $fees + 400 `
echo $fees
else
echo "We are directing you to the previous menu"
fi
;;
2)
echo "You have entered the cardio type of exercise"
echo "press y if yes or press n to go back in menu"
read option
if [ "$option" == 'y' ]
then
echo "The fees of this type is 600/month"
fees=`expr $fees + 600 `
echo $fees
else
echo "We are directing you to the previous menu"
fi
;;
3)
echo "You have entered the strenth+cardio type of exercise"
echo "press y if yes or press n to go back in menu"
read option
if [ "$option" == 'y' ]
then
echo "The fees of this strength+cardio type is 800/month"
fees=`expr $fees + 800 `
echo $fees
else
echo "We are directing you to the previous menu"
fi
;;
4)
echo "You have entered the strength+trainer type of exercise"
echo "press y if yes or press n to go back in menu"
read option
if [ "$option" == 'y' ]
then
echo "The fees of this type is 1000/month"
fees=`expr $fees + 1000 `
echo $fees
else
echo "We are directing you to the previous menu"
fi
;;
5)
echo "You have entered the cardio+trainer type of exercise"
echo "press y if yes or press n to go back in menu"
read option
if [ "$option" == 'y' ]
then
echo "The fees of this type is 1200/month"
fees=`expr $fees + 1200 `
echo $fees
else
echo "We are directing you to the previous menu"
fi
;;
6)
echo "You have entered the strenth+cardio+trainer type of exercise"
echo "press y if yes or press n to go back in menu"
read option
if [ "$option" == 'y' ]
then
echo "The fees of this type is 1400/month"
fees=`expr $fees + 1400 `
echo $fees
else
echo "We are directing you to the previous menu"
fi
;;
7)
echo "You have entered the strenth+cardio+crossfit type of exercise"
echo "press y if yes or press n to go back in menu"
read option
if [ "$option" == 'y' ]
then
echo "The fees of this type is 1600/month"
fees=`expr $fees + 1600 `
echo $fees
else
echo "We are directing you to the previous menu"
fi
;;
*)
echo "You have not choosen any option. Please fil your choice"
return
esac
echo
So, we can conclude that all the objectives of this project was attained and our designed system
is completely capable of determining the total cost a client need to spent to avail all the facilities
and our designed system is totally flexible as it can be used to determine all the types of factors
and calculate the total cost depending upon it.