KoneruLakshmaiah Education Foundation
(Deemed to be University)
DEPARTMENT OF COMPUTER SCIENCE ENGINEERING
A Project Based Lab Report
on
CAR MANUFACTURE COMPANY
SUBMITTED BY:
LDNUMBER — STUDENT NAME
180031034 G.ABHINAY
UNDER THE GUIDANCE OF
CH.PRASAD
( UNIVERSITY)
KL @eemed to be university)
Green fields, Vaddeswaram - 522 502
Guntur Dt., AP, India.DEPARTMENT OF COMPUTER SCIENCE ENGINEERING
( UNIVERSITY)
CERTIFICATE
This is to certify that the project based laboratory report entitled
“History” submitted by MrG ABHINAY (180031034) to the Department of Computer
Science, KL Deemed to be University in partial fulfillment of the requirements for the:
completion of a project based Laboratory in “OBJECT ORIENTED)
/PROGRAMMING(OOPS)”course in II B Tech I Semester, is a bonafide record of the work:
carried out by him/her under my supervision during the academic year 2019 - 2020,
PROJECT SUPERVISOR HEAD OF THE DEPARTMENT
MR.CH PRASAD HARI KIRAN VEGEACKNOWLEDGEMENT
It is great pleasure for me to express my gratitude to our honorable
President Sri, Koneru Satyanarayana, for giving the opportunity and platform|
‘with facilities in accomplishing the project based laboratory report.
Texpress the sincere gratitude to ProfDr. K. SubbaRao, Principalfor his
administration towards our academic growth.
I express sincere gratitude toOMrHariKiranVege, HOD Department of,
Computer Science for his leadership and constant motivation provided in
successful completion of our academic semester: I record it as my privilege to}
deeply thank for providing us the efficient faculty and facilities to make our
ideas into reality.
I express my sincere thanks to our project supervisor Mr.CH PRASAD for
her novel association of ideas, encouragement, appreciation and intellectual zeal
which motivated us to venture this project successfully.
Finally, it is pleased to acknowledge the indebtedness to all those who
devoted themselves directly or indirectly to make this project report success.
Project Associates...
LDNUMBER — STUDENT NAME
180031034 G.ABHINAYCONTENTS
SNO
CONTENT
PgNo
ABSTRACT
INTRODUCTION
DESCRIPTION
SYSTEM SPECIFICATIONS
FUNCTIONAL
REQUIREMENTS
‘NON-FUNCTIONAL
REQUIREMENTS
10
‘ALGORITHM
1
FLOWCHART
12
CODE
13
10.
OUTPUT
18
iL
CONCLUSION
REFERENCES
211.
AB:
TRACT
The overview of the project is to manufacture the cars of the
required model. The cars are manufactured according to the view
of the customer. The customer chooses according to the given
option and checkouts the bill. This project is complete upon the
selection of a car by the customer through the manufacturing
industryINTRODUCTION
The automotive industry comprises a wide range of companies and organizations
involved in the design, development, manufacturing, marketing, and selling of motor
vehicles. It is one of the world's largest economic sectors by revenue. The automotive
industry does not include industries dedicated to the maintenance of automobiles
following delivery to the end-user such as automobile repair shops and motor fuel filling
stations,
The Indian auto industry became the 4" largest in the world with sales increasing 9.5 per:
cent year-on-year to 4.02 million units (excluding two wheelers) in 2017. It was the 7th
largest manufacturer of commercial vehicles in 2018.
The Two Wheelers segment dominates the market in terms of volume owing to a growing.
middle class and a young population. Moreover, the growing interest of the companies in’
exploring the rural markets further aided the growth of the sector.
India is also a prominent auto exporter and has strong export growth expectations for the
near future, Automobile exports grew 14.5 per cent during FY 2019. It is expected to grow’
Jat a CAGR of 3.05 per cent during 2016-2026. in addition, several initiatives by the
Government of india and the major automobile players in the Indian market are expected)
to make India a leader in the two-wheeler and four wheeler market in the world by 2020.DESCRIPTION:
The main aim of this project is to design and manufacture a car according to the
customer choice. With the help of GUI a program is built to purchase a car according
to customer liking
It includes various available model, body type, design pattern , cost of each
model, and delivery time for their choice of carSYSTEM SPECIFICATION :
‘The CAR MANUFACTURE COMPANY is a very vast system to be handled manually and
its computerization will prove to be of great help to the customers,
LIMITATIONS OF EXISTING SYSTI
Data redundancy:It means that same data fields appear in many different files and often in
different formats. In manual system, it poses quite a big problem because the data has to be
‘maintained in large volumes but in our system, this problem can be overcome by providing
the condition that if the data entered is duplicate, it will not be entered, otherwise, updating
‘will take place
1 Difficulty in accessing the data:In manual system, searching information is time
consuming but in our system, any information can be accessed by providing the primary
key.
Updating of the file is not provided.FUNCTIONAL REQUIREMENT:
Purpose :Main aim of this project is to implement a code about the car
manufacturing company, the detailed information about the type of the body
according to the customer interest, the car is manufactured with high quality material
Each and every information is displayed according to the customer choice along with
the bill
GUI:
graphical user interface isa form of user interface that allows users to interact
with electronic devices through
graphical icons and visual indicators such as secondary notation, instead of text-based
User interfaces, typed command labels or text navigation. GUIs were introduced in
reaction to the perceived steep learning curve of command-line interfaces (CLIs).which
require commands to be typed on a computer keyboard.NON-FUNCTIONAL REQUIREMENTS
INTERFACE: An interface is a reference type in Java. Itis similar to class. It isa collection
of abstract methods. A class implements an interface, thereby inheriting the abstract methods
of the interface. Along with abstract methods, an interface may also contain constants,
default methods, static methods, and nested types.
INHERITANCE : Inheritance in java is a mechanism in which one object acquires all the
properties and behaviours of parent object. The idea behind inheritance in java is that you
can create new classes that are built upon existing classes.
|STATIC KEYWORD: All instances share the same copy of the variable. A class variable can
bbe accessed directly with the class, without the need to create a instance,
ARRAYS: Java provides a data structure, the array, which stores a fixed-size sequential
collection of elements of the same type. An array is used to store a collection of data, but it
is often more useful to think of an array as a collection of variables of the same type
:XCEPTION HANDLING: An exception (or exceptional event) is a problem that arises
during the execution of a program. When an Exception occurs the normal flow of the
program is disrupted and the program/ Application terminates abnormally, which is not
recommended, therefore, these exceptions are to be handled.
107. ALGORITHM
‘LSTART
2. FRAME CAR SELECTION
2.1 CLICK NEXT TO START YOUR SELECTION
.SELECT BODY TYPE
3.1.PRIME,SEDAN,SUV,OFFROAD
4.CHOOSE YOUR COLOUR
4.1,RED, BLUE WHITE, MATT BLACK
5.SELECT YOU WHEELS MATERIAL
5.1, ALLOY,CARBON FIBRE
6.SELECT YOUR DELIVERY TYPE
6.1,SELF PICKUP. HOME DELIVERY
7.CHECKOUT
B.MESSAGE
8.1, BODY
COLOUR
WHEELS
DELIVERY
TOTAL
9.0K
10.STOP
ua8.FLOW CHART
12Di iM
li
9. CODEimport java.awt.event.*;
import javax.swing.*;
class welcomepage
{
welcomepage(){
JFrame
label 112,13;
I1=new JLabel("Welcome to our garage view...");
I1.setBounds(50,50, 200,30);
l2=new JLabel\""You can choose you dream car through this,
window..");
l2.setBounds(50,100,300,30);
I3-new JLabel("Click next to start your selection,
I3.setBounds(50,150,300,0);
JButton b=new JButton("NEXT");
b.setBounds(100,200,100,30);
fadd(l1}; faddil2); addi la); fadd(b);
f.setSize(500,500);,
fsetLayout(null);
fsetVisible(true);
b.addActionListener(new ActionListener()f
public void actionPerformed(ActionEvent e){
Secondpage f2-new Secondpage();
fedispose();
}
ye
}
}
class Secondpage {
JFrame s;
int cost;
String ms;
Secondpage(){
s-new JFrame("ComboBox Example");
final JLabel label1= new JLabel\);
label1.setBounds(150,30,150,50);
labelt setText("Select body type of shape
sButton b1=new JButton("CHECKOUT");
bi. setBounds(180,390,150,20);
String vehicle_body_shapel]=I"HATCHBACK
@1,50,000rs", "SEDAN @2,00,000rs", "SUV
‘OFFROAD SUV @2,75,000rs"};
Yew JFrame(""Car selection");
4String vehicle_body_colour{]=["RED @25,000rs", "BLUE
@25,000rs", "WHITE @30,000rs","GRAY @25,000rs"," MIRROR
BLACK @35,000rs","MATT BLACK @40,000rs"};
String vehicle_wheel_materiall}={"STEEL @30,000rs"," ALLOY
@50,000rs", "CARBON FIBRE @75,000rs";
String vehicle_delivery_typel]={"HOME DELIVERY @2000", "SELF
PICKUP @0"};
final JComboBoxcb=new JComboBox(vehicle_body_shape);
cb.setBounds(160,80,150,20);
final JLabel label2=new JLabel();
label2.setText("Choose your colour"
label2.setBounds(150,110,150,50);
final JComboBox cb2=new JComboBox\vehicle_body_colour);
cb2.setBounds(160,160,150,20);
final JLabel label3=new JLabell);
label3.setText( "Select your wheels material");
label3.setBounds(150,190,200,50);
final JComboBox cb3-new
JComboBox(vehicle_wheel_material);
cb3.setBounds(160,240,150,20);
final JLabel label4=new JLabel\);
label4.setText( "Select your delivery type’
label4.setBounds(150,270,200,50);
final JComboBox cb4=new JComboBox{vehicle_delivery_type);
‘cb4.setBounds(160,320,150,20);
Label label5 ,labelé,label7.label
label5=new JLabel()
label6=new JLabel();
label7=new JLabel();
label8=new JLabel();
JLabel label9=new JLabell
tabel5.setBounds(250, 130,100,50};
label6.setBounds(250,150,100,50);
label7.setBounds(250,170,100,50);
label8.setBounds(250, 190,200,50};
label9.setBounds(250,210,100,50);
s.add(cb); s.add(cb2); s.add(cb3); s.add(cb4); s.add(label1);
s.add(label2); s.add{label3); s.add\label4); s.add(b4);
//s.addlabel5); s.add\label6); s.add{label7); s.add{label8);
s.add(label9);
s.setLayout( null};
s.setSize(500,500);
s.setVisible(true);
bi.addActionListener(new Actiontistener() {
15public void actionPerformed(ActionEvent e) {
String
body_type,body_colour,wheel_materialdelivery_type:
if(cb.getitemAt{cb.getSelectedindext)) == "HATCHBACK
@1,50,000rs")
{
body_type="Body — - HATCHBACK"
cost=cost+150000;
1
else if(ch.getltemat(cb.getSelectedindex())
@2,00,000rs")
t
"SEDAN
body_type="Body - SEDAN";
cost=cost+200000;
J
else if(cb.getltemat(cb.getSelectedindex())
@2,25,000rs")
{
body_type="Body - SUV";
cost=cost+225000;
cost=cost+275000;
}
msgt=body_type+"\n
if{cb2.getItemAt(cb2.getSelectedindex())
@25,000rs")
{
body_colour="Colour - RED
cost=cost+25000;
J
else if{cb2.getltemAt(cb2.getSelectedindex()) == "BLUE
@25,000rs")
{
body_colour="Colour - BLUE";
cost=cost+25000;
}
else if{cb2.getttemAt(ch2.getSelectedindext)) == "WHITE
@30,000rs")
{
body_colour="Colour_ - WHITE’
cost=cost+30000;
16}
else if(cb2.getItemAt(cb2.getSelectedindex()) =:
@25,000rs")
{
body_colour="Colour- GRAY
cost=cost+25000;
J
else if(cb2.getltemAt(cb2.getSelectedindex())
BLACK @35,000rs")
{
MIRROR
body_colour="Colour _- MIRROR BLACK";
cost=cost+35000;
body_colour="Colour - MATT BLACK’
cost=cost+40000;
}
msg+=body_colourt"\n";
if(cb3.getltemAt{cb3.getSelectedindex())
@30,000rs")
t
wheel_material
cost=cost+30000;
"Wheels - STEEL";
J
else if{cb3.getttemAt(ch3.getSelectedindex())
@50,000rs")
"Wheels - ALLOY";
wheel_material="Wheels - CARBON FIBRE";
cost=cost+75000;
}
msgt=wheel_material#"\n'
if{cb4.getltemAt(cb4.getSelectedindex()) =:
DELIVERY @2000rs")
{
"HOME
delivery_type="Delivery - HOME DELIVER)
cost=cost+2000;
else
v7delivery_type="Delivery - SELF PICKUP";
cost=cost+0;
1
msgt=delivery_type+
—\n";
‘Total - "stotal;
JOptionPane.showMessageDialog(s,msg+"Total: "+cost);
//abel9.setText(Total);
//label5 setText(body_type);
//abel6.setText(body_colour);
//abel7 setText(wheel_mater
//label8.setText(delivery_type);
N;
class admin
(
public static void main(String args{])
{
welcomepage f1=new welcomepage();
}
3
1810.0UTPUT.
SCREEN SHOTS:
(&) car selection
Welcome to our garage view...
You can choose you dream car through this window...
Click next to start your selection...
NEXT
Fig.8.1.
19(S) ComboBox Example
Select body type of shape
Choose your colour
RED @25,000rs Ba
Select your wheels material
STEEL @30,000rs_ | w
Select your delivery type
HOME DELIVERY @....| ¥
CHECKOUT
Fig8.2.(&) comb
‘Select body type of shape
HATCHBACK @1,50...|_v
Message
@ Body -HATCHBACK
Colour -RED
Wheels - STEEL
Delivery - SELF PICKUP
Total: 205000
EXPLANATION:
Fig.8.1: Welcome box
HOME DELIVERY @...|-v
(CHECKOUT
Fig 8.3.
Fig.8.2:Car selection according to customer choice
'Fig.8.3:Billing message
2111. Conclusion
By using this program we can easily handle the car manufacturing system . By this we can
easily enquire the details of their choice. Hence, the desired output as per the given task is
obtained
REFERENCES:
+ Henry F Korth, Abraham Silberschatz, ‘Database system concepts”, McGrsw-Hill,
Internation editions, Computer S
‘ence Series (1991). Second Ed
+ Software Engineering McGrsw-Hill Internation editions,
+ wwwslideshare.net
+ www.google.com
+ hutp:/Awww. gktoday. in/reference/brief-history-of-Car manufacture-in-india/
+ http://en. wikipedia orgiwiki/Carmanufacture_in_India
22