100% found this document useful (2 votes)
10K views62 pages

ICSE Computer Project (PDF File)

The document is a project report on a Town Management Java program. It includes contents, acknowledgements, introduction, objectives, coding, outputs, variable descriptions, conclusion and bibliography sections. The coding section shows the Java code for a program that allows users to select whether they are a resident or non-resident of Green City and provides corresponding options for services like hospitals, bill payments, deliveries, rent payments and transportation.

Uploaded by

Arihant Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
10K views62 pages

ICSE Computer Project (PDF File)

The document is a project report on a Town Management Java program. It includes contents, acknowledgements, introduction, objectives, coding, outputs, variable descriptions, conclusion and bibliography sections. The coding section shows the Java code for a program that allows users to select whether they are a resident or non-resident of Green City and provides corresponding options for services like hospitals, bill payments, deliveries, rent payments and transportation.

Uploaded by

Arihant Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 62

COMPUTER

PROJECT :-
(PDF FILE)
(2018 -
2019)

TOWN
MANAGEMENT.
-COMPUTER
PROJECT.
m
CONTENTS :-
S.No. Topic. Pg.No.
1. Contents. 1.

2. Acknowledgement. 2.

3. Introduction. 3.

4. Objective of the 4.
Program.
5. Coding. 5 - 51
6. Outputs. 52 - 55

7. Variable 56.
Description.
8. Conclusion. 57.

9. Bibliography. 58.

10. Credits. 59.


ACKNOWLEDGEMENT:-
This would not have been possible without the
support of many people who have helped in one
way or the other and have extended their priceless
assistance in the preparation and completion of
the project.
First of all, we would like to thank our Computer
Teacher Mrs. Artee Singh without whose constant
help, we would not have been able to complete the
project smoothly. Her inputs have been our
inspiration as we faced the hurdles while
completing this project.
The Java Program was made by a team of five
members and all of them contributed equally and
gave all their ideas and inputs to the program. All
of us worked closely to make the program on the
Town-Management.
Last but not the least, we would also like to thank
our family members who have been supportive
throughout the preparation of our project.
INTRODUCTION :-
The program is based on Town Management System developed in BlueJ
Version 4.1.3. It is also compatible and can executable in Java Environment.

 The Java Program is made on the topic : Town Management System. This
program is made for the residents and non-residents of Green-City under
the Green-City Development Programme under the Central Government.

 The Central Government is planning to make a Technologically Developed


and the first Eco-Town of India, named “The Green-City”.

 2000 Acres of land is required for the Green-City Development


Programme from the Central Government.

 The Construction is complete and Green-City is ready to live in.

 The Motto of our Green-City is:-'When You Are Green, You Are
Growing…!!

 The project is a Java application which generates two options for the user
asking if he is a Resident or a Non-Resident of Green-City and further
produces five options for each according to his ease and preference.

 The user can choose any of the two options and further any of the five
options for any number of times till he wants to exit.

 The theme of Town-Management is clearly understood and depicted in


the program.
Objective of the
Program :-
This Java Program is based on the theme of Town-
Management.
The main objective of the program is that now-a-days,
the future is advancing to the world of computers and
directly or indirectly, every work in the future would be
related to computers.
Also, the Town-Management Systems of the
municipalities of towns and cities (Nagarpalikas) are
not efficient enough and now-a-days do not provide
much help to the city and its citizens, though it’s an
urban local body whose major function is to administer,
govern and look after the people and their day-to-day
needs.
Thus, the main objective of this Java program on Town-
Management is to help people in their day to day jobs
as well as their basic needs. The program further
proposes a systematic and helpful Java project, which
would prove to be useful in the near future in the field
of Town-Management.
CODING :-
TOWN
MANAGEMENT .
import java.util.*;

import java.util.Scanner;

import java.io.*;

