Você está na página 1de 83

ORAGANIZATION PROFILE

VV Hospital was incorporated in 1980 to provide clinic lab, X rays, EGC, ICU, Pharmacy and health care center in the hospitality facilities in Madurai. It service provide with a branches of more than five hospital in TamilNadu. In the hospital of one branch may have six physical doctors, three dentist, two child specialist, and fifteen nurses are in a hospital. They are most kindly to handle were patient who are sick. In the hospital they provide healthy foods to indoor patients. The hospital has five ambulances they taken emergency cases and took patients in emergency ward. In the hospital there were ICU wards, Operation Theater they provide kindly to patients and handle critical operation as easy. All of the members in a hospital are kindly and respect to handle the patients.

INRODUCATION ABOUT PROJECT


This project Nutrition Science is used to know the calorie contents of all classes of food namely carbohydrates, meat/ pulse /fish, cereals, fruits, vegetables and Beverages. It also leads to the identification of right calorie consumption for people Based upon their age, height and weight. This project is helpful in choosing different diet plans according to their own taste and their health condition. This project will monitor the level of calorie consumption as well as the calorie expenditure from the body. In the project we use Visual Basic 6.0 as front End and Oracle 8.0 as back end. The people with the help of this project we can learn the Composition of food, so that can be aware of the calorie content of all food items. There are diet plans for overweight people, diabetic patients and heart patients. People can measure themselves if they are of underweight or overweight. And we calculate Basal Metabolic Rate (BMR) using multiple factors, including height, weight; age and sex, then multiply the BMR by an activity factor to determine Total Daily Energy Expenditure (TDEE)

FEASIBILTY STUDY
Feasibility Assessment: Once the scope of the project is identified, the next step is to determine whether the project is feasible. Though in some project this step is ignored, it is considered to be in of the major tasks in any project. Software feasibility has four dimensions. They are in items of: Technology Finance Time Resource Considering the following types of feasibility carries out feasibility assessment. Operational Feasibility: There is a validation of input data and it generates errors. The system should have good user interface for easier usage of the Software. The system should generate proper, error and warning messages.

The system should check for validity, of the incoming data. The system allows even a computer illiterate to use the software. The user has to know just how to use keyboard and to read English. Technical Feasibility: The new system should run on the network and changes made by one should be visible to others. The data is stored in the memory, hence changes in any one of the operation will affect the system. The program is stored in a binary format with extension .EXE, so it is not possible for unauthorized person to modify the data and the commands, which doesnt jeopardize the whole system. The current existing software support RDBMS concept that it is possible to apply referential integrity between the tables so redundancy of data doesnt exist. As this software runs on a local machine the user has no need to wait for the machine in case someone uses it. No need to install software on the machine.

Economical Feasibility: Cost benefit analysis determines cost for project development and weights then against tangible and intangible benefits of a system. First listing all the cost associated with the project cost consisting of both direct and indirect cost performs cost benefit analysis. Tangible benefits: Direct saving due to reduction in the manpower. Time saving due to maintenance and retrieval of data easily.

Operations are relatively fast and are user friendly thus people are motivated towards their jobs.

Intangible Benefits: Better service. Accurate reliable and up to data information.

EXISTING SYSTEM
The existing system is manually done by the human security guards found in physicians. They will advice the patients to taken the right food and they alone know the food composition and calorie consumption details. Other people are average of that. The Nutrition Science software is present today dose not have advanced features as this. Here in the existing system the manually done by the how to eat healthy foods. The existing is manually check by the calories spent, weight reduction technique, weight gain technique and base metabolic rate but so much time spent for the find the answer and time consuming the one of the drawback so future overcome the all the mistakes and try to implement the software.

PROPOSED SYSTEM
The proposed system will serve as a physician and it will give enormous idea about the proposed system will be going to overcome all the drawbacks of the existing system. This new system has been developed in Visual Basic 6.0 as the front end and Oracle 8.0 as the back end. Mainly it should be developed to reduce the process time, so that the user can quickly understand. And the proposed system should be very user-friendly, Attractive, easily observed and effective. Features of proposed system: The proposed system is supposed to overcome all the drawback of the existing system. It is more users friendly, as it supports graphical user interface. The amount of memory required for running the application is also less. The processing speed is faster as it uses the client-server technology. The data is stored in the form of tables in Oracle at the backend. It supports the Relational Database Management concepts and ensures more security to store.

HARDWARE SPECIFICATION

Processor RAM Hard Disk Floppy Disk Printer Serial Ports Parallel Ports Keyboard Mouse

: : : : : : : : :

233 MHz 64 MB 4GB 1.44 MB Laser Printer 3f8, 2f8 378 105 keys Logitech

SOFTWARE SPECIFICATION

Operating System Front End Back End

: : :

Windows XP Microsoft Visual Basic 6.0 Oracle 8.0

ABOUT VISUAL BASIC 6.0


Introduction to Visual Basic 6.0 When programming in Visual Basic the application developer must decide how the application interacts with the user. The user may click mouse on various controls, or press a key combination on the user interface. These are known as events. The application developer must decide how the application must react to each of the user action. This called event-driven programming. In Visual Basic, the application does not determine the flow. Instead, the events caused by the user determine the flow of the application. The applications are to be programmed to react to various external conditions known as events. In this way, in Visual Basic application, the users Actions determine the applications flow. In the name, Visual Basic the word Visual refers to the method used to create the graphical user interface (GUI). Rather than writing numerous lines of code to describe the appearance and location of interface elements, pre-built objects are simple added into place on screen.

