Question
Develop a program to manage SmartPhone. A smartphone includes: id(String), name(String), OS (OperationSystem), pin (PIN). The OperationSystem includes: name(String), version(String). PIN includes hours(int), brand(String), When
Develop a program to manage SmartPhone. A smartphone includes: id(String), name(String), OS (OperationSystem), pin (PIN). The OperationSystem includes: name(String), version(String). PIN includes hours(int), brand(String),
When the main method runs, it display a menu:
1. Create a smartphone
2. Display a smartphone
3. Update version of OS
4. Change a new pin
5. Exit
Test case:
1. Create a smartphone
2. Display a smartphone
3. Update version of OS
4. Change a new pin
5. Exit
Choose: 1
Enter id: 1
Enter name: iphone
Enter OSs name: iOS
Enter OSs version: 1.1.1.1
Enter Pins hours: 12
Enter Pins brand: china
1. Create a smartphone
2. Display a smartphone
3. Update version of OS
4. Change a new pin
5. Exit
Choose: 2
Smartphone: 1-iphone-iOS-1.1.1.1-12-china
1. Create a smartphone
2. Display a smartphone
3. Update version of OS
4. Change a new pin
5. Exit
Choose: 3
OSname: android
OSversion:1.1.1.2
Smartphone: 1-iphone-android-1.1.1.2-12-china
1. Create a smartphone
2. Display a smartphone
3. Update version of OS
4. Change a new pin
5. Exit
Choose: 4
Enter new pin hours: 24
Enter new pins brand: ThaiLand
Smartphone: 1-iphone-android-1.1.1.2-24-ThaiLand
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started