public class TOWN_MANAGEMENT {

public static void main(String args[])throws IOException {

Scanner sc=new Scanner(System.in);

BufferedReader br=new BufferedReader(new InputStreamReader(System.in));

int ch;String str=" ";String str1=" ";String str2=" ";

String str3=" ";String str4=" ";String str5=" ";String str6=" ";String str7=" ";String str8=" ";String str9="
";String str10=" ";String str11=" ";String str12=" ";String str13=" ";String str14=" ";String str15=" ";

int a=300,b=500,c=560,d=600,e=800,f=890;int g=950,h=1000,i=1020,j=1050;

System.out.println();

System.out.println("<-------------------------------------------------------------------------------------------------------->");

System.out.println(" PROJECT NAME : TOWN - MANAGEMENT SYSTEM


");

System.out.println("<-------------------------------------------------------------------------------------------------------->");

System.out.println();

System.out.println();

System.out.println("<*************** GREEN-CITY DEVELOPMENTPROGRAMME**************>");

System.out.println();
System.out.println();

System.out.println(" * 2000 Acres of land is required for the Green-City Development Programme
from the Central Government.");

System.out.println();

System.out.println(" * The Construction is complete and Green-City is ready to live in.");

System.out.println();

System.out.println(" * The Motto of our Green-City is:-'When You Are Green, You Are Growing…!!'");

System.out.println();

System.out.println();

System.out.println("<------------------------------------------------><------------------------------------------------- --->");

System.out.println();

while (true) {

System.out.println();

System.out.println(" Are You A Resident Or A Non-Resident Of Green-City ?");

System.out.println();

System.out.println(" Enter 1 If You Are A Resident:-");

System.out.println();

System.out.println(" Enter 2 If You Are A Non-Resident:-");

System.out.println();

System.out.println(" Enter 3 To Exit:-");

System.out.println();

ch=sc.nextInt();

switch(ch) {

case 1: /* Resident */ {

System.out.println("Welcome: Resident Of Green-City:-");

System.out.println("What do you want to do ?");

System.out.println("List Of Options");

System.out.println();
System.out.println("Enter 'HS' For Hospitality Services:-");

System.out.println();

System.out.println("Enter 'PB' For Paying Bills:-");

System.out.println();

System.out.println("Enter 'HD' For Home Delivery Services:-");

System.out.println();

System.out.println("Enter 'PR' For Paying Rent:-");

System.out.println();

System.out.println("Enter 'TF' For Transportation Facilities:-");

System.out.println();

System.out.println("Enter 'E' to EXIT:-");

System.out.println();

str=sc.next();

if(str.equalsIgnoreCase("HS")) {

System.out.println("Hospitals Near Your Residence:-");

System.out.println();

System.out.println("For 'Tata Motors Hospital' enter 'TM'");

System.out.println("For 'Tata Main Hospital' enter 'TMH'");

str1=sc.next();

if(str1.equalsIgnoreCase("TM")) {

System.out.println("Your Criteria(s)");

System.out.println();

System.out.println("For Doctor Chandan enter 'C'");

System.out.println("Dr. Chandan Is Specialised in Cough, Cold, Fever and Flu");

System.out.println("For Doctor Hemant enter 'H'");

System.out.println("Dr. Hemant is Sprcialised in Digestive Problems and Food Poisoning");

System.out.println("For Doctor Farhan enter 'F'");

System.out.println("Dr. Farhan is Specialised in Cancer and Tuberculosis");


System.out.println("For Doctor Biswas enter 'B'");

System.out.println("Dr. Biswas Is Specialised In Heart Sugery and Bone Fractures");

System.out.println("For Doctor Divya enter 'D'");

System.out.println("Dr. Divya is Specialised in Skin Diseases and Lung Cancer");

str2=sc.next(); {

if(str2.equalsIgnoreCase("C")) {

System.out.println("Your Appointment With Doctor Chandan At Your Selected Hospital Is At 4:30


PM");

System.out.println(" The Doctor's Fees:-"+a);

System.out.println();

System.out.println(" The Cost Of Medicines will told to you at the counter");

System.out.println();

System.out.println("Thank-You !! Visit Again !!"); }

if(str2.equalsIgnoreCase("H")) {

System.out.println("Your Appointment With Doctor Hemant At Your Selected Hospital Is At 9:00 AM");

System.out.println("Doctor's Fees="+c);

System.out.println();

System.out.println("The Cost Of Medicines will be told at the counter");

System.out.println();

System.out.println("Thank-You !! Visit Again !!"); }

if(str2.equalsIgnoreCase("F")) {

System.out.println("Your Appointment With Doctor Farhan At Your Selected Hospital Is At 12:00


NOON");

System.out.println("Doctor's Fees="+e);

System.out.println();

System.out.println(" The Cost Of Medicines will be told at the counter");

System.out.println();

System.out.println("Thank-You !! Visit Again !!"); }

if(str2.equalsIgnoreCase("B")) {
System.out.println("Your Appointment With Doctor Biswas At Your Selected Hospital Is At 11:00 AM");

System.out.println("Doctor's Fees="+g);

System.out.println();

System.out.println("The Cost Of Medicines will be told at the counter");

System.out.println();

System.out.println("Thank-You !! Visit Again !!"); }

if(str2.equalsIgnoreCase("D")) {

System.out.println("Your Appointment With Doctor Divya At Your Selected Hospital Is At 2:00 PM");

System.out.println("Doctor's Fees="+i);

System.out.println();

System.out.println("The Cost Of Medicines will be told at the counter");

System.out.println();

System.out.println("Thank-You !! Visit Again !!"); } } }

if(str1.equalsIgnoreCase("TMH")) {

System.out.println("Your Criteria(s)");

System.out.println();

System.out.println("For Doctor Chandrashekhar enter 'C'");

System.out.println("Dr. Chandrashekhar Is Specialised in Cough, Cold, Fever and Flu");

System.out.println("For Doctor Harsh enter 'H'");

System.out.println("Dr. Harsh is Specialised in Digestive Problems and Food Poisoning");

System.out.println("For Doctor Farnandes enter 'F'");

System.out.println("Dr. Farnandes is Specialised in Cancer and Tuberculosis");

System.out.println("For Doctor Bandopadhaya enter 'B'");

System.out.println("Dr. Bandopadhaya Is Specialised In Heart Sugery and Bone Fractures");

System.out.println("For Doctor Devendra enter 'D'");

System.out.println("Dr. Devendra is Specialised in Skin Diseases and Lung Cancer");

str2=sc.next(); {

if(str2.equalsIgnoreCase("C")) {
System.out.println("Your Appointment With Doctor Chandrashekhar At Your Selected Hospital Is At
4:30 PM");

System.out.println("Doctor's Fees="+a);

System.out.println();

System.out.println("The Cost Of Medicines will be told at the counter");

System.out.println();

System.out.println("Thank-You !! Visit Again !!"); }

if(str2.equalsIgnoreCase("H")) {

System.out.println("Your Appointment With Doctor Harsh At Your Selected Hospital Is At 9:00 AM");

System.out.println("Doctor's Fees="+c);

System.out.println();

System.out.println("The Cost Of Medicines will be told at the counter");

System.out.println();

System.out.println("Thank-You !! Visit Again !!"); }

if(str2.equalsIgnoreCase("F")) {

System.out.println("Your Appointment With Doctor Farnandes At Your Selected Hospital Is At 12:00


NOON");

System.out.println("Doctor's Fees="+e);

System.out.println();

System.out.println("The Cost Of Medicines will be told at the counter");

System.out.println();

System.out.println("Thank-You !! Visit Again !!"); }

if(str2.equalsIgnoreCase("B")) {

System.out.println("Your Appointment With Doctor Bandopadhaya At Your Selected Hospital Is At


11:00 AM");

System.out.println("Doctor's Fees="+g);

System.out.println();

System.out.println("The Cost Of Medicines will be told at the counter");

System.out.println();
System.out.println("Thank-You !! Visit Again !!"); }

if(str2.equalsIgnoreCase("D")) {

System.out.println("Your Appointment With Doctor Devendra At Your Selected Hospital Is At 2:00


PM");

System.out.println("Doctor's Fees="+i);

System.out.println();

System.out.println("The Cost Of Medicines will be told at the counter");

System.out.println();

System.out.println("Thank-You !! Visit Again !!"); } } } }

if(str.equalsIgnoreCase("PB")) {

System.out.println("Where do you want to pay bills ?");

System.out.println();

System.out.println("If at the Head-Office: Type 'HO'");

System.out.println("If at the Local-Office or the Office near your Residence: Type 'O'");

str3=sc.next();

if(str3.equalsIgnoreCase("HO")) {

System.out.println("What Kind Of Bills Do You Want To Pay ?");

System.out.println();

System.out.println("For paying Electricity Bills: Type 'EB'");

System.out.println("For paying Household Rates: type 'HR'");

System.out.println("For paying Municipal Charges: type 'MC'");

System.out.println("For paying Water Bills: type 'WB'");

System.out.println("For paying Miscellaneous or Household Charges: type 'HC'");

str4=sc.next(); {

if(str4.equalsIgnoreCase("EB")) {

System.out.println("Welcome to the Head-Office of Green City");

System.out.println("Enter Your Name");

String s=sc.next();
System.out.println("Enter Your UID or Adhaar Card Number");

int y=sc.nextInt();

System.out.println("Enter the Required Bill:");

int z=sc.nextInt();

System.out.println("Collect Your Receipt:");

System.out.println();

System.out.println("**********-BILL-**********");

System.out.println("Name:-"+s);

System.out.println("Adhaar Card Number:-"+y);

System.out.println("Total Electricity Bill Paid:-"+z);

System.out.println();

System.out.println("Thanks !! Visit Again !!"); }

if(str4.equalsIgnoreCase("HR")) {

System.out.println("Welcome to the Head-Office of Green City");

System.out.println("Enter Your Name");

String s=sc.next();

System.out.println("Enter Your UID or Adhaar Card Number");

int y=sc.nextInt();

System.out.println("Enter the Required Bill:");

int z=sc.nextInt();

System.out.println("Collect Your Receipt:");

System.out.println();

System.out.println("**********-BILL-**********");

System.out.println("Name:-"+s);

System.out.println("Adhaar Card Number:-"+y);

System.out.println("Total Household Rates Paid:-"+z);

System.out.println();

System.out.println("Thanks !! Visit Again !!"); }


if(str4.equalsIgnoreCase("MC")) {

System.out.println("Welcome to the Head-Office of Green City");

System.out.println("Enter Your Name");

String s=sc.next();

System.out.println("Enter Your UID or Adhaar Card Number");

int y=sc.nextInt();

System.out.println("Enter the Required Bill:");

int z=sc.nextInt();

System.out.println("Collect Your Receipt:");

System.out.println();

System.out.println("**********-BILL-**********");

System.out.println("Name:-"+s);

System.out.println("Adhaar Card Number:-"+y);

System.out.println("Total Municipal Charges Paid:-"+z);

System.out.println();

System.out.println("Thanks !! Visit Again !!"); }

if(str4.equalsIgnoreCase("WB")) {

System.out.println("Welcome to the Head-Office of Green City");

System.out.println("Enter Your Name");

String s=sc.next();

System.out.println("Enter Your UID or Adhaar Card Number");

int y=sc.nextInt();

System.out.println("Enter the Required Bill:");

int z=sc.nextInt();

System.out.println("Collect Your Receipt:");

System.out.println();

System.out.println("**********-BILL-**********");

System.out.println("Name:-"+s);
System.out.println("Adhaar Card Number:-"+y);

System.out.println("Total Water Bill Paid:-"+z);

System.out.println();

System.out.println("Thanks !! Visit Again !!"); }

if(str4.equalsIgnoreCase("HC")) {

System.out.println("Welcome to the Head-Office of Green City");

System.out.println("Enter Your Name");

String s=sc.next();

System.out.println("Enter Your UID or Adhaar Card Number");

int y=sc.nextInt();

System.out.println("Enter the Required Bill:");

int z=sc.nextInt();

System.out.println("Collect Your Receipt:");

System.out.println();

System.out.println("**********-BILL-**********");

System.out.println("Name:-"+s);

System.out.println("Adhaar Card Number:-"+y);

System.out.println("Total Household Charges Paid:-"+z);

System.out.println();

System.out.println("Thanks !! Visit Again !!"); } } }

if(str3.equalsIgnoreCase("O")) {

System.out.println("What Kind Of Bills Do You Want To Pay ?");

System.out.println();

System.out.println("For paying Electricity Bills: Type 'EB'");

System.out.println("For paying House Rent: type 'HR'");

System.out.println("For paying Municipal Charges: type 'MC'");

System.out.println("For paying Water Bills: type 'WB'");

System.out.println("For paying Miscellaneous or Household Charges: type 'HC'");


str4=sc.next(); {

if(str4.equalsIgnoreCase("EB")) {

System.out.println("Welcome to the Head-Office of Green City");

System.out.println("Enter Your Name");

String s=sc.next();

System.out.println("Enter Your UID or Adhaar Card Number");

int y=sc.nextInt();

System.out.println("Enter the Required Bill:");

int z=sc.nextInt();

System.out.println("Collect Your Receipt:");

System.out.println();

System.out.println("**********-BILL-**********");

System.out.println("Name:-"+s);

System.out.println("Adhaar Card Number:-"+y);

System.out.println("Total Electricity Bill Paid:-"+z);

System.out.println();

System.out.println("Thanks !! Visit Again !!"); }

if(str4.equalsIgnoreCase("HR")) {

System.out.println("Welcome to the Head-Office of Green City");

System.out.println("Enter Your Name");

String s=sc.next();

System.out.println("Enter Your UID or Adhaar Card Number");

int y=sc.nextInt();

System.out.println("Enter the Required Bill:");

int z=sc.nextInt();

System.out.println("Collect Your Receipt:");

System.out.println();

System.out.println("**********-BILL-**********");
System.out.println("Name:-"+s);

System.out.println("Adhaar Card Number:-"+y);

System.out.println("Total Household Rates Paid:-"+z);

System.out.println();

System.out.println("Thanks !! Visit Again !!"); }

if(str4.equalsIgnoreCase("MC")) {

System.out.println("Welcome to the Head-Office of Green City");

System.out.println("Enter Your Name");

String s=sc.next();

System.out.println("Enter Your UID or Adhaar Card Number");

int y=sc.nextInt();

System.out.println("Enter the Required Bill:");

int z=sc.nextInt();

System.out.println("Collect Your Receipt:");

System.out.println();

System.out.println("**********-BILL-**********");

System.out.println("Name:-"+s);

System.out.println("Adhaar Card Number:-"+y);

System.out.println("Total Municipal Charges Paid:-"+z);

System.out.println();

System.out.println("Thanks !! Visit Again !!"); }

if(str4.equalsIgnoreCase("WB")) {

System.out.println("Welcome to the Head-Office of Green City");

System.out.println("Enter Your Name");

String s=sc.next();

System.out.println("Enter Your UID or Adhaar Card Number");

int y=sc.nextInt();

System.out.println("Enter the Required Bill:");


int z=sc.nextInt();

System.out.println("Collect Your Receipt:");

System.out.println();

System.out.println("**********-BILL-**********");

System.out.println("Name:-"+s);

System.out.println("Adhaar Card Number:-"+y);

System.out.println("Total Water Bill Paid:-"+z);

System.out.println();

System.out.println("Thanks !! Visit Again !!"); }

if(str4.equalsIgnoreCase("HC")) {

System.out.println("Welcome to the Head-Office of Green City");

System.out.println("Enter Your Name");

String s=sc.next();

System.out.println("Enter Your UID or Adhaar Card Number");

int y=sc.nextInt();

System.out.println("Enter the Required Bill:");

int z=sc.nextInt();

System.out.println("Collect Your Receipt:");

System.out.println();

System.out.println("**********-BILL-**********");

System.out.println("Name:-"+s);

System.out.println("Adhaar Card Number:-"+y);

System.out.println("Total Household Charges Paid:-"+z);

System.out.println();

System.out.println("Thanks !! Visit Again !!"); } } } }

if(str.equalsIgnoreCase("HD")) {

System.out.println("What kind of home delivery services you want ?");

System.out.println();
System.out.println("If you want Payment on Delivery: type 'POD'");

System.out.println("If you want to make Online Payment: type 'OP'");// Editing..

str5=sc.next();

if(str5.equalsIgnoreCase("POD")) {

System.out.println("Enter the name of the product which you have bought");

String s=sc.next();

System.out.println("Enter the Product Code in Digits");

int z=sc.nextInt();

int x=100;

System.out.println("Delivery Charges are Rs."+x);

System.out.println("Total Amount to be paid to the Delivery Boy="+x);

System.out.println("Thanks !! Order Again !!"); }

if(str5.equalsIgnoreCase("OP")) {

System.out.println("Enter the name of the product which you have bought");

String s=sc.next();

System.out.println("Enter the Product Code");

int z=sc.nextInt();

System.out.println("Enter the cost of the Product");

int y=sc.nextInt();

int x=100;

System.out.println("Delivery Charges are Rs."+x);

int t=(x+y);

System.out.println("Total Amount to be paid to the Delivery Boy="+t);

System.out.println("Thanks !! Order Again !!"); } }

if(str.equalsIgnoreCase("PR")) {

System.out.println("How do you want to pay your House-Rent ?");

System.out.println();

System.out.println("Do you want to pay in Advance: Then Type PA");


System.out.println("If you want to pay Each Month: then type 'EA'");

str6=sc.next();

if(str6.equalsIgnoreCase("PA")) {

System.out.println("Enter your name");

String s=sc.next();

System.out.println("Enter your Monthly-Rent:-");

int z=sc.nextInt();

System.out.println("For How Many months do you want to pay the rent in advance ?");

int y=sc.nextInt();

int t=(z*y);

System.out.println("Total Amount to be paid="+t);

System.out.println();

System.out.println("Thanks !! Visit Again !!"); }

if(str6.equalsIgnoreCase("EA")) {

System.out.println("Enter your name");

String s=sc.next();

System.out.println("Enter your Monthly-Rent:-");

int z=sc.nextInt();

System.out.println("Thank-You !! Your Rent has been deposited !!");

System.out.println();

System.out.println("Thanks !! Visit Again !!"); } }

if(str.equalsIgnoreCase("TF")) {

System.out.println("What kind of transportation facilities you want ?");

System.out.println("If you want to book a taxi: then type 'T'");

System.out.println("If you want to rent a vehicle: then type 'R'");

System.out.println("If you want to transport your luggage: then type 'TL'");

str7=sc.next();

if(str7.equalsIgnoreCase("T")) {
System.out.println("Total People in the taxi(s)");

int y=sc.nextInt();

System.out.println("How Many taxis do you want to book ?");

int z=sc.nextInt();

int x=10;

System.out.println("Fare per kilometer"+x);

System.out.println();

System.out.println("Enter the distance");

int dis=sc.nextInt();

int t=x*dis;

System.out.println("Total Cost="+t);

System.out.println();

System.out.println("Thank-You!! Visit Again !!"); }

if(str7.equalsIgnoreCase("R")) {

System.out.println("List Of Options of Various Vehicles to be rented:-");

System.out.println();

System.out.println("Rent for a day are as follows:-");

System.out.println("Audi:- Rent is:- Rs. 7500");

System.out.println("Hyundai:- Rent is:- Rs. 650");

System.out.println("Mercedes:- Rent is:- Rs. 8000");

System.out.println("Alto:- Rent is:- Rs. 500");

System.out.println("Rolls_Royce:- Rent :- Rs. 25000");

System.out.println("Maruti_Suzuki:- Rent:- Rs. 550");

System.out.println("Toyota:- Rent is:- Rs. 1100");

System.out.println("BMW:- Rent is:- Rs. 15000");

System.out.println("Jaguar:- Rent is:- Rs. 12000");

System.out.println("Ambassador:- Rent:- Rs. 2200");

String k="audi";String l="Hyundai";String m="mercedes"; String n="Alto"; String o="Rolls_Royce";


String p="Maruti_suzuki";String q="Toyota";String r="BMW";String ss="Jaguar";String
t="Ambassador";

String s;

System.out.println("Enter the name of the vehicle you want to rent :-");

s=sc.next();

System.out.println("Enter the number of days for which you want to rent the vehicle ?");

int z=sc.nextInt();

if(s.equalsIgnoreCase(k))

System.out.println("Total Cost="+(z*7500));

else if(s.equalsIgnoreCase(l))

System.out.println("Total Cost="+(z*650));

else if(s.equalsIgnoreCase(m))

System.out.println("Total Cost="+(z*8000));

else if(s.equalsIgnoreCase(n))

System.out.println("Total Cost="+(z*500));

else if(s.equalsIgnoreCase(o))

System.out.println("Total Cost="+(z*25000));

else if(s.equalsIgnoreCase(p))

System.out.println("Total Cost="+(z*550));

else if(s.equalsIgnoreCase(q))

System.out.println("Total Cost="+(z*1100));

else if(s.equalsIgnoreCase(r))

System.out.println("Total Cost="+(z*15000));

if(s.equalsIgnoreCase(ss))

System.out.println("Total Cost="+(z*12000));

else if(s.equalsIgnoreCase(t))

System.out.println("Total Cost="+(z*2200));

System.out.println("Thank-You !! Visit Aagin !!"); }


if(str7.equalsIgnoreCase("TL")) {

System.out.println("Enter number of trucks you want for the transportation of your goods and
luggage");

int z=sc.nextInt();

System.out.println("Fare of each truck:- Rs. 8000");

int t1=(15000*z);

System.out.println("Total Cost="+t1);

System.out.println("Do you want workers or helpers to help you while loading or unloading your
goods or luggage ? Enter Y/N");

char w=sc.next().charAt(0);

char yy='y';

int u;int t=0;

if(w==yy) {

System.out.println("Fare of each helper=Rs. 500");

System.out.println("Enter total number of helpers you want:-");

u=sc.nextInt();

t=(u*200);

System.out.println("Total Cost:-"+t);

System.out.println("Thanks !!"); }

else {

System.out.println("No Problem !! We will manage without workers or helpers"); }

int tol=(t+t1);

System.out.println("Grand Total="+tol); } }

if(str.equalsIgnoreCase("E")) {

System.out.println("Okay, You want to exit");

System.out.println("Thank You, Visit Again");

System.exit(0);

} break; }

case 2: /* Non-Resident */ {
System.out.println("Welcome !! Non-Resident of Green-City !!");

System.out.println("What do you want to do ?");

System.out.println("List of Options:-");

System.out.println();

System.out.println("Enter 'BM' for Business Meetings");

System.out.println();

System.out.println("Enter 'TS' for Travelling Services");

System.out.println();

System.out.println("Enter 'LS' for Living Services");

System.out.println();

System.out.println("Enter 'BV' for Buying Vehicles");

System.out.println();

System.out.println("Enter 'SCS' for School and College Services");

System.out.println();

System.out.println("Enter 'E' for exit");

str8=sc.next();

if(str8.equalsIgnoreCase("BM")) {

System.out.println("Enter the date of the month in which you have the Business Meeting");

int z=sc.nextInt();

System.out.println("Total Business Meetings on that particular date:-");

System.out.println();

System.out.println("Tata Group Meeting at Hotel Iris:- If yes, Enter 'TG'");

System.out.println("Lafarge Cement Group Meeting at Hotel Sonnett:- If yes, Enter 'LM'");

System.out.println("Tisco Group of Companies Meeting at Hotel Sagar:- If yes, Enter 'TM'");

System.out.println("Tata Steel Limited Meeting at Hotel Inn:- If yes, Enter 'TI'");

System.out.println("Jusco Group of Companies Meeting at the Company's Conference Room:- If yes,


Enter 'JC'");

str9=sc.next();
if(str9.equalsIgnoreCase("TG")) {

System.out.println("Shall I make your appointment at the meeting ?");

System.out.println("Enter Y/N");

char mb='y';

char nb=sc.next().charAt(0);

if(mb==nb) {

System.out.println("Do you want to have a taxi at your residence for the meeting ?");

System.out.println("Enter Y/N");

char kb='y';

char cc=sc.next().charAt(0);

if(kb==cc) {

System.out.println("Okay Sir/Madam, Your Total Cost would be Rs.500");

System.out.println("Thank-You Sir/Madam!!"); }

else {

System.out.println("Okay Sir/Madam, You don't want a Taxi");

System.out.println("Thank-You Sir/Madam !!"); } }

else {

System.out.println("Okay Sir/Madam, you want to cancel your meeting");

System.out.println("Thank-You Sir/Madam !!"); } }

if(str9.equalsIgnoreCase("LM")) {

System.out.println("Shall I make your appointment at the meeting ?");

System.out.println("Enter Y/N");

char mb='y';

char nb=sc.next().charAt(0);

if(mb==nb) {

System.out.println("Do you want to have a taxi at your residence for the meeting ?");

System.out.println("Enter Y/N");

char kb='y';
char cc=sc.next().charAt(0);

if(kb==cc) {

System.out.println("Okay Sir/Madam, Your Total Cost would be Rs.350");

System.out.println("Thank-You Sir/Madam!!"); }

else {

System.out.println("Okay Sir/Madam, You don't want a Taxi");

System.out.println("Thank-You Sir/Madam !!"); } }

else {

System.out.println("Okay Sir/Madam, you want to cancel your meeting");

System.out.println("Thank-You Sir/Madam !!"); } }

if(str9.equalsIgnoreCase("TM")) {

System.out.println("Shall I make your appointment at the meeting ?");

System.out.println("Enter Y/N");

char mb='y';

char nb=sc.next().charAt(0);

if(mb==nb) {

System.out.println("Do you want to have a taxi at your residence for the meeting ?");

System.out.println("Enter Y/N");

char kb='y';

char cc=sc.next().charAt(0);

if(kb==cc) {

System.out.println("Okay Sir/Madam, Your Total Cost would be Rs.180");

System.out.println("Thank-You Sir/Madam!!"); }

else {

System.out.println("Okay Sir/Madam, You don't want a Taxi");

System.out.println("Thank-You Sir/Madam !!"); } }

else {

System.out.println("Okay Sir/Madam, you want to cancel your meeting");


System.out.println("Thank-You Sir/Madam !!"); } }

if(str9.equalsIgnoreCase("TI")) {

System.out.println("Shall I make your appointment at the meeting ?");

System.out.println("Enter Y/N");

char mb='y';

char nb=sc.next().charAt(0);

if(mb==nb) {

System.out.println("Do you want to have a taxi at your residence for the meeting ?");

System.out.println("Enter Y/N");

char kb='y';

char cc=sc.next().charAt(0);

if(kb==cc) {

System.out.println("Okay Sir/Madam, Your Total Cost would be Rs.700");

System.out.println("Thank-You Sir/Madam!!"); }

else {

System.out.println("Okay Sir/Madam, You don't want a Taxi");

System.out.println("Thank-You Sir/Madam !!"); } }

else {

System.out.println("Okay Sir/Madam, you want to cancel your meeting");

System.out.println("Thank-You Sir/Madam !!"); } }

if(str9.equalsIgnoreCase("JC")) {

System.out.println("Shall I make your appointment at the meeting ?");

System.out.println("Enter Y/N");

char mb='y';

char nb=sc.next().charAt(0);

if(mb==nb) {

System.out.println("Do you want to have a taxi at your residence for the meeting ?");

System.out.println("Enter Y/N");
char kb='y';

char cc=sc.next().charAt(0);

if(kb==cc) {

System.out.println("Okay Sir/Madam, Your Total Cost would be Rs.450");

System.out.println("Thank-You Sir/Madam!!"); }

else {

System.out.println("Okay Sir/Madam, You don't want a Taxi");

System.out.println("Thank-You Sir/Madam !!"); } }

else {

System.out.println("Okay Sir/Madam, you want to cancel your meeting");

System.out.println("Thank-You Sir/Madam !!"); } } }

if(str8.equalsIgnoreCase("TS")) {

System.out.println("Welcome to Green-City Travelling Services:-");

System.out.println();

System.out.println("The Exotic Locations Of Travelling in Green-City are:-");

System.out.println();

System.out.println("Lotus Mahal, type 'L'");

System.out.println("The Coin Museum, type 'C'");

System.out.println("The Zoological Park, type 'Z'");

System.out.println("Green-City Dam, type 'GD'");

System.out.println("Pre-Historic Hills and Caves, type 'HHC'");

str10=sc.next();

if(str10.equalsIgnoreCase("L")) {

System.out.println("When do you want to visit the Lotus Mahal ?");

int z=sc.nextInt();

System.out.println("Do you want to book a TourBus or a Taxi ?");

System.out.println("If TourBus, type 'TB'; If a Taxi, type 'T'");

String st=" ";


st=sc.next();

if(st.equalsIgnoreCase("TB")) {

System.out.println("How many people do you want from your side in the TourBus ?");

int y=sc.nextInt();

int x=60;

System.out.println("Fare of each person in the TourBus="+x);

System.out.println("Total Cost="+(x*y));

System.out.println("Thank-You !!"); }

if(st.equalsIgnoreCase("T")) {

System.out.println("How many people do you want from your side in the Taxi ?");

int y=sc.nextInt();

int x=120;

System.out.println("Fare of each person in the Taxi="+x);

System.out.println("Total Cost="+(x*y));

System.out.println("Thank-You !!"); } }

if(str10.equalsIgnoreCase("C")) {

System.out.println("When do you want to visit the Coin Museum ?");

int z=sc.nextInt();

System.out.println("Do you want to book a TourBus or a Taxi ?");

System.out.println("If TourBus, type 'TB'; If a Taxi, type 'T'");

String st=" ";

st=sc.next();

if(st.equalsIgnoreCase("TB")) {

System.out.println("How many people do you want from your side in the TourBus ?");

int y=sc.nextInt();

int x=40;

System.out.println("Fare of each person in the TourBus="+x);

System.out.println("Total Cost="+(x*y));
System.out.println("Thank-You !!"); }

if(st.equalsIgnoreCase("T")) {

System.out.println("How many people do you want from your side in the Taxi ?");

int y=sc.nextInt();

int x=100;

System.out.println("Fare of each person in the Taxi="+x);

System.out.println("Total Cost="+(x*y));

System.out.println("Thank-You !!"); } }

if(str10.equalsIgnoreCase("Z")) {

System.out.println("When do you want to visit the Zoological Park ?");

int z=sc.nextInt();

System.out.println("Do you want to book a TourBus or a Taxi ?");

System.out.println("If TourBus, type 'TB'; If a Taxi, type 'T'");

String st=" ";

st=sc.next();

if(st.equalsIgnoreCase("TB")) {

System.out.println("How many people do you want from your side in the TourBus ?");

int y=sc.nextInt();

int x=80;

System.out.println("Fare of each person in the TourBus="+x);

System.out.println("Total Cost="+(x*y));

System.out.println("Thank-You !!"); }

if(st.equalsIgnoreCase("T")) {

System.out.println("How many people do you want from your side in the Taxi ?");

int y=sc.nextInt();

int x=180;

System.out.println("Fare of each person in the Taxi="+x);

System.out.println("Total Cost="+(x*y));
System.out.println("Thank-You !!"); } }

if(str10.equalsIgnoreCase("GD")) {

System.out.println("When do you want to visit the Green-City Dam ?");

int z=sc.nextInt();

System.out.println("Do you want to book a TourBus or a Taxi ?");

System.out.println("If TourBus, type 'TB'; If a Taxi, type 'T'");

System.out.println("If you want a Boat-Ride, type 'BT'");

String st=" ";

st=sc.next();

if(st.equalsIgnoreCase("TB")) {

System.out.println("How many people do you want from your side in the TourBus ?");

int y=sc.nextInt();

int x=40;

System.out.println("Fare of each person in the TourBus="+x);

System.out.println("Total Cost="+(x*y));

System.out.println("Thank-You !!"); }

if(st.equalsIgnoreCase("T")) {

System.out.println("How many people do you want from your side in the Taxi ?");

int y=sc.nextInt();

int x=100;

System.out.println("Fare of each person in the Taxi="+x);

System.out.println("Total Cost="+(x*y));

System.out.println("Thank-You !!"); }

if(st.equalsIgnoreCase("BT")) {

System.out.println("How many people do you want from your side in the Boat ?");

System.out.println("The People Should be equal to 4 or less than 4");

int y=sc.nextInt();

int x=100;
if(y<=4) {

System.out.println("Fare of each person in the Boat="+x);

System.out.println("Total Cost="+(x*y));

System.out.println("Thank-You !!"); }

else {

System.out.println("Enter a Valid Number"); } } }

if(str10.equalsIgnoreCase("HHC")) {

System.out.println("When do you want to visit the Pre-Historic Hills and Caves ?");

int z=sc.nextInt();

System.out.println("Do you want to book a TourBus or a Taxi ?");

System.out.println("If TourBus, type 'TB'; If a Taxi, type 'T'");

String st=" ";

st=sc.next();

if(st.equalsIgnoreCase("TB")) {

System.out.println("How many people do you want from your side in the TourBus ?");

int y=sc.nextInt();

int x=80;

System.out.println("Fare of each person in the TourBus="+x);

System.out.println("Total Cost="+(x*y));

System.out.println("Thank-You !!"); }

if(st.equalsIgnoreCase("T")) {

System.out.println("How many people do you want from your side in the Taxi ?");

int y=sc.nextInt();

int x=180;

System.out.println("Fare of each person in the Taxi="+x);

System.out.println("Total Cost="+(x*y));

System.out.println("Thank-You !!"); } } }

if(str8.equalsIgnoreCase("LS")) {
System.out.println("If you want to buy a House, type 'BH'");

str11=sc.next();

if(str11.equalsIgnoreCase("BH")) {

System.out.println("What kind of house do you want to buy ?");

System.out.println();

System.out.println("Do you want to buy a House, then type 'BAH'");

System.out.println("Do you want to buy an apartment, then type 'AT'");

str12=sc.next();

if(str12.equalsIgnoreCase("BAH")) {

String stt=" ";

System.out.println("What kind of a house do you want to buy ?");

System.out.println();

System.out.println("Do you want to buy a Bungalow, then type 'BW'");

stt=sc.next();

if(stt.equalsIgnoreCase("BW")) {

String sttt=" ";

System.out.println("The Criteria(s) for Bungalows in Green-City:-");

System.out.println();

System.out.println("Two-Storey Bungalow, then type 'TFB'");

sttt=sc.next();

if(sttt.equalsIgnoreCase("TFB")) {

String sstt=" ";

System.out.println("Do you want to pay in monthly installments, then type 'MI'");

System.out.println("If you want to pay all in once, then type 'AO'");

sstt=sc.next();

if(sstt.equalsIgnoreCase("MI")) {

long q=20000000;

System.out.println("Total Cost Of the Bungalow="+q);


System.out.println("For how many months do you want to pay the cost ?");

System.out.println("Should be less than 18 months");

long z=sc.nextInt();

long y=0;

if(z<=18)

y=(q/z);

Math.round(y);

System.out.println("Your Amount is Rs."+y);

System.out.println("Thanks"); }

if(sstt.equalsIgnoreCase("AO")) {

long q=20000000;

System.out.println("Total Cost Of the bungalow="+q);

System.out.println("Confirm Your Cost:-");

long z=sc.nextLong();

if(z==q) {

System.out.println("Thanks, your money has been deposited"); }

else {

System.out.println("Please enter the correct cost"); } } } } }

else if(str12.equalsIgnoreCase("AT")) {

String suo=" ";

System.out.println("What kind of apartment do you want to buy ?");

System.out.println();

System.out.println("If 1 BHK, then type 'OB'");

System.out.println("If more than 1 BHK, then type 'MOB'");

suo=sc.next();

if(suo.equalsIgnoreCase("OB")) {

System.out.println("The Apartment would consist of one Bedroom, One Hall and One Kitchen");

long y=500000;
System.out.println("Cost of the Flat="+y);

System.out.println("Confirm the cost of the flat");

long z=sc.nextInt();

if(z==y)

System.out.println("Thanks !! Your money has been deposited");

else

System.out.println("Enter the Correct cost"); }

if(suo.equalsIgnoreCase("MOB")) {

System.out.println("The Apartment would consist of more than one Bedroom, One Hall and One
Kitchen");

long y=750000;

System.out.println("Cost of the Flat="+y);

System.out.println("Confirm the cost of the flat");

long z=sc.nextLong();

if(z==y)

System.out.println("Thanks !! Your money has been deposited");

else

System.out.println("Enter the Correct cost"); } }

else {

System.out.println("K"); } } }

if(str8.equalsIgnoreCase("BV")) {

String cig=" ";

System.out.println("What kind of vehicles do you want to buy ?");

System.out.println();

System.out.println("If you want to buy a Car, type 'C'");

System.out.println("If you want to buy a bike, type 'B'");

cig=sc.next();

if(cig.equalsIgnoreCase("C")) {
String sig=" ";

System.out.println("If you want to buy a luxury or Sports Car, type 'LSC'");

System.out.println("If you want to buy a Family Car, type 'FC'");

sig=sc.next();

if(sig.equalsIgnoreCase("LSC")) {

String sake=" ";

System.out.println("The Luxury or Sports Car Showroom is just behind the Main-Office");

System.out.println("Another Showroom is right infront of the Zoological Park");

System.out.println();

System.out.println("The Cars avaliable in the Showrooom are:-");

System.out.println("Mercedes Benz_______Rs.3000000, type 'MB'");

System.out.println("Audi_________________Rs.8078000, type 'AI'");

System.out.println("Corvette_____________Rs.5844650, type 'CE'");

System.out.println("Cadillac_____________Rs.6300000, type 'CC'");

System.out.println("Bugatti Veyron______Rs.1200000, type 'BVI'");

sake=sc.next();

if(sake.equalsIgnoreCase("MB")) {

String suk=" ";

System.out.println("Do you want to pay all money at once ?, type 'MO'");

suk=sc.next();

if(suk.equalsIgnoreCase("MO")) {

String nam=" ";

System.out.println("Enter Your Name");

nam=sc.next();

System.out.println("Account Number is 1008");

System.out.println("IFSC Code is 5587");

System.out.println("The Money:-3000000");

System.out.println("Thanks!! the Money has been deposited");


System.out.println("Do you want the Delivery at the house ?, Enter Y/N");

char mn='y';

char nm=sc.next().charAt(0);

if(mn==nm) {

System.out.println("Okay Sir/Madam- The car will be delivered to your house");

System.out.println("Don't Forget to give ur Details When you come to Purchase the car at any
Showroom");

System.out.println("Thank-You Sir/Madam"); }

else {

System.out.println("No Problem Sir/Madam- We won't deliver the car to your residence");

System.out.println("Thank-You Sir/Madam"); } } }

if(sake.equalsIgnoreCase("AI")) {

String suk=" ";

System.out.println("Do you want to pay all money at once ?, type 'MO'");

suk=sc.next();

if(suk.equalsIgnoreCase("MO")) {

String nam=" ";

System.out.println("Enter Your Name");

nam=sc.next();

System.out.println("Account Number is 1008");

System.out.println("IFSC Code is 5586");

System.out.println("The Money:-8078000");

System.out.println("Thanks!! the Money has been deposited");

System.out.println("Do you want the Delivery at the house ?, Enter Y/N");

char mn='y';

char nm=sc.next().charAt(0);

if(mn==nm) {

System.out.println("Okay Sir/Madam- The car will be delivered to your house");


System.out.println("Don't Forget to give ur Details When you come to Purchase the car at any
Showroom");

System.out.println("Thank-You Sir/Madam"); }

else {

System.out.println("No Problem Sir/Madam- We won't deliver the car to your residence");

System.out.println("Thank-You Sir/Madam"); } } }

if(sake.equalsIgnoreCase("CE")) {

String suk=" ";

System.out.println("Do you want to pay all money at once ?, type 'MO'");

suk=sc.next();

if(suk.equalsIgnoreCase("MO")) {

String nam=" ";

System.out.println("Enter Your Name");

nam=sc.next();

System.out.println("Account Number is 1008");

System.out.println("IFSC Code is 5585");

System.out.println("The Money:-5844650");

System.out.println("Thanks!! the Money has been deposited");

System.out.println("Do you want the Delivery at the house ?, Enter Y/N");

char mn='y';

char nm=sc.next().charAt(0);

if(mn==nm) {

System.out.println("Okay Sir/Madam- The car will be delivered to your house");

System.out.println("Don't Forget to give ur Details When you come to Purchase the car at any
Showroom");

System.out.println("Thank-You Sir/Madam"); }

else {

System.out.println("No Problem Sir/Madam- We won't deliver the car to your residence");

System.out.println("Thank-You Sir/Madam"); } } }
if(sake.equalsIgnoreCase("CC")) {

String suk=" ";

System.out.println("Do you want to pay all money at once ?If yes, type 'MO'");

suk=sc.next();

if(suk.equalsIgnoreCase("MO")) {

String nam=" ";

System.out.println("Enter Your Name");

nam=sc.next();

System.out.println("Account Number is 1008");

System.out.println("IFSC Code is 5584");

System.out.println("The Money:-6300000");

System.out.println("Thanks!! the Money has been deposited");

System.out.println("Do you want the Delivery at the house ?, Enter Y/N");

char mn='y';

char nm=sc.next().charAt(0);

if(mn==nm) {

System.out.println("Okay Sir/Madam- The car will be delivered to your house");

System.out.println("Don't Forget to give ur Details When you come to Purchase the car at any
Showroom");

System.out.println("Thank-You Sir/Madam"); }

else {

System.out.println("No Problem Sir/Madam- We won't deliver the car to your residence");

System.out.println("Thank-You Sir/Madam"); } } }

if(sake.equalsIgnoreCase("BVI")) {

String suk=" ";

System.out.println("Do you want to pay all money at once ?, type 'MO'");

suk=sc.next();

if(suk.equalsIgnoreCase("MO")) {
String nam=" ";

System.out.println("Enter Your Name");

nam=sc.next();

System.out.println("Account Number is 1008");

System.out.println("IFSC Code is 5583");

System.out.println("The Money:-12000000");

System.out.println("Thanks!! the Money has been deposited");

System.out.println("Do you want the Delivery at the house ?, Enter Y/N");

char mn='y';

char nm=sc.next().charAt(0);

if(mn==nm) {

System.out.println("Okay Sir/Madam- The car will be delivered to your house");

System.out.println("Don't Forget to give ur Details When you come to Purchase the car at any
Showroom");

System.out.println("Thank-You Sir/Madam"); }

else {

System.out.println("No Problem Sir/Madam- We won't deliver the car to your residence");

System.out.println("Thank-You Sir/Madam"); } } } }

if(sig.equalsIgnoreCase("FC")) {

String sakea=" ";

System.out.println("The Family car showroom is right in front of the Lotus Mahal");

System.out.println("Another one is in front of the Coin Museum");

System.out.println();

System.out.println("The Cars avaliable in the Showrooom are:-");

System.out.println("Alto K10______________-_Rs.340000,type 'AK' ");

System.out.println("Xcent__________________Rs.750000,type 'XC' ");

System.out.println("Verna_________________Rs.800000,type 'VE' ");

System.out.println("Honda City_____________Rs.700000,type 'HC' ");


sakea=sc.next();

if(sakea.equalsIgnoreCase("AK")) {

String suka=" ";

System.out.println("Do you want to pay all money at once? If yes,then type MAO");

suka=sc.next();

if(suka.equalsIgnoreCase("MAO")) {

String nama=" ";

System.out.println("Enter your name");

nama=sc.next();

System.out.println("Your Account number is 1503");

System.out.println("IFSC Code is 5547");

System.out.println("The Money:-340000");

System.out.println("Thanks!! the Money has been deposited");

System.out.println("Do you want the Delivery at the house ?, Enter Y/N");

char mn1='y';

char nm1=sc.next().charAt(0);

if(mn1==nm1) {

System.out.println("Okay Sir/Madam- The car will be delivered to your house");

System.out.println("Don't Forget to give ur Details When you come to Purchase the car at any
Showroom");

System.out.println("Thank-You Sir/Madam"); }

else {

System.out.println("No Problem Sir/Madam- We won't deliver the car to your residence");

System.out.println("Thank-You Sir/Madam"); } } }

if(sakea.equalsIgnoreCase("XC")) {

String suka=" ";

System.out.println("Do you want to pay all money at once? If yes,then type 'MAO'");

suka=sc.next();
if(suka.equalsIgnoreCase("MAO")) {

String nama=" ";

System.out.println("Enter your name");

nama=sc.next();

System.out.println("Your Account number is 1504");

System.out.println("IFSC Code is 5548");

System.out.println("The Money:-750000");

System.out.println("Thanks!! the Money has been deposited");

System.out.println("Do you want the Delivery at the house ?, Enter Y/N");

char mn1='y';

char nm1=sc.next().charAt(0);

if(mn1==nm1) {

System.out.println("Okay Sir/Madam- The car will be delivered to your house");

System.out.println("Don't Forget to give ur Details When you come to Purchase the car at any
Showroom");

System.out.println("Thank-You Sir/Madam"); }

else {

System.out.println("No Problem Sir/Madam- We won't deliver the car to your residence");

System.out.println("Thank-You Sir/Madam"); } } }

if(sakea.equalsIgnoreCase("VE")) {

String suka=" ";

System.out.println("Do you want to pay all money at once? If yes,then type 'MAO'");

suka=sc.next();

if(suka.equalsIgnoreCase("MAO")) {

String nama=" ";

System.out.println("Enter your name");

nama=sc.next();

System.out.println("Your Account number is 1505");


System.out.println("IFSC Code is 5549");

System.out.println("The Money:-800000");

System.out.println("Thanks!! the Money has been deposited");

System.out.println("Do you want the Delivery at the house ?, Enter Y/N");

char mn1='y';

char nm1=sc.next().charAt(0);

if(mn1==nm1) {

System.out.println("Okay Sir/Madam- The car will be delivered to your house");

System.out.println("Don't Forget to give ur Details When you come to Purchase the car at any
Showroom");

System.out.println("Thank-You Sir/Madam"); }

else {

System.out.println("No Problem Sir/Madam- We won't deliver the car to your residence");

System.out.println("Thank-You Sir/Madam"); } } }

if(sakea.equalsIgnoreCase("HC")) {

String suka=" ";

System.out.println("Do you want to pay all money at once? If yes,then type 'MAO'");

suka=sc.next();

if(suka.equalsIgnoreCase("MAO")) {

String nama=" ";

System.out.println("Enter your name");

nama=sc.next();

System.out.println("Your Account number is 1506");

System.out.println("IFSC Code is 5550");

System.out.println("The Money:-700000");

System.out.println("Thanks!! the Money has been deposited");

System.out.println("Do you want the Delivery at the house ?, Enter Y/N");

char mn1='y';
char nm1=sc.next().charAt(0);

if(mn1==nm1) {

System.out.println("Okay Sir/Madam- The car will be delivered to your house");

System.out.println("Don't Forget to give ur Details When you come to Purchase the car at any
Showroom");

System.out.println("Thank-You Sir/Madam"); }

else {

System.out.println("No Problem Sir/Madam- We won't deliver the car to your residence");

System.out.println("Thank-You Sir/Madam"); } } } } }

if(cig.equalsIgnoreCase("B")) {

String sake=" ";

System.out.println("The Bikes Showroom is just behind the Main-Office");

System.out.println();

System.out.println("The Bikes avaliable in the Showrooom are:-");

System.out.println("Avenger______________Rs.1906070, type 'AV'");

System.out.println("Pulsar 220 ______________Rs.90000, type 'PU'");

System.out.println("Intruder 150___________Rs.2844650, type 'CE'");

System.out.println("Passion Pro_____________Rs.750000, type 'CC'");

System.out.println("Royal Enfield___________Rs.1805000, type 'RE'");

sake=sc.next();

if(sake.equalsIgnoreCase("AV")) {

String suk=" ";

System.out.println("Do you want to pay all money at once ?, type 'MO'");

suk=sc.next();

if(suk.equalsIgnoreCase("MO")) {

String nam=" ";

System.out.println("Enter Your Name");

nam=sc.next();
System.out.println("Account Number is 1108");

System.out.println("IFSC Code is 5687");

System.out.println("The Money:-1906070");

System.out.println("Thanks!! the Money has been deposited");

System.out.println("Do you want the Delivery at the house ?, Enter Y/N");

char mn='y';

char nm=sc.next().charAt(0);

if(mn==nm) {

System.out.println("Okay Sir/Madam- The Bike will be delivered to your house");

System.out.println("Don't Forget to give ur Details When you come to Purchase the Bike at the
Showroom");

System.out.println("Thank-You Sir/Madam"); }

else {

System.out.println("No Problem Sir/Madam- We won't deliver the Bike to your residence");

System.out.println("Thank-You Sir/Madam"); } } }

if(sake.equalsIgnoreCase("PU")) {

String suk=" ";

System.out.println("Do you want to pay all money at once ?, type 'MO'");

suk=sc.next();

if(suk.equalsIgnoreCase("MO")) {

String nam=" ";

System.out.println("Enter Your Name");

nam=sc.next();

System.out.println("Account Number is 1109");

System.out.println("IFSC Code is 5688");

System.out.println("The Money:-90000");

System.out.println("Thanks!! the Money has been deposited");

System.out.println("Do you want the Delivery at the house ?, Enter Y/N");


char mn='y';

char nm=sc.next().charAt(0);

if(mn==nm) {

System.out.println("Okay Sir/Madam- The Bike will be delivered to your house");

System.out.println("Don't Forget to give ur Details When you come to Purchase the Bike at any
Showroom");

System.out.println("Thank-You Sir/Madam"); }

else {

System.out.println("No Problem Sir/Madam- We won't deliver the Bike to your residence");

System.out.println("Thank-You Sir/Madam"); } } }

if(sake.equalsIgnoreCase("CE")) {

String suk=" ";

System.out.println("Do you want to pay all money at once ?, type 'MO'");

suk=sc.next();

if(suk.equalsIgnoreCase("MO")) {

String nam=" ";

System.out.println("Enter Your Name");

nam=sc.next();

System.out.println("Account Number is 1110");

System.out.println("IFSC Code is 5689");

System.out.println("The Money:-2844650");

System.out.println("Thanks!! the Money has been deposited");

System.out.println("Do you want the Delivery at the house ?, Enter Y/N");

char mn='y';

char nm=sc.next().charAt(0);

if(mn==nm) {

System.out.println("Okay Sir/Madam- The Bike will be delivered to your house");

System.out.println("Don't Forget to give ur Details When you come to Purchase the bike at any
Showroom");
System.out.println("Thank-You Sir/Madam"); }

else {

System.out.println("No Problem Sir/Madam- We won't deliver the bike to your residence");

System.out.println("Thank-You Sir/Madam"); } } }

if(sake.equalsIgnoreCase("CC")) {

String suk=" ";

System.out.println("Do you want to pay all money at once ?, type 'MO'");

suk=sc.next();

if(suk.equalsIgnoreCase("MO")) {

String nam=" ";

System.out.println("Enter Your Name");

nam=sc.next();

System.out.println("Account Number is 1111");

System.out.println("IFSC Code is 5665");

System.out.println("The Money:-75000");

System.out.println("Thanks!! the Money has been deposited");

System.out.println("Do you want the Delivery at the house ?, Enter Y/N");

char mn='y';

char nm=sc.next().charAt(0);

if(mn==nm) {

System.out.println("Okay Sir/Madam- The bike will be delivered to your house");

System.out.println("Don't Forget to give ur Details When you come to Purchase the bike at any
Showroom");

System.out.println("Thank-You Sir/Madam"); }

else {

System.out.println("No Problem Sir/Madam- We won't deliver the bike to your residence");

System.out.println("Thank-You Sir/Madam"); } } }

if(sake.equalsIgnoreCase("RE")) {
String suk=" ";

System.out.println("Do you want to pay all money at once ?, type 'MO'");

suk=sc.next();

if(suk.equalsIgnoreCase("MO")) {

String nam=" ";

System.out.println("Enter Your Name");

nam=sc.next();

System.out.println("Account Number is 1123");

System.out.println("IFSC Code is 5699");

System.out.println("The Money:-1805000");

System.out.println("Thanks!! the Money has been deposited");

System.out.println("Do you want the Delivery at the house ?, Enter Y/N");

char mn='y';

char nm=sc.next().charAt(0);

if(mn==nm) {

System.out.println("Okay Sir/Madam- The bike will be delivered to your house");

System.out.println("Don't Forget to give ur Details When you come to Purchase the bike at any
Showroom");

System.out.println("Thank-You Sir/Madam"); }

else {

System.out.println("No Problem Sir/Madam- We won't deliver the bike to your residence");

System.out.println("Thank-You Sir/Madam"); } } } } }

if(str8.equalsIgnoreCase("SCS")) {

String scho=" ";

System.out.println("Welcome to school and college services");

System.out.println();

System.out.println("Our School and Colleges are world-renowed");

System.out.println("If you want an admission in the school, type 'AS'");


System.out.println("If you want an admission in College' type 'AC'");

scho=sc.next();

if(scho.equalsIgnoreCase("AS")) {

System.out.println("School Name:-Sunshine Green-City School");

System.out.println();

System.out.println("Enter Your Name");

String num=" ";num=sc.next();

System.out.println("Enter your age");

int ag=sc.nextInt();

if(ag==3)

System.out.println("Class-Nursery");

if(ag==4)

System.out.println("Class-L.K.G.");

if(ag==5)

System.out.println("Class-U.K.G.");

if(ag==6)

System.out.println("Class-1");

if(ag==7)

System.out.println("Class-2");

if(ag==8)

System.out.println("Class-3");

if(ag==9)

System.out.println("Class-4");

if(ag==10)

System.out.println("Class-5");

if(ag==11)

System.out.println("Class-6");

if(ag==12)
System.out.println("Class-7");

if(ag==13)

System.out.println("Class-8");

if(ag==14)

System.out.println("Class-9");

if(ag==15)

System.out.println("Class-10");

if(ag==16)

System.out.println("Class-11");

if(ag==17)

System.out.println("Class-12");

if(ag>=18)

System.out.println("Not eligible for school: Eligible for College");

System.out.println();

System.out.println("Do you want to book a School Van or a Bus ? Y/N");

char bvb='y';

char rew=sc.next().charAt(0);

if(bvb==rew) {

System.out.println("Number of People who will board the van or bus ?");

int zz=sc.nextInt();

int y=500;

System.out.println("Cost of each person in the van or bus="+y);

int t=(y*zz);

System.out.println("Total Cost="+t);

System.out.println("Thank-You"); }

else {

System.out.println("Okay Sir/Madam, You don't want to book a School Van or a Bus"); } }

if(scho.equalsIgnoreCase("AC")) {
System.out.println("College Name:-Fergusson's Green-City College of Higher Studies");

System.out.println();

String naam=" ";String subj=" ";

System.out.println("Enter your Name");

naam=sc.next();

System.out.println("Enter your Age");

int z=sc.nextInt();

System.out.println("If you want to choose Science: type 'SE'");

System.out.println("If you want to choose Commerce: type 'CE'");

System.out.println("If you want to choose Arts: type 'AS'");

subj=sc.next();

if(subj.equalsIgnoreCase("SE")) {

System.out.println("Fergusson's Green-City College of Higher Studies offers various courses");

System.out.println("in the subject of Science and has many facilities as compared to other Science
Colleges");

System.out.println("Your Class 12th and Class 10th Board Result is required for the admissio in this
college");

System.out.println("Make sure you bring them when you come for your admission in the college");

System.out.println("Thank-You !!"); }

if(subj.equalsIgnoreCase("CE")) {

System.out.println("Fergusson's Green-City College of Higher Studies offers various courses");

System.out.println("in the subject of Commerce and has many facilities as compared to other Science
Colleges");

System.out.println("Your Class 12th and Class 10th Board Result is required for the admissio in this
college");

System.out.println("Make sure you bring them when you come for your admission in the college");

System.out.println("Thank-You !!"); }

if(subj.equalsIgnoreCase("AS")) {

System.out.println("Fergusson's Green-City College of Higher Studies offers various courses");


System.out.println("in the subject of Arts and has many facilities as compared to other Science
Colleges");

System.out.println("Your Class 12th and Class 10th Board Result is required for the admissio in this
college");

System.out.println("Make sure you bring them when you come for your admission in the college");

System.out.println("Thank-You !!"); } } }

if(str8.equalsIgnoreCase("E")) {

System.out.println("Okay, You want to Exit");

System.out.println("Thank You. Visit Again.");

System.exit(0); }

break; }

case 3: /* To Exit */ {

System.out.println("Okay, You want to Exit");

System.out.println("Thank You. Visit Again.");

System.exit(0);

break; }

default: {

System.out.println("You Have Entered Wrong input:-");

System.out.println("Close the program and start all over again !!");

System.out.println("Now: Quit the Program:-");

System.out.println("Thank-You !!!");

System.exit(0); }

continue; } } } }
OUTPUTS :-
<------------------------------------------------------------------------------------------------------->

PROJECT NAME : TOWN - MANAGEMENT SYSTEM

<------------------------------------------------------------------------------------------------------->

<************** GREEN-CITY DEVELOPMENT PROGRAM*****************>

* 2000 Acres of land is required for the Green-City Development Programme from the Central
Government.

* The Construction is complete and Green-City is ready to live in.

* The Motto of our Green-City is:-'When You Are Green, You Are Growing...!!'

<------------------------------------------------><----------------------------------------------------->

Are You A Resident Or A Non-Resident Of Green-City ?

Enter 1 If You Are A Resident:-

Enter 2 If You Are A Non-Resident:-

Enter 3 To Exit:-

Welcome: Resident Of Green-City:-

What do you want to do ?

List Of Options

Enter 'HS' For Hospitality Services:-

Enter 'PB' For Paying Bills:-

Enter 'HD' For Home Delivery Services:-


Enter 'PR' For Paying Rent:-

Enter 'TF' For Transportation Facilities:-

Enter 'E' to EXIT:-

hs

Hospitals Near Your Residence:-

For 'Tata Motors Hospital' enter 'TM'

For 'Tata Main Hospital' enter 'TMH'

tmh

Your Criteria(s)

For Doctor Chandrashekhar enter 'C'

Dr. Chandrashekhar Is Specialised in Cough, Cold, Fever and Flu

For Doctor Harsh enter 'H'

Dr. Harsh is Specialised in Digestive Problems and Food Poisoning

For Doctor Farnandes enter 'F'

Dr. Farnandes is Specialised in Cancer and Tuberculosis

For Doctor Bandopadhaya enter 'B'

Dr. Bandopadhaya Is Specialised In Heart Sugery and Bone Fractures

For Doctor Devendra enter 'D'

Dr. Devendra is Specialised in Skin Diseases and Lung Cancer

Your Appointment With Doctor Bandopadhaya At Your Selected Hospital Is At 11:00 AM

Doctor's Fees=950

The Cost Of Medicines will be told at the counter

Thank-You !! Visit Again !!


Are You A Resident Or A Non-Resident Of Green-City ?

Enter 1 If You Are A Resident:-

Enter 2 If You Are A Non-Resident:-

Enter 3 To Exit:-

Welcome !! Non-Resident of Green-City !!

What do you want to do ?

List of Options:-

Enter 'BM' for Business Meetings

Enter 'TS' for Travelling Services

Enter 'LS' for Living Services

Enter 'BV' for Buying Vehicles

Enter 'SCS' for School and College Services

Enter 'E' for exit

bv

What kind of vehicles do you want to buy ?

If you want to buy a Car, type 'C'

If you want to buy a bike, type 'B'

The Bikes Showroom is just behind the Main-Office

The Bikes avaliable in the Showrooom are:-

Avenger_______________Rs.1906070, type 'AV'

Pulsar 220 ______________Rs.90000, type 'PU'

Intruder 150___________Rs.2844650, type 'CE'

Passion Pro_____________Rs.750000, type 'CC'


Royal Enfield__________Rs.1805000, type 'RE'

re

Do you want to pay all money at once ?, type 'MO'

mo

Enter Your Name

Sahil

Account Number is 1123

IFSC Code is 5699

The Money:-1805000

Thanks!! the Money has been deposited

Do you want the Delivery at the house ?, Enter Y/N

Okay Sir/Madam- The bike will be delivered to your house

Don't Forget to give ur Details When you come to Purchase the bike at any Showroom

Thank-You Sir/Madam

Are You A Resident Or A Non-Resident Of Green-City ?

Enter 1 If You Are A Resident:-

Enter 2 If You Are A Non-Resident:-

Enter 3 To Exit:-

Okay, You want to Exit

Thank You. Visit Again.


VARIABLE DESCRIPTION :-
VARIABLE DATA TYPE USE
ch Integer Choice variable for resident or
non- resident.
str String To accept the choice for the
options in resident section.
Str1 String To accept the choice of resident.
Str2 String To accept the choice of doctors.
Str3 String To accept the preferred location
for paying bills.
Str4 String To accept the type of bill.
Str5 String To accept the method of payment
while utilizing the home delivery
services.
Str6 String To accept the method of payment
while utilizing the house rent
services.
Str7 String To accept the type of transport
while utilizing the transportation
facility.
Str8 String To accept he choice for options in
non- resident section.
Str9 String To accept choice for company with
which meeting is fixed.
Str10 String To accept the locations to travel.
Str11 String To accept what kind of living
quarters are needed.
Str12 String To accept if house or apartment is
to be brought.
Cig String To accept kind of vehicle as per
user’s choice.
Sig String To accept the choice in cars.
Sake String To accept the choice in luxury cars.

Sakea String To accept the choice in family cars.

Scho String To accept the institution of


education as per user’s choice.
Nam String To accept the name of student
applying for admission in school.
Ag Integer To accept the age of student
applying for admission in school.
Bvb Char To accept whether Bus or Van is
needed or not.
Naam String To accept the name of student
applying for college.
z Integer To accept the age of student
applying for school.
Conclusion :-
This project has been a great tutor as far
as practical aspects of programming are
concerned. After planning the program
and discussing it with our teacher, we
drafted a source code and then punched it
in the computer. This was followed by
debugging and testing both at home and
at school. Eventually, we got an error free
code to put in the project.
In addition to drilling the various concepts
used in the project into our heads, it also
taught us team work, time management,
presentation skills and research work.
These are the lessons that will remain with
us for life and will help us in the near
future.
BIBLIOGRAPHY :-

- These are the following


books that we used :

a. Understanding Computer
Applications with BlueJ ICSE Class
‘X’ by Vijay Kumar Pandey and
Dilip Kumar Dey.

b. Computer Applications: A
Textbook of Class ‘X’ by Sumita
Arora.
CREDITS :-
BLUEJ PROGRAM
AND PROJECT
MADE BY :
1. Sahil Raj Singh – Team Captain
2. Arihant Kumar – Deputy Team
Captain.
3. Aman Raj.
4. Ankit Nidhi. -Team Members
5. Sahil Kumar.

You might also like