The word Basic refers to the BASI language, a language used by more programmers than any other language in the history of computing. Visual Basic has evolved from the original BASIC language and now contains several hundred statements, Functions and Keywords, many of which relate directly to the window GUI. Beginners can create useful applications by learning just a few of the keywords, yet the power of the language allows professionals to accomplish anything that can be accomplished using any other window programming language. Coding in GUI environment is quite a transition to traditional, linear programming methods where the user is guided through a liner path of execution and is limited to a small set of operations. In a GUI environment, the execution and is limited to a small set of operations. In a GUI environment, the numbers of options open to the user is much greater, allowing move freedom to the user and developer. Features such as easier comprehensions, user-friendliness, faster application development and, any other aspects such as introduction to ActiveX technology and Internet features make Visual Basic an interesting tool to work with VB supports many useful tools that will help you to be more productive These include projects, forms, class objects, Templates, Custom control and data base managers. Version 6.0 of Visual Basic is specifically designed for utility and interest. It allows you to create wedbased application called ActiveX executables. This is like stand alone VB

10

applications. They are accessed through the Microsoft Internet Explorer and web browser. The Integrated Development Environment One of the most significant changes in Visual Basic 6.0 is the Integrated Development Environment (IDE). IDE is a term commonly used in the programming world to describe the interface and environment that we use to create our applications. It is called integrated because we can access virtually all of the development tools that we need from one screen called an interface. The IDE is also commonly referred to as the design environment, or the program. The Visual Basic IDE is made up of a number of components Menu Bar Tool Bar Project Explorer Properties window Form Layout Window Toolbox Form Designer Object Browser In previous versions of Visual Basic, the IDE was designed as a Single Document Interface (SDI). In a Single Document Interface, each window is a free-floating window that is contained within a main window and can move anywhere on the screen as long as Visual Basic is the current

11

application. But, in Visual Basic 6.0, the IDE is in a Multiple Document Interface (MDI) format. In this format, the windows associated with the project will stay within a single container known as the parent. Code and form-based windows will stay within the main container form. Figure 1 The Visual Basic startup dialog box

Menu Bar This Menu Bar displays the commands that are required to build an application. The main menu items have sub menu items that can be chosen when needed. The toolbars in the menu bar provide quick access to the commonly used commands and a button in the toolbar is clicked once to carry out the action represented by it. Toolbox The Toolbox contains a set of controls that are used to place on a Form at design time thereby creating the user interface area. Additional

12

controls can be included in the toolbox by using the Components menu item on the Project menu. A Toolbox is represented in figure 2 shown below.

Toolbox window with its controls available commonly.

Control
Pointer Picture Box Textbox Frame Command Button Checkbox

Description
Provides a way to move and resize the controls form Displays icons/bitmaps and metafiles. It displays text or acts as a visual container for other controls. Used to display message and enter text. Serves as a visual and functional container for controls Used to carry out the specified action when the user chooses it. Displays a True/False or Yes/No option. group allows the user to select only one option even

OptionButton Option Button control which is a part of an option

13

it displays multiple choices. List Box Displays a list of items from which a user can select one. Contains a Textbox and a List Box. This allows the Combo Box HScrollBar and VScrollBar Timer DriveListBox DirListBox FileListBox Shape Line Image Data user to select an item from the dropdown List Box, or to type in a selection in the Textbox. These controls allow the user to select a value within the specified range of values Executes the timer events at specified intervals of time Displays the valid disk drives and allows the user to select one of them. Allows the user to select the directories and paths, which are displayed. Displays a set of files from which a user can select the desired one. Used to add shape (rectangle, square or circle) to a Form Used to draw straight line to the Form Used to display images such as icons, bitmaps and metafiles. But less capability than the Picture Box Enables the use to connect to an existing database and display information from it. Used to link or embed an object, display and OLE Label manipulate applications. Displays a text that the user cannot modify or
14

data

from

other

windows

based

interact with.

Project Explorer Docked on the right side of the screen, just under the toolbar, is the Project Explorer window. The Project Explorer as shown in figure servers as a quick reference to the various elements of a project namely form, classes and modules. All of the object that makes up the application is packed in a project. A simple project will typically contain one form, which is a window that is designed as part of a program's interface. It is possible to develop any number of forms for use in a program, although a program may consist of a single form. In addition to forms, the Project Explorer window also lists code modules and classes.

Project Explorer Window

Properties Window

15

The Properties Window is docked under the Project Explorer window. The Properties Window exposes the various characteristics of selected objects. Each and every form in an application is considered an object. Now, each object in Visual Basic has characteristics such as color and size. Other characteristics affect not just the appearance of the object but the way it behaves too. All these characteristics of an object are called its properties. Thus, a form has properties and any controls placed on it will have properties too. All of these properties are displayed in the Properties Window. Object Browser The Object Browser allows us to browse through the various properties, events and methods that are made available to us. It is accessed by selecting Object Browser from the View menu or pressing the key F2. The left column of the Object Browser lists the objects and classes that are available in the projects that are opened and the controls that have been referenced in them. It is possible for us to scroll through the list and select the object or class that we wish to inspect. After an object is picked up from the Classes list, we can see its members (properties, methods and events) in the right column. A property is represented by a small icon that has a hand holding a piece of paper. Methods are denoted by little green blocks, while events are denoted by yellow lightning bolt icon. Object naming conversions of controls (prefix) Form-frm Label-lbl TextBox-txt
16

CommandButton-cmd Checkbox-chk OptionButton-opt ComboBox-cbo ListBox-lst Frame-fme PictureBox-pic Image-img Shape-shp Line-lin HScrollBar-hsb VScrollBar vsb

Terminology Form The form is the central unit in Visual Basic. It is window, initially blank, on which you paste controls to create your screen or printer display. The from can be any size of color, and you can attach to its code that will run when the form is loaded, Closed or when the mouse is clicked or moves over it. A simple program may use only one from; others may have several forms, each of which will handle a different part of the Program. One from may be for getting input from the user, a second for displaying results on the screen, a third for sending output to the printer.
17

