Browsing: Uncategorized

String Operations in C using library functions


This code allows user to enter the string and manipulate the string using library functions.


In this String Operations in C program using c language we will ask user for string on which basic operations need to be performed. Program will run with he menu options such as :

  • Enter String
  • Concatenate Strings
  • Find length of Strings
  • Compare Strings
  • Copy String to another one
  • Display String

String Operations in C

String Operations in C Program


/* Write a program in C to carry out following operations on strings using library functions
a. To concatenate a string S2 to string S1.
b. To find the length of a given string
c. To compare two strings S1 and S2.
d. To copy a string S2 to another string S1. */

#include < stdio.h > #include < string.h > #include < conio.h > #define MAXLEN 128
void main() {
char string1[MAXLEN], string2[MAXLEN]; /* strings where user input is stored */
char result[MAXLEN]; /* string where result is stored */
int choice, act;
int comparison;
while (1) {
/* Display a message that we need to desired operation*/
printf(“Enter your choice: \n”);

printf(“1. Enter the strings\ n”);
printf(“2. To concatenate a string S2 to string S1\ n”);
printf(“3. To find the length of a given string\ n”);
printf(“4. To compare two strings S1 and S2.\n”);
printf(“5. To copy a string S2 to another string S1.\n”);
printf(“6. Display S1 and S2.\n”);
printf(“0. Exit\ n\ n”);
printf(“Your Choice: “);
/* Read user’s choice into act */
scanf(” % d”, & choice);

switch (choice) {
case 1:
printf(“Please enter first string(maximum length % d)\ n”, MAXLEN– 1);

printf(“Please enter second string(maximum length % d)\ n”, MAXLEN– 1);
case 2:
strcat(string1, string2);
printf(“S1 now is: \n % s\ n”, string1);

case 3:
printf(“Please select a string to find length of \n”);

printf(“1. S1\ n”);
printf(“2. S2\ n”);
printf(“3. New string\ n”);

/* Read user’s choice into act */
scanf(” % d”, & act);

switch (act) {
case 1:
printf(“The length is % d\ n”, strlen(string1));
case 2:
printf(“The length is % d\ n”, strlen(string2));
case 3:
printf(“Please enter new string(maximum length % d)\ n”, MAXLEN– 1);
scanf(” % s”, result);
printf(“The length is % d\ n”, strlen(result));
case 4:
comparison = strcmp(string1, string2);

if (comparison == 0) {
printf(“S1 is lexicographically equal to S2\ n”);

} else if (comparison < 0) {
printf(“S1 is lexicographically smaller than S2\ n”);

} else {
printf(“S1 is lexicographically greater than S2\ n”);

case 5:
strcpy(string1, string2);

/* Display the result*/
printf(“S1 is now: \n % s\ n”, string1);

case 6:
printf(“S1 is now: \n % s\ n”, string1);
printf(“S2 is now: \n % s\ n”, string2);
case 0:

printf(“\n\ n”);

{ Add a Comment }

E-Book Management System Project


The main objective of the document is to illustrate the Requirements of project E-Book Management system. The document gives the detailed description of both functional and non-functional requirements. It will also explain about the features of the system interface of the system. What the system will do, the constraint under which it must operate and how the system will react to external stimuli. The document is developed after a number of consultations with team members and specification of the given project.

Scope Of The Project

The software provide the visitor, customer and administrator a easy and efficient way to buy and manage books in online.
Software provides following facilities to customer:

  • Facilitates easy shopping online.
  • Provides information about the products in categories.
  • Provides e-mail facility for future correspondence.
  • Provides Backup facility.
  • Software provides the following facilities to the merchant.
  • Manages the Transportation of hard copy of Book.
  • Look after the payment method.

Project Description

This software is totally self contained and works relatively an efficient on the package relates to the software. It provides simple database rather than complex one for high requirement and it provides a good and easy graphical user interface to both new and naive as well as experienced user of the computer.


Functional Requirements

  • Register – Enter details in application form.
  • Login – Enter Username and Password.
  • Search – Search book by attribute.
  • Buy – Download softcopies and order for hard copy.
  • Payment – Pay for books in different method.
  • Update – Update User details

Non- Functional Requirements

  • Bookmark – Bookmark the Website.
  • Categories – Book categories in Website.
  • Most Downloaded – Highest purchased book.
  • Offers – Offer given by merchant.
  • Carting – Mark and select multiple books.

Module Description

In this project we have defined different modules to enable the E-Book Management in successful manner.


The register module contains the application form or registration form which contains following details.

Name, Address, Contact number, E-mail id, Password etc.


The Login module contain the form which contain membership name and member password.
It includes Username and Password

Search Book

The search book module contain list of books,from this list we search for the book which we need.This also containes another field called as categories where can select the category of the book.


The download module contains the downloading option for where purpose where we can download,whatever Ebook we search and found.


After the book is searched and found. Then the user is going to download the book. Before the downloading the books needs payment for that book. So user has to select the type of transaction wheather credit card (or) debit card (or) cash (or) cheque (or) DD.

Sales Record

The website admin has to maintain the sales record where the record should be in updated, where how many books is sales ed. How much amount credited and names of user who downloaded that book and how much they paid for downloading the book.


The update module should maintained by the website administrator. The admin should update each and every process like.

  • Number of user registered
  • Registered user viewing.
  • Downloading by user.
  • Payment offered by user.

Uml Use case Diagram

Uml provides use case diagram notation to illustrate the names of use case and author relationship between them. Use case diagram and case relationship are secondary in use case work use case text document.

E-Book Management System use case

Uml Activity Diagram

A Uml activity diagram shows sequential and parallel activities in a process, work flows, data flows and compiler algorithm.

E-Book Management System activity Diagram

Uml Class Diagram

The Uml class diagram is to illustrates class interfaces and their actions. They are used for static object modeling, we have already introduced and used their uml diagram while domain modeling.

E-Book Management System class diagram

Uml Sequence Diagram

A sequence diagram illustrate a kind of format in which each object interact via message. It is generalize between two or more specialized diagram.

E-Book Management sequence Diagram

Uml Collaboration Diagram

Communication diagram illustrate that object interact on a graph or network format in which object can be placed where an the diagram. In collaboration diagram the object can be placed in anywhere on the diagram. The collaboration comes from sequence diagram.

E-Book Management collaboration Diagram

Uml State Chart Diagram

A Uml state machine represents the interaction events and states of an object and behavior of an object in reaction to an event.. Transaction shown as allows labeled with their event. It is included with initial pseudo state and fins end state.

E-Book Management state chart

Uml Component Diagram

Components are slightly fuzzy concept in this Uml,because both class and components can be used to model the something.

component diagram e book management

Uml Deployment Diagram

Deployment diagram shows the assignment of concrete software artifact to computational nodes. It shows the deployment of software elements to the physical elements. Deployment diagram are useful to communicate or deployment architecture.

Deployment Diagram


Thus the project for E-BOOK MANAGEMENT has been successfully executed and codes are generated.

Download Project


E-Book Management System Project Report

{ Add a Comment }

College Management System Project

With the ever increasing number of educational institutions like colleges and schools, maintaining the student’s database has not only become immensely essential but also cumbersome when it comes to keeping it updated and maintained. At the same time, a college management system must be user friendly as well as should be adaptable to any kind of modifications that might come into picture. Requirements may range from simplest of record keeping to high end well networked databases, depending on the requirement of the client and the scale of data expected of being handled by the college management system.

College Management System Project 

In spite of substantial amount of automation already implemented in this system, the quality of input into system is solely dependent on the managing personnel. But considering the large spectrum of data being handled by college management system like Inventory management, student record keeping, various records with regard to transactions undertaken at an organisational level etc. College management system proves to be asset.

College Management System Project Overview

 The basic structure of the management system would include a login page which would vary depending on the targeted user like whether the end user is an admin or a student or managing personnel. For more specific applications, the college management system can be streamlined with different heads. For instance, if it is used for inventory management it would include attributes like name of merchandise /supplies, number of units required, name of supplier among other keys. Another instance of the college management system could be inclusion of student database which would include attributes such as Name, Registration number, Dues etc.

College management system provides versatility to the organisation catering to its various needs. Role of admin or the managing personnel would include timely updation of the data and making it available to the end user. Key aspects of the system such as reliability of the data being fed, maintenance etc. is the responsibility of the admin.

College management system, when networked within the organisation proves to be even more beneficial as it promotes better co-ordination among various departments as well as reduce the overall cost and other resources being invested into it ensuring greater productivity and better efficiency. Certain additional features like implementation of reading RFID tags could be seamlessly integrated with the system in order to keep track of working staff attendance, number of working hours of each of the staff member etc. These additional features prove to be beneficial in the long run as well as for short term monitoring of the overall working of the educational institutes.

Software Requirements

  • Operating System : Windows Vista/7.
  • Front End : Microsoft Visual Studio, VB
  • Back End : SQL Server 2000.

 Hardware Requirements

  • Main Memory : 128MB.
  • Micro Processor : Pentium –IV or Higher Version.
  • Hard Disk Drive :500 GB.
  • Cache Memory : 512KB.

{ Add a Comment }