Posts

Java Project Code: Cinema Ticket booking system : Create a Java Application to book a ticket in a Cinema hall.

  Cinema Ticket booking system :   Create a Java Application to book a ticket in a Cinema hall. Create appropriate class to represent a Ticket and User. Use 2-D arrays to store the seats of the hall. Definition of done:  The System should ask user to enter Username and Password. X, The system should give option of different available movies. After selecting a movie give option of different seats available.   A user should be able to book or cancel a ticket.  Store the information in text file.  Code for this Project  import java.util.Scanner; import java.io.* ;  class Bookticket {    static String seating[][] = { { "A1", "A2","A3","A4" }, { "B1", "B2","B3","B4" },{"C1","C2","C3","C4" },{"D1","D2","D3","D4"}};                    static int I,J; static String z;     public void PrintAvaliable()     {          try        ...

Program to add two numbers in C++

Image
 

How to perform Overloading of constructors || Learn c++ coding

Image
 How to perform Overloading of constructors || Learn c++ coding  Program to perform overloading of constructors. 1. First open a turbo c++ compiler  2. Now click on new and copy the code given below. #include<iostream.h> #include<conio.h> class A { public: A() {cout<<"\n This is a constructor with no arguments"; } A(int x) {int y=x;  cout<<"\nThis is a constructor with one argument and value received is"<<y; } }; void main() {clrscr(); A obj1; A obj2(20); getch(); } Now run the code and output will be:-

How to make a simple class and object in C++

Image
  Learn to make a simple class and object in C++ Syntax of creating a class is :     class Classname { Code }; Syntax of creating object of any class is: Classname  ObjectName ;

Program to add two numbers in C++

Image
 

KVS PAPER SOLUTION 2018||Computer Literacy Part ||पेपर मैं करे अपने 10 ...

Image
 KVS  PAPER SOLUTION 2018||Computer Literacy Part ||पेपर मैं करे अपने 10 ...

How to Write Comment in HTML

Image
  Code To Add Comment in Html Syntax to ADD comment in HTML is  <!--   This is a Comment -->.