Multitasking Graphical User Interface Object Linking and Embedding OLE is a protocol, which is used to transfer the information from one application to another application. OLE allows application programs a twoway updating capability. A linked data item is known as object, whether it is being text, sound, or graphics. This object is represented by an icon in the document file and when you double click on this icon, the OLE functions automatically start the program that created the data object originally. Visual Basic is an ideal programming for developing sophisticated professional applications for Microsoft Windows. It makes use of GUI creating powerful applications. The GUI uses illustration for text that enables users to interact with applications. Visual Basic requires Windows series Windows NT, 488 Processor and a minimum of 16 MB of RAM. One of the changes in Visual Basic 6.0 is the Integrated Development Environment (IDE). IDE is a term in the programming world to describe the interface and environment that is used to create an application.

Various controls in Visual Basic 6.0


Text Box:

18

Text Box display information entered at design time, entered by the user or assigned to the control in code at run time. Properties 1. Text entering any text to the text box. 2. Multiline-if the user is displaying multiple lines of text in text box is text box control, set this property to true. Label: A graphical control in which we can use it to display text that a user cannot change directly. Properties 1. Caption-The text of the label can be changed using this property. 2. Link Topic-To establish a link. 3. To specify an item for the conversation. Command Button: This control is used to begin interrupt or end a process. Properties Caption-To display text. Enabled- The button can be enabled or disabled by setting the enabled property to true. Option Button: Provides a set of choices from which a user can select one button.

Properties
19

Caption To display text. Enabled The button can be enabled or disabled by setting the Enabled property to true. Frames: This control makes from to look more attractive and imaginative by using this frame.

MDI (Multiple Document Interface)


The MDI allows creating an application that maintains multiple forms within a Single container from application having multiple having multiple document interfaces. ActiveX: Creative ActiveX controls combine existing controls, or one can create his or her Own from scratch. ActiveX controls created with Visual Basic have events, data binding Support, licensing support, property pages, internet features, and more. The ODBC Direct Hierarchy ODBC is currently the major technique for communicating between Visual Basic and remote relational database management systems such as Oracle, MS-Access. ODBC stands for open database connectivity and was created as architecture to provide a way for application programs to communicate with different vendors database. ADO (ActiveX Data Object) data control

20

The ADO (ActiveX Data Object) data control is the primary interface between a Visual Basic application and a database. It can be used without writing any code at all! Or, it can be a central part of a complex database management system. This icon may not appear in your Visual Basic toolbox. If it doesnt, select Project from the main menu, then click Components. The Components window will appear. Select Microsoft ADO Data Control, and then click OK. The control will be added to your toolbox. As mentioned in Review and Preview, previous versions of Visual Basic used another data control. That control is still included with Visual Basic 6.0 (for backward compatibility) and has as its icon:

Make sure you are not using this data control for the work in this class. This control is suitable for small databases. You might like to study it on your own. The data control (or tool) can access databases created by several other programs besides Visual Basic (or Microsoft Access). Some other formats supported include Thieve, dBase, FoxPro, and Paradox databases. The data control can be used to perform the following tasks: 1. Connect to a database. 2. Open a specified database table. 3. Create a virtual table based on a database query. 4. Pass database fields to other Visual Basic tools, for display or editing. Such tools are bound tools (controls), or data aware. 5. Add new records or update a database. 6. Trap any errors that may occur while accessing data. 7. Close the database.

21

Data Control Properties:


Align Caption Connection String Determines where data control is displayed. Phrase displayed on the data control.

Contains the information used to establish database.

Lock Type

Indicates the type of locks placed on records during editing (default setting makes databasesread-only).

Record set

A set of records defined by a data controls Connection String and Record Source properties.

Record Source

Determines the table (or virtual table) the data control is attached to.

As a rule, you need one data control for every database table, or virtual table, you need access to. One row of a table is accessible to each data control at any one time. This is referred to as the current record. When a data control is placed on a form, it appears with the assigned caption and four arrow buttons:
22

The arrows are used to navigate through the table rows (records). As indicated, the buttons can be used to move to the beginning of the table, the end of the table, or from record to record. Hierarchical Flex Grid Control: Flex grid Control is retrieving the tables of all the fields of rows columns. Hierarchical Flex Grid Control is same purpose of Flex grid Control but better than Flex Grid control Because Hierarchical Flex Grid Control is only mentioned the rows but Flex Grid control is mentioned rows and columns.

VB (Visual Basic 6.0) Data Access Management All business applications need to store large volumes of data organized in a format so that information can be retrieved efficiently and quickly as and when required. With the help of a DBMS (Database Management System), managing the data becomes easy. A DBMS is a system that manages the storage and retrieval of data in a database.

23

Further Microsoft Visual Basic provides tools for creating and accessing a variety of RDBMS (Relational Database Management System). An RDBMS stores and retrieves information according to the relationship defined. In a RDBMS, the data is the container of the tables in which all data is stored in the relationships is formed by data values.

ABOUT ORACLE 8.0

Introduction Welcome to Using Oracle8! This book identifies the many functions an Oracle DBA needs to perform on an Oracle8 database and explains how to do them as efficiently and effectively as possible. You learn about the key

24

functions of database administration, including installing the product, designing and creating a database and its table spaces, designing and creating the tables and other objects that make up an Oracle database, designing and executing a good backup strategy with a recovery methodology, and monitoring and tuning performance. You also learn about creating and maintaining users and performing an upgrade to Oracle8, as well as other tasks that you may need in your position as DBA. You also learn when and how to use the various tools Oracle8 provides to assist you in database management, performance monitoring and tuning, data loading, backup and recovery, and data export and import. The book is designed to let you read about a topic at length when you have the time and the inclination, or to use as a quick reference guide when you need an answer to a pressing technical question or an example to follow when performing a specific task. Using Oracle8 contains cross-references to related topics so that you can look at all aspects of a topic, even if they're covered in different chapters. These cross-references also enable you to read the book in any order you choose. If you run across a subject you don't fully understand, you can easily switch your attention to the area(s) identified and carry on your reading there. Where applicable, the book also references the Oracle documentation materials, so you can find even more detail if you need it. Don't forget to keep this book handy at work, just in case you need to check something in a hurry that you haven't read about yet or is a new topic to you. Be sure also to use the tear-out card inside the book's cover. It
25

