thestudentnetwork

Tuesday 20 September 2016

City Hospital Information System abstract- Java

What is a Hospital Information System?

An Information System consists of stored data which allows public to search the information needed instantly. 
A City Hospital Information System consists of a list of details of all the hospitals and doctors available in a given location.

The main objective of our project ‘CITY HOSPITAL INFORMATION SYSTEM’ is to provide all the list of 
hospitals in a given location. This system is being developed using java. They system would also include the 
exact location of the hospital, available doctors, timings, the various surgeries offered by the hospital.The data entered in the system can be updated at any given time.
The following program consists of mainly two modules:

1.   Information module: This module would help us to add information of new 
hospitals in a given location, update any information and also delete an old entry.


2.   Customer module: This module would help the customer to select the location in 
order to search the hospitals and book an appointment if any, as well as review a particular hospital based on their service.
Share:

Monday 19 September 2016

Tourism information system abstract- Java project

Abstract 

What is Tourism Management System ? 

It is a management software where in we have activities such as bookings, accomodations, food services, tourism spot, guide details and many more.

Information systems are usually developed using a many languages say C++, java and many more. In this project we would be developing a 'Tourism Information System' using java. In this we would be creating separate class for, say every actor we come across. But as it is an information system it might no be including more than three classes. 

Main Objective: 

This software is aimed at making travel related activities much easier. The customer is able get information regarding his place of stay and the vehicle that would be used for traveling in prior.
Once the booking is confirmed, the customer would receive all the details related to the journey, the place he is going to stay, vehicle number, vehicle type, guide name, guide contact number and many more. 

Modules involved in this Project :

1. Customer system: This keeps the track of all the new customers and old customers and acquires all the customer requirements. 

2. Travel Agent system: In this module, all the travel agents information associated with the company is kept and all their activities will be tracked
.
3. Package Information system: In this module, all the information like hotel’s availability, rooms availability, buses and trains reservation, places to be viewed with tour agent, food to be served, various important timing and all is kept


 
Share:

Student information management abstract - Java program

Abstract

Most of the management system projects like student, library, supermarket are developed using a wide variety of languages like visual basic, asp.net, java, C++ etc. Here we are going to develop the super market billing system using java, where in we would be creating an individual class for every noun we come across say, a customer, the shopkeeper.

Main Objective: 

In our project Student management system helps the the management / administrator to manage student details. Using this software we can:
  • Add a student details
  • Delete a student details
  • Modify student details
  • Save
  • Print Details.
Each function will be treated as a class and the concept of inner class and outer class will be used. Inheritance (override) will be used to modify details.  
 
Share:

Super market billing system abstract - Java program

Abstract 

Most of the management system projects like student, library, supermarket are developed using a wide variety of languages like visual basic, asp.net, java, C++ etc. Here we are going to develop the super market billing system using java, where in we would be creating an individual class for every noun we come across say, a customer, the shopkeeper.

Main Objective: 

In our project Supermarket management system helps the the shopkeeper to manage sales, incoming and outgoing stocks in the super market. Using this software we can:
  • Add
  • Delete
  • Modify 
  • Save
  • Print Details.
There will also be a search option to find a specific product. This biggest advantage using this software is that it reduces the time taken to manage the items in the store.  
Share:

Sunday 18 September 2016

Call by reference example - Java



In this program we have created: 

  • a class:  Box9
  • parameterized constructor: Box9(double x, double y, double z)
  • a method: volume() where the call by reference is implemented
  • a main class: Box9Demo
  • an object: b1

import java.util.Scanner;
class Box9{
  double w;
  double d;
  double h;

    Box9(double a, double b,double c){
          w=a;
          d=b;
          h=c;
       }

    void volume(Box9 b1){
            System.out.println("volume ="+b1.w*b1.d*b1.h);
    }
}

class Box9Demo{

public static void main(String args[]){

Box9 b1=new Box9(10.0,12.0,13.0);
 
b1.volume(b1);

 }

}
Share:

Object reference example - Java



In this program we have created: 
  • a class: Box1
  • a parameterised constructor: Box1(int x, int y, int z)
  • two methods: volume() and area() 
  • object: b1 is  a reference variable 
  •  b2 is a  reference variable
  • b2 is initialized with b1 means – “b1 and b2” both are referring same object , thus it does not allocate extra memory.

class Box1{
int w;
int d;
int h;

Box1(int x, int y, int z){
w=x;
d=y;
h=z;
}

double volume(){
return w*d*h;
}

double area(){
return w*d;
}

public static void main(String args[]){
double a,v;

Box1 b1=new Box1(10,20,30);
Box1 b2;
b2=b1;

a=b1.area();
v=b1.volume();
System.out.println("area="+ a);
System.out.println("volume="+v);

a=b2.area();
v=b2.volume();
System.out.println("area="+ a);
System.out.println("volume="+v);


}
}
Share:

Intro to C++



C++ is a middle-level programming language developed at AT&T Bell Laboratories in 1979 by Bjarne Stroustrup.C++ can be called as extension C or we can even say C++ is superset of C .

C++ is Object Oriented Programming language with general OOP Concepts like
1)Abstraction
2)Encapsulation
3)Modularity
4)Inheritance
5)Polymorphism.

A simple C++ program example:

#include<iostream.h>
using namespace std;

int main()
{
    cout<<"Welcome to The Student Network";
    return 0;
}

To execute online click here. here.
Share:

Simple java program using inheritance



So lets start of with a simple say basic java inheritance program. I hope the program would be self explanatory.


class Baseclass{  //this is a base class whose properties will be extended//
 int i;
 void show(){
 System.out.println(i); 
 }
}

