A secure C++ implementation of a mobile phone management system with password protection and balance tracking capabilities. A Mobile Management System where the user sets up a phone, locks/unlocks it with a password, checks phone info, performs a recharge, and makes calls.
-
Secure Phone Management
- Password-based locking system
- Failed attempt tracking
- Automatic blocking after multiple failed attempts
- Secure password change functionality
-
Balance Management
- Real-time balance tracking
- Recharge capability
- Per-minute call cost calculation (0.5 Taka/minute)
- Low balance alerts
-
User Information
- Store owner details
- Mobile number management
- OS information
- Detailed information display
- C++ Compiler (GCC 7.0+)
- Make (optional, for build automation)
- Basic understanding of terminal/command line
- Clone the repository
git clone https://github.com/yourusername/Mobile-Management-System-CPP.git
cd Mobile-Management-System-CPP
- Compile the project
g++ -o mobile mobile_management.cpp
- Run the program
./mobile_management
// Create a new mobile phone instance
Mobile phone;
// Set up basic information
phone.setOwnerName("Ahnaf Hossain");
phone.setMobileNumber("01712345678");
phone.setOsName("Android");
// Set password and manage security
phone.setPassword(1234);
phone.unlock(1234); // Unlock with password
// Perform operations
phone.recharge(100);
phone.callSomeone(10); // 10-minute call
phone.showInfo();
- Maximum 3 failed password attempts
- 30-second blocking period after maximum attempts
- Automatic locking after password change
- Failed attempts reset after successful unlock
class Mobile {
private:
string ownerName;
string mobileNumber;
double mobileBalance;
string osName;
bool lockStatus;
int password;
int failedAttempts;
public:
// Constructors and methods
...
};
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'feat: add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE.md file for details
MD Ahnaf Hossain - ahnaf-hossain2
- Inspired by modern mobile phone security systems
- Built as part of C++ learning journey