contains some of the most common, but difficult to remember, information you'll need. Who Should Use This Book You'll get the most out of this book if you have some background in the SQL language and some knowledge or experience with relational databases. Because Oracle's SQL language is based on the ANSI standard, it's not discussed in detail in this book, but numerous examples use SQL statements. The theory of relational databases is also outside the scope of this book, as are the internal structures within Oracle, except where they're needed to help you understand how or why to perform a specific task. This book is intended primarily for DBA s that has some knowledge of relational databases. Much of this book will be familiar if you've worked with earlier releases of Oracle-but you'll find the new Oracle8 features discussed. If you've worked with other relational databases, you may need to refer to the glossary if you find brand new terms or terms that have different meanings in Oracle. If you haven't worked with any relational databases, you should expect to follow the frequent cross-references to sections of the book; this will fill in background information as you read about a topic. Why This Book? Have you ever purchased a Using book from Que? The Using books have proven invaluable to readers as both learning guides and as references for many years. The Using series is an industry leader and has practically
26

become an industry standard. We encourage and receive feedback from readers all the time, and consider and implement their suggestions whenever possible. This book isn't a compiled authority on all the features of Oracle8; instead, it's a streamlined, conversational approach for using Oracle8 productively and efficiently. This book has many features: Improved index. What do you call tasks and features? As we wrote this book, we anticipated every possible name or description of a feature or database activity. Real-life answers. Throughout the book you find our real-life examples and experiences. We recommend how to organize your database on the logical as well as the physical level. We suggest what values to use when assigning physical storage attributes to your tables, indexes, and other database objects, and how to determine if you have made a good set of choices. After all, we've been there, done that! We understand that how to perform a task is only one question you may have, and perhaps the bigger questions are "Why?" and "What for?" Relevant information written just for you. We have carefully scrutinized which features and tasks to include in this book and have included those that apply to your everyday use of Oracle. Why invest in material that teaches you how to perform tasks you may never need to perform?

27

Reference or tutorial. You can learn to quickly perform a task using step-by-step instructions, or you can investigate the why and wherefore of a task with our discussions preceding each task. Wise investment we don't waste your valuable bookshelf space with redundant or irrelevant material, nor do we assume you "know it all" or need to know it all. Here is what you need, when you need it, how you need it, with an appropriate price tag. Easy-to-find procedures. Every numbered step-by-step procedure in the book has a short title explaining exactly what it does. This saves you time by making it easier to find the exact steps you need to accomplish a task. How This Book Is Organized Using Oracle8 has task-oriented, easy-to-navigate tutorials and reference information presented in a logical progression from simple to complex tasks. It covers features of the program you use in your daily work. Examples are real life. You can work through the book lesson by lesson, or you can find specific information when you need to perform a job quickly. Using Oracle8 is divided into nine parts: Part I, Building Your Oracle Database. Part I introduce you to relational databases in general and to the basic tools used to build and manage an Oracle8 database, whether you're creating a database from scratch or converting from an earlier release.
28

Part II, Customizing Your Oracle Database. Part II shows you how to build the appropriate storage units for your database objects. It's here you also find out how to manage the shared structures required for Oracle to function in the multiuse environment, including redo log files, rollback segments, and temporary segments. Part III, Managing Data and Index Segments. Part III provides the details needed to build Oracle database tables and indexes, including information on sizing them and assigning appropriate physical characteristics and alternate structures. You find out about the logical and physical design of data and index information, including optional segment structures such as index-organized tables. Part IV, Managing Users and Database Security. Part IV explains how to create user ids and manage user access to the database and its objects. You are also introduced to methods for monitoring and controlling resource usage. The chapters in this section include detailed information on the new password-management features introduced in Oracle8. Part V, Backing Up Your Oracle Database. Part V covers the various options available for protecting your database contents against loss due to hardware failure. You learn how to restore data that's lost when failures occur. The chapters in this section also cover the Recovery Manager tools, introduced as part of Oracle8.

29

Part VI, Tuning Your Database Applications. In Part VI you learn about the various tools and techniques that DBAs and application developers should consider when building and tuning applications. These include performance-analysis tools and various resource-saving design considerations such as indexes, clustering techniques, optimizer selection, and constraint management. Part VII, Tuning Your Database. Part VII addresses the issues related to gathering and analyzing performance information about your database. The chapters in this section include information on tools available for these tasks, as well as how to interpret various statistics available to you and how to respond to performance degradation caused by various factors. Part VIII, Using Additional Oracle Tools and Options. In Part VIII you learn about the various tools provided by Oracle as part of the base product that can help you manage your database and the data within it, plus network access between your applications and the database. This section also summarizes the features available with the products that you can optionally license for added functionality if needed, such as Oracle Parallel Server and the Object option. Additional information available at our Website

(www.mcp.com/info). Appendix A, "Essential PL/SQL: Understanding Stored Procedures, Triggers, and Packages," includes a comprehensive guide to the PL/SQL language and the database constructs you can build with it. Appendix B, "What's New to Oracle8," lists the Oracle8's new features for those of you who are familiar with earlier Oracle releases and just need to
30

identify what changes you may want to study and implement in your own database. Appendix C, "Installing Oracle8," covers the basic steps you need to follow in order to install a new version of the database, whether you're upgrading from Oracle7 or installing Oracle8 directly. Now look at the detailed table of contents, decide what you want to read now or in the near future, and begin getting comfortable with Oracle8. Conventions Used in This Book The following items are some of the features that will make this book easier for you to use: Cross-references. We've looked for all the tasks and topics related to a topic at hand and referenced them for you. If you need to look for coverage that leads up to what you're working on, or if you want to build on the new skill you just mastered, you have the references to easily find the right coverage in the book

SEE ALSO

31

Information on table space usage for different segment types, see page xxx Glossary terms. For all terms that appear in the glossary, you'll find the first appearance of that term italicized in the text Side Notes. Information related to the task at hand or "inside" information from the authors is offset in Side Notes, so they won't interfere with the flow of the text, yet makes it easy to find valuable information. Each Side Note has a short title to help you quickly identify the information you'll find there. Oracle's syntax for commands, scripts, and SQL statements also incorporate special elements. Look at the following syntax example: ALTER DATABASE [database_name] ADD LOGFILE [GROUP [group_number]] Filename [SIZE size_integer [K|M]] [REUSE] Terms that are italicized are considered placeholders. When you use the command, you replace the italicized word with an appropriate value. For example, database_name in the preceding code would be replaced with an actual database name. Square brackets ([]) in command syntax indicate optional clauses. The brackets around [database_name] in the preceding code indicate that you aren't required to provide a database name. Don't include the brackets when you use the command.

32

The | character indicates that you choose one item or the other, not both. (For example, you can choose either K for kilobytes or M for megabytes for the preceding command.) Again, don't use this character in the actual command. Ellipses (...) in listings indicate either a clause that can repeat or skipped code that's not pertinent to the discussion. Don't use the ellipses in the actual code. Line numbers are included in some code listings to make discussion about the code easier to reference. Don't include the numbers with any command-line commands, as part of any Oracle scripts, or within SQL statements. Advantages of ORACLE Large database and space management control Many concurrent database users High availability High transaction processing performance Controlled availability Manageable security Database enforceability Client/Server environment Distributed database systems Portability Compatibility Connectivity
33

An Oracle Database system can easily take advantage of distributed processing by its Client/Server architecture. In this architecture, the database system is divided in two parts A Front-End or Client portion A Bake-end or Server portion Tools of ORACLE The application development tools consist of following SQL *Plus PL / SQL Forms Reports Form

Forms let you display and enter data in a convenient format that resembles fill-in-blank forms can be plain and simple or quite elaborate with graphics. Lines and automatic lookup features that make data entry data into several tables at once.

PROJECT DESCRIPTION

34

The Nutrition Science that is designed consists of six modules. Objective: This project Nutrition Science is used to know the calorie contents of all classes of food namely carbohydrates, meat, pulse, fish, cereals, fruits, vegetables and Beverages. It also leads to the identification of right calorie consumption for people based upon their age, height and weight. This project is helpful in choosing different diet plans according to their own taste and their health condition. Main Modules: 1. Calorie Consumption 2. Calories Spent 3. Correct Weight Determination 4. Weight Reduction Plan 5. Basal Metabolic Rate 6. Weight Gain Method Calorie Consumption The target of this module is to people those are willing to learn the composition of food and they will be aware of the calorie content of all food items. Calories Spent This module will monitor the level of calorie consumption as well as the calorie expenditure from the body.

35

Correct Weight Determination This module to identification of right calorie consumption for people based upon their age, height and weight. People can measure themselves if they are of underweight or overweight. Weight Reduction Plan This module is used to reduce the weight of overweight people used to how many days reduced the weight reduction of the slow, optimum, fast, rapid. Reduced the weight used to how many foods taken and how many hours exercise to be done. Basal Metabolic Rate BMR is very important to note that the higher your lean body mass is, the higher your BMR will be. This is very significant if you want to lose body fat because it means that the more muscle you have, the more calories you will burn. Weight Gain Method If you want to gain lean bodyweight and become more muscular, you must consume more calories than you burn up in a day. Once you've determined your TDEE, the next step is to increase your calories high enough above your TDEE that you can gain weight.

SYSTEM ANALYSIS
36

Once the analysis is completed, next is to find out how the problem is to be solved. The design of the system uses the functional specification as basis and produces the details that state how the system will meet the requirements identified during system analysis. The design process should take care the following

Identification of reports and outputs the new system to produce. Scrutinize the data present on each output. Sketch
the form and display as expected to appear at the completion of the system.

Description of data to be input calculated or stored. Individual


detail. data items and calculated procedures are written in

DATA FLOW DIAGRAM

37

The data flow diagram deals with the flow of the control between different modules and the data source. The data is the systematic representation of the flow of controls within the system. The DFD is portioned into levels that represent increasing information flow and functional detail. The various levels of DFD are described below in the increasing order of level. Level 0 is also called as the fundamental system model or context model represents the entire software element as a single bubble with input and output data indicated by incoming and outgoing arrow. Then the system is decomposed and represented as a DFD with multiple bubbles. Parts of the system represented by each of these bubbles are then decomposed and documented as more and more detailed DFDs. This process can be repeated as many level as necessary until the problem is well understood. The level 0 describes about the flow of data when the user logins into the web site. Here when a site manager logins into the web site first the login request will be processed and checked for authentication. If authenticated they will be allowed to enter the bug maintenance system. The level 1 about the user login and how it is been validated. The validation process will call the user account database and the priority database and then it will be checked for whether they are authenticated user or not. If so then they will be assigned with different levels of priorities.
38

The level 2 describes about the bug log. Here when a bug is been entered it will be validated. Where bug log database will be called for and updated. When bug subscription option is selected the bug subscription table will be called for and necessary operations will take place. After entering the bug when email send option is selected email table will be called for and necessary verification will be done such as to address and from address. The connection will also be verified. That is whether the system is connected to the net or not.

Calorie s Spent

Calorie Consumptio n

Data base

Weight Gain

Nutrition Science

Weight Reductio n

TDEE Over weight Basal Metaboli c Rate

Correct Weight

Context Diagram

39

Verify Account
Logi n

Validat ion

Nutritio n Science DFD of Login Evaluation

Calorie Consumption

Cereals Fish & Meat Data base Vegetables Beverages

Fruits DFD of Calorie Consumption

40

Calories Spent

How much (minutes or hours) spent Spent


C A L C U L

How much Calories Spent

DFD of Calories Spent

Correct Weight m a l e

True

Ht-wt=above 100 then OW F e m a l e

False

UW

Ht-wt=above 95 then OW

False

UW

True

41

DFD of Correct Weight


Correct Weight

If ow=true
Weight Reduction

Calculate the how much kg and how many days Display the Instruction

DFD of Weight Reduction


Basal Metabolic Rate
Male or Female

Get the value of ht, wt and

42age

aAof BMR

Display value Activity Factor=True

Display value of TDEE

DFD of Basal Metabolic Rate

Basal Metabolic Rate

Display value of TDEE

Calculate the how much Calories Increase Show the Weight Gain Calories

DFD of Weight Gain

43

SCREEN DESIGN
Screen design is and important part of the system design. The main objective of the screen display is the simplicity for accurate and quick data capture or entry. While designing a screen, certain points have to be considered. They are

To use same format throughout the project To use easy to learn and consistent terms To provide help for procedures To allow ample space for data To name each screen for the easy understanding of the user

44

With this objective in mind, screens have been designed for the system. The screen contains command button, textboxes, labels, option buttons, checkboxes and helps etc. Here since this is a web based project it consists of number of screen for certain activities to be performed those are been described below. LOGIN CALORIE CONSUMPTION CORRECT WEGIHT DETERMINE WEGIHT REDUCTION PLAN BASAL METABOLIC RATE WEIGHT GAIN METHOD Login This screen will be the first screen of the project. Here every user will be given with their own username and password. This screen will verify for it and will allow only the authorized users to log in. The login screen is the gateway to enter inside the project. Thus it will allow only the authorized user to view the web page. The login screen shown below is

45

Calorie Consumption The people those are willing to learn the composition of food and they will be aware of the calorie content of all food items. The calorie consumption screen is shown below

46

Calories Spent The monitor the level of calorie consumption as well as the calorie expenditure from the body.

The calorie spent screen is shown below

47

Correct Weight Determination The identification of right calorie consumption for people based upon their age, height and weight. People can measure themselves if they are of underweight or overweight. The correct weight determination screen is shown below

48

Weight Reduction Plan It reduce the weight of overweight people used to how many days reduced the weight reduction of the slow, optimum, fast, rapid. Reduced the weight used to how many foods taken and how many hours exercise to be done.

The weight reduction plan screen is shown below

49

Basal Metabolic Rate BMR is very important to note that the higher your lean body mass is, the higher your BMR will be. This is very significant if you want to lose body fat because it means that the more muscle you have, the more calories you will burn.

The basal metabolic rate screen is shown below


50

Weight Gain Method It will gain lean bodyweight and become more muscular, you must consume more calories than you burn up in a day. Once you've determined your TDEE, the next step is to increase your calories high enough above your TDEE that you can gain weight.

The weight gain screen is shown below


51

INPUT SCREEN
52

Generally, the input design includes the designing of various screens concerned with giving input to the application. The input thus given Is processed in accordance with the respective code, which has been written for the application, Therefore, designing forms and other input screens come under the category of the input design. The execution of the application can Be eased as much as possible and this depends upon the design of the input system for any object. After the project, application has been developed and at the time of implementation of the project, it is the input design that matters and makes the user of the system to bring out their views and opinions about the developed system. The input design should be designed with the user of the system under development in mind. Hence, the input screens concerned with any project should be designed in such a manner that the users of the system do not feel any difficulty or complexity in feeding input data to the system. In an organization, which may be the project, which is under the phase of development, the employees who ate the system users may not have computer knowledge about computers. Hence, it is the responsibility of the input designers to take care in the initial phases of the project development life cycle, then difficulties that the developer or the user of the system might be facing during requirement analysis. In the system analysis phase the system, which currently exists, is studied thoroughly, so that the design of the new system rectifies,

53

or in the other words, eliminates the drawbacks and other kinds of problems with the existing system, Moreover, in addition to this, the input screens designed for the application projects should be as clear as possible without may complexities. Here, in the Service Information System, the input data about the product, principle, job master, customer master are in the input screens the detail such as name, code etc stored in master table, which has been designed to serve the purpose. Generally, service information system deals with various products and all relevant details corresponding to the products are in the master table designed for the product. A separate table is meant for customer and employees also. The details concerned with the job master, which are associated with the employee master, are stored in the job table and this input obtained through a separate screen master module. Next come to the date entry module of the project and this module of the project deals with the entries of data for inspections namely job allocation ,job card part requisition, supply advice. Her in this module of the project, separate screens are meant for the input of all the above-mentioned inspections. These are the input design.

The input screen produced by the program while it is been before executed is shown below.

54

55

OUTPUT DESIGN
Generally, the output design is meant for presenting adequate output to the system client as per needs of the client. Each client may require the output data in his own interest, and it is up to the system designer to fulfill the needs and meet the requirements of the various specifications of the users. Here too, as in the case of input design, the design should be crisp, to the point and they should not be cryptic. If so, then the clients may not feel satisfied with the output design and it may create a bad environment between the client and the system designer. Here, once again after the system has been developed, next one is the stage of implementing the system which has been developed just now it is the output design that matters and makes the users thorough in the words,

56

