-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShowroom.java
More file actions
36 lines (33 loc) · 1.3 KB
/
Showroom.java
File metadata and controls
36 lines (33 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import java.sql.SQLOutput;
import java.util.Scanner;
public class Showroom implements utility{
String showroom_name;
String showroom_address;
int total_employees;
int total_cars_in_stock = 0;
String manager_name;
@Override
public void get_details() {
System.out.println("Showroom Name: "+showroom_name);
System.out.println("Showroom Address: "+showroom_address);
System.out.println("Manager Name: "+manager_name);
System.out.println("Total Employees: "+total_employees);
System.out.println("Total Cars In Stock: "+total_cars_in_stock);
}
@Override
public void set_details(){
Scanner sc = new Scanner(System.in);
System.out.println("======================= *** ENTER SHOWROOM DETAILS *** =======================");
System.out.println();
System.out.print("SHOWROOM NAME: ");
showroom_name = sc.nextLine();
System.out.print(("SHOWROOM ADDRESS: "));
showroom_address = sc.nextLine();
System.out.print("MANAGER NAME: ");
manager_name = sc.nextLine();
System.out.print("TOTAL NO OF EMPLOYEES: ");
total_employees = sc.nextInt();
System.out.print("TOTAL CARS IN STOCK: ");
total_cars_in_stock = sc.nextInt();
}
}