class Subclass extends Baseclass{      //subclass inherits the properties of baseclass//
 int j;
 void display() {
  System.out.println(j);
 }
}

public class Demo{
 public static void main(String[] args) {
  Subclass object = new Subclass(); // creating object using Subclass // 
  object.i = 10;
  object.j = 20;
  object.show(); //calling a baseclass method using subclass object//
  object.display();  
 }
}
Share:

Saturday 17 September 2016

What is Java ?


Java is a programming language and a computing platform.

What do you mean by a Computing Platform

This question might have popped up in your mind while going through the first line, in simple words, it is any hardware or software used to host a particular application or any technology using which other technologies are built.  

 Say if you want to go about in more detail it was developed by Sun Microsystems in 1995.

There are like a whole bunch of websites that will not work until and unless you have java installed in your system.

Java is considered to be fast, secure and a reliable programming language.

In the next article, we will be learning how to install and set-up java in your system and get going with the fun part. Cheers ! 


Share:

Hackerrank Soluntions: Java Stdin and Stdout II



Task:
In this challenge, you must read an integer, a double, and a String from stdin, then print the values according to the instructions in the Output Format section below.

Input format:
There are three lines of input:
  1. The first line contains an integer.
  2. The second line contains a double.
  3. The third line contains a String.
Output format:
There are three lines of output:
  1. On the first line, print "String:" followed by the unaltered String read from stdin.
  2. On the second line, print "Double:" followed by the unaltered double read from stdin.
  3. On the third line, print "Int:followed by the unaltered integer read from stdin.
Sample Input:
43
3.14
Welcome to the network.

Sample Output:
String: Welcome to the network.
Double: 3.14
Int: 43

Quick Bits:
  • Stdin: Standard Input
  • Stdout: Standard Output
  • Imports: java.util.*; (or) java.util.Scanner;

Program:
import java.util.Scanner;

public class Solution {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int i = scan.nextInt();
        double d=scan.nextDouble();
        String j=scan.nextLine();
        String s=scan.nextLine();

        // Write your code here.

        System.out.println("String: " + s);
        System.out.println("Double: " + d);
        System.out.println("Int: " + i);
    }
}
Share:

Thursday 15 September 2016

Java project ideas 2016!


Java project ideas 2016:

Here is the list of projects you can take-up as your semester projects in java:

Project 1: super market billing system

Project 2: tourism information system

Project 3: course selection for a +2 student system

Project 4: college selection for a +2 student system

Project 5: campus recruitment companies information system

Project 6: Indian states information system

Project 7: your city cinema theatre information system

Project 8: your city hospital information system

Project 9: facilities at  University information system

Project 10: cities of a state information system

Project 11: real estate information system

Project 12: Student Counselling System

Project 13: House Tax Billing System

Project 14: Alumni Information System

Project 15: Electricity Billing System

Project 16: Voting Information System

Project 17: Library Information Management System

Project 18: Hospital Management System

Project 19: Banking System

Project 20: Doctors information system

Project 21: Marriage Bureau management

Project 22: Hotel Management system

Project 23: Water Tax Billing System

Project 24:  Railway station train information system

Project 25: Student Information System
Share:

HACKERRANK SOLUTIONS: JAVA IF-ELSE


Task:
In this challenge, we have to test our knowledge on if-else conditional statement and perform the following conditional actions
i. If n is odd, print Weird.
ii. If n is even and in inclusive range of 2 to 5, print Not Weird.
iii. If n is even and in inclusive range of 6 to 20, print Weird.
iv. If n is even and greater than 20, print Not Weird.

Sample Input:

3

Sample Output;

Weird

Quick bits:

  • Stdin: Standard Input
  • Stdout: Standard Output
  • Imports: java.util.*; (or) java.util.Scanner;
  • Conditional statement: If-else
  • Syntax: If(condition)
                  {
                      ...........
                      ...........
                  }
             else
                  {
                      ...........
                      ...........
                  }

Solution:


import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();            
String ans="";
if(n%2==1){
ans = "Weird";
}
else{
         

                if(n%2==0)
                {
                if(n>2 && n<5)
                    {
                    ans="Not Weird";
                }
                if(n>6 && n<=20)
                    {
                    ans= "Weird";
                }
                if(n>20)
                    {
                    ans="Not Weird";
                }
            }
              
                
            }
                
            
            System.out.println(ans);
            
        }
    }
Share:

Hackerrank solutions: Java Stdin and Stdout



Task: In this challenge, we must read 3 integers as inputs and then print them to stdout. Each integer should be printed on a new line.

Sample Input: 

43
54
123

Sample Output:

43
54
123

Quick Bits:

Stdin: Standard Input 
Stdout: Standard Output
Imports: java.util.*; (or)  java.util.Scanner;
Using Scanner: Scanner scan = new Scanner(System.in);

Solution:





import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();            
String ans="";
if(n%2==1){
ans = "Weird";
}
else{
         

                if(n%2==0)
                {
                if(n>2 && n<5)
                    {
                    ans="Not Weird";
                }
                if(n>6 && n<=20)
                    {
                    ans= "Weird";
                }
                if(n>20)
                    {
                    ans="Not Weird";
                }
            }
              
                
            }
                
            
            System.out.println(ans);
            
        }
    }
Share:

Hackerrank solutions: Welcome to Java!



Input: There is no input to be given in the program below.

Output: We must print the following to output lines

1. Print Hello, World. on the first line.
2. Print Hello, Java. on the second line.

Note 1: In order to print something as an output in java we use  System.out.println("Type text to be printed here...").

Note 2: println is used to print text on a new line.

Solution: 


  
Share:

Definition List

Contact

Pages

Support