the clients of the newly developed system to bring out their views and opinions about the design of output which is required by them. Hence, from this it can be easily inferred that very much importance is begin given to the output design. So it is the responsibility of the designers to be aware about the clients of the system and to carry out the output design for the system in such a manner that the user and the clients of the newly developed system are satisfied with the output design. During the initial phases of the software development life cycle, the designer of the system carries; out a detailed study and deep analysis about the existing system. Hence the system designer carries out the process of output designing, the required output to the clients and the users of the newly developed system. By system analysis, system study and there quietest analysis, the designer f the system understands the various facts about the organization, which is using the existing system and which has proposed the new system. The designer studies the environment of the user off the systems so that he could find out the process of the output design, which results in a user-friendly output. The designer also records the expectations of the clients and the users so that he could design the output accordingly. Here, incase of this project the service information system management team was not happy with the output obtained from the existing system. Since heavy ledger contain the transactions, the transactions of the service information system were maintained with difficulty by the service
57

information system management team, it was difficult to design a clear and satisfactory was struggling to array at a clear output report, as they cold not get a clear idea about transactions concerned with the service information system. They could perhaps get an image of the transactions but that was not clear enough as they expected. Based on the customer report, parts requisition and all other kinds of reports, the service information system management team could plan their duties in an optional manner. Generally, the output design is badly needed by any organization is not only a service information system, these output reports form the basis for their decisions concerned with the business depending on the output report such as date wise reports, gate report etc. Here, in case of the service information system the reports which are concerned with the purchases, details of the customers, part, job card, and gate pass are generated as expected by the service information system management which is under our consideration. These are the output design. The output screen produced by the program while it is been executed is shown below. The screen can give message to people were take good health condition.

58

59

DATA BASE DESIGN


The system designs database approach places a great emphasis the integrity, integration and the independence of the data. Basically it involves separation of the physical and the logical structures so that the

60

physical data storage may be altered without affecting the logical and vice versa. Here in the following section explains about the data base structure and their description. Table Name: Cereals Field Name Food_stuff Quantity Calories Table Name: Fruits Field Name Food_stuff Quantity Calories Table Name: Vegetables Field Name Food_stuff Quantity Calories Data Type Varchar2(20) Varchar2(20) Number(10) Description Foods are taken to the vegetables Particular quantity of foods Calories of vegetables Data Type Varchar2(20) Varchar2(20) Number(10) Description Foods are taken to the fruits Particular quantity of foods Calories of fruits Data type Varchar2(20) Varchar2(20) Number(10) Description Foods are taken to the cereals Particular quantity of foods Calories of cereals

61

Table Name: Beverages Field Name Food_stuff Calories Data Type Varchar2(20) Number(10) Description Foods are taken to the beverages Calories of beverages

Table Name: Fish and Meat Field Name Food_stuff Calories Data Type Varchar2(20) Number(10) Description Foods are taken to the fish and meat Calories of fish and meat

SYSTEM TESTING
Software testing is an important element of software quality assurance and represents the ultimate review of specification design and coding. A strategy for software testing integrates software test case design techniques into a well planned series of steps that result in the successful construction of the application. Any Strategy must incorporate test planning, test case design, test execution and the resultant data collection and evaluation.

62

Different Levels of Testing System Testing System Testing consists of a series of different tests whose primary purpose is to fully exercise the computer-based system. Although each test has different purpose, all works should verify that all the system elements have been properly integrated and perform allocated functions. System testing in Information Exchange Server invoked two kinds of activities: Integration Testing Acceptance Testing

Integration Testing Strategies for integration software components into functioning products include bottom-up strategy, the top-down strategy, and the sandwich strategy. Careful planning was done for scheduling which is Requires ensuring that modules will be available for integration into the evolving software product when needed. The integration strategy dictates the order, in which the modules must be available, and thus exerts a strong influence on the order in which modules are written, debugged, and unit tested. In our project we have done the integration testing includes
63

integration of modules, testing database connectivity, linking of image files, etc. Acceptance Testing Acceptance Testing involves planning and execution of functional tests, performance tests and stress test to verify that the implemented system satisfies its requirements. Acceptance tests are typically performed by the customer organizations. Verification and Validation The goals of the verification and validation activities are to assess and improve the quality of the work products generated during development and modification of this project. Quality attributes of interest include correctness, completeness, consistency, reliability, usefulness, and usability, and efficiency, conformance to standards and over all cost effectiveness. The quality of the software can be determined from the Source Code Test Plan. A Test Plan for source code specifies the objectives of testing, the test completion criteria, the system integration plan and method to be used on particular modules, and particular modules, and particular test inputs and expected outcomes. In the registration form, all the validations and verification will be done.

64

SYSTEM IMPLEMENTATION
Implementation is the process of converting developed system into an operational one. The implementation is one of the most important phases of the system development. The implementation is one of the most important phases of the systems development. The system has been successfully implemented with VISUAL BASIC 6.0 and ORACLE 8 as its database. After considering all the phases of the system life cycle, the developed system is now implemented with the features of user Friendliness, security, attractive form designs and well-defined functionalities. The system has
65

been implemented to the satisfaction of the user and learners, by means of analyzing user requirements.

SAMPLE CODING
User Login Private Sub cmdclear_Click () txtusername.Text = "" txtpwd.Text = "" txtusername.SetFocus End Sub Private Sub cmdexit_Click () Unload Me

66

End Sub Private Sub cmdsignin_Click () txtusername.SetFocus If txtusername.Text = "Nutrition" And txtpwd.Text = "nutrition" Then mdinutrition.Show End If End Sub MDI Form Private Sub BasalMetabolicRate_Click() frmBMI.Show End Sub Private Sub CalorieConsumption_Click () frmcalconsum.Show End Sub Private Sub CalorieCorrectWeight_Click () frmcrtwt.Show End Sub Private Sub CalorieSpent_Click () frmcalspent.Show End Sub Private Sub CalorieWeightReduction_Click () frmwtredun.Show End Sub Private Sub WeightGain_Click () frmwtgain.Show End Sub
67

