filmov
tv
Railway Ticket Process Project In JAVA | Train Ticket Booking Project | complete Source Code JAVA

Показать описание
Railway Ticket Process Project In JAVA | Train Ticket Booking Project In JAVA | Train Booking Project
About Project - Design a class RailwayTicket with the following description:
Instance variables/data members:
String name: to store the name of the customer.
String coach: to store the type of coach customer wants to travel. ()
long mobno: to store customer’s mobile number.
int amt: to store basic amount of ticket.
int totalamt: to store the amount to be paid after updating the original amount.
Methods:
void accept(): to take input for name, coach, mobile number and amount.
void update(): to update the amount as per the coach selected.
Extra amount to be added in the amount as follows:
Type of coaches Amount
1AC 700
2AC 500
3AC 250
sleeper None
void display(): To display all details of a customer such as name, coach, total amount and mobile number.
Write a main() method to create an object of the class and call the above methods.
Check Playlist for More Projects in JAVA ⬇️
Check Playlist for More Projects in C Language ⬇️
Check Playlist for More Projects in C++ ⬇️
Project Link -
Video Editor - Kinemaster Pro
Contact & Follow me
Instagram Link ⬇️
Facebook Link ⬇️
Twitter Link ⬇️
About Project - Design a class RailwayTicket with the following description:
Instance variables/data members:
String name: to store the name of the customer.
String coach: to store the type of coach customer wants to travel. ()
long mobno: to store customer’s mobile number.
int amt: to store basic amount of ticket.
int totalamt: to store the amount to be paid after updating the original amount.
Methods:
void accept(): to take input for name, coach, mobile number and amount.
void update(): to update the amount as per the coach selected.
Extra amount to be added in the amount as follows:
Type of coaches Amount
1AC 700
2AC 500
3AC 250
sleeper None
void display(): To display all details of a customer such as name, coach, total amount and mobile number.
Write a main() method to create an object of the class and call the above methods.
Check Playlist for More Projects in JAVA ⬇️
Check Playlist for More Projects in C Language ⬇️
Check Playlist for More Projects in C++ ⬇️
Project Link -
Video Editor - Kinemaster Pro
Contact & Follow me
Instagram Link ⬇️
Facebook Link ⬇️
Twitter Link ⬇️