Calories Spend Private Sub lstcalspent1_Click () If lstcalspent1.ListIndex = 0 Then cbocalspent.Clear cbocalspent.AddItem "driving" cbocalspent.AddItem "studying" Else If lstcalspent1.ListIndex = 1 Then cbocalspent.Clear cbocalspent.AddItem "badminton" cbocalspent.AddItem "tennis" Else If lstcalspent1.ListIndex = 2 Then cbocalspent.Clear cbocalspent.AddItem "cooking" cbocalspent.AddItem "washing clothes" Else If lstcalspent1.ListIndex = 3 Then cbocalspent.Clear cbocalspent.AddItem "building works" cbocalspent.AddItem "chamber works" Else If lstcalspent1.ListIndex = 4 Then cbocalspent.Clear cbocalspent.AddItem "building works" cbocalspent.AddItem "chamber works" Else If lstcalspent1.ListIndex = 5 Then cbocalspent.Clear cbocalspent.AddItem "eating" cbocalspent.AddItem "sleeping"
68

End If End Sub Private Sub lstcalspent2_Click () Select Case lstcalspent2.Text Case "running [jogging]" cl = 9 txtcalory.SetFocus Case "running [9km/hr]" cl = 11 txtcalory.SetFocus Correct Weight Determination Dim X, Y, cw As Double Dim ov, v, ow, uw, owp, ump As Double Public ovc Private Sub cmdcal_Click () X = txtwtg.Text Y = txtwtg.Text If optmale.Value = True Then cw = txtwtg.Text - 100 txtcw.Text = cw Else If optfemale.Value = True Then cw = (txtwtg.Text - 100) - 5 txtcw.Text = cw End If If (X > cw) Then MsgBox "YOU ARE OVERWEIGHT"
69

ov = 1 ow = X - cw oxp = (ow / X) * 100 txtfour.Text = ow txtsix.Text = owp txtfive.Text = "NIL" txtseven.Text = "NIL" Else If (X < cw) Then MsgBox "YOU ARE UNDERWEIGHT" ov = 0 ow = ow - X oxp = (uw / X) * 100 txtfive.Text = uw txtseven.Text = uwp txtfour.Text = "NIL" txtsix.Text = "NIL" Else If (X = cw) Then ov = 2 MsgBox "YOU ARE OF IDEAL WEIGHT" txtsix.Text = "NIL" txtseven.Text = "NIL" txtfour.Text = "NIL" txtfive.Text = "NIL" End If End Sub Weight Reduction
70

Dim wt, sp, X, Y, ls, n As Integer Public ovc Dim fd, ex As String Private Sub cmdcal_Click () wt = txtwt.Text If Opttkcal1.Value = True Then sp = 15 fd = "1500 calories/day" ex = "1hour/day" Else If Opttkcal2.Value = True Then sp = 10 fd = "1000 calories/day" ex = "3hours/day" Else If Opttkcal3.Value = True Then sp = 7 fs = "1400 calories/day" ex = "1.5hours/day" Else If Opttkcal4.Value = True Then sp = 5 fs = "1200 calories/day" ex = "2hours/day" End If X = sp * wt txtkg.Text = X MsgBox "You can reduce your " & wt & Kilograms of weight with in & X & days choose the types of menu and exercises to be followed from the

71

following buttons you have to take only & fd & of food do you have to do exercises for a minimum & ex & days" xtwt.Refresh cmdcal.Visible = True cmdclear.Visible = True End Sub Basal Metabolic Rate Private Sub txtage_KeyPress (KeyAscii As Integer) If KeyAscii = 13 Then Send Keys "{TAB}" KeyAscii = 0 End If End Sub Private Sub txtBMR_KeyPress (KeyAscii As Integer) If KeyAscii = 13 Then SendKeys "{TAB}" KeyAscii = 0 End If End Sub Private Sub txtht_KeyPress (KeyAscii As Integer) If KeyAscii = 13 Then SendKeys "{TAB}" KeyAscii = 0 End If End Sub Private Sub txtht_KeyPress (KeyAscii As Integer)
72

If KeyAscii = 13 Then SendKeys "{TAB}" KeyAscii = 0 End If End Sub Weight Gain Private Sub cmdShowMain_Click () mdinutrition.Show Unload Me End Sub Private Sub cmdwtg_Click () txtwtg.Text = txtTDEE.Text + (15 / 100 * txtTDEE.Text) End Sub Private Sub Form_Activate () txtTDEE.Text = Clipboard.GetText End Sub

SAMPLE SCREEN

73

74

75

76

77

78

79

CONCLUSION
This project NUTRITION SCIENCE has been developed with the help of system analysis, analysis of input and outputs, user requirements, etc. This project is mainly developed to computerize the Nutrition Science system manipulations. It mainly focuses its alternatives diet plans of overweight people, diabetic patients, and heart patients. The product is fully tested by unit-wise, module-wise and systemwise. The system is error free it is without any doubt, that this product will be of immense help to the maintain the diet.

80

BIBLIOGRAPHY

1. Programming in Visual Basic P.K. MCBRUDE.

- BPB Publications-Fifth Edition-2000 2. Visual Basic for Applications - KARAN KENWOTHY - Golgotha Publication Private Limited-2001. 3. Software Engineering Roger S.PRESSMAN Ph.D. - McGraw- Hill International Fifth Edition -2001. 4. Software Engineering Richard FAIRLEY - McGraw-Hill International-2001. 5. System Analysis and Design - Ellis M.A AWAD 6. Visual Basic NUTS and BOLTS- Gary Cornell and Troy Strain - TATA McGraw-Hill-2000 7. Oracle 8i - GEORGE KOCH

81

LIST OF WEB SITES

http://www.caloriesperhour.com http://www.healthline.com http://www.puregreathealth.com http://www.yourtotalhealth.ivillage.com http://www.dieabetesinfocenter.org http://www.lose5in7.com http://www.fatloss4idiots.com http://www.infominotaur.com http://www.genwaybio.com

82

83

Você também pode gostar