Introduction to Programming Using Java Assignment, NUS, Singapore: Write a program that checks whether a string is a strong password or a weak password
University | National University of Singapore (NUS) |
Question 1
Write a program that checks whether a string is a strong password or a weak
password. The password rule is as follows: (20 Marks)
– A password must have at least eight characters.
– A password consists of only letters and digits.
– A password must contain at least two digits.
Write a program that prompts the user to enter a password and displays “strong password” if the rule is followed or “too simple password” otherwise.
Sample output:
Sample 1
Enter a string for the password: wewew43x
strong password
Sample 2
Enter a string for the password: 343a
too simple password
Hire a Professional Essay & Assignment Writer for completing your Academic Assessments
Seeking assistance with Introduction to Programming Using Java Assignment at the National University of Singapore (NUS)? Look no further! Our platform offers specialized guidance for GBA, individual assignments, and online assignment help for students in Singapore. Our experts provide top-notch Case Study Writing Help tailored to your needs. Get professional support to craft programs like the one required—ensuring strong password security. Trust us to ace your course while you focus on learning.
- ESG531 Circular Economy for a Sustainable Future Group-Based Assignment: Circular Transformation Roadmap for SMEs towards 2030
- Business Marketing Assignment: Showcasing Fresco Pizza Hub’s Competitive Advantage over MegaSlice Pizza
- ECE210 Advocacy and Collaborations with Families Assignment: Supporting Grieving Children Through Culturally Responsive and Family-Centred Practices
- ACC707 Accounting and Finance Assignment: Evaluating Investment Decisions, Budgeting Practices, and Financial Performance through Ratio Analysis
- NCO201 Learn to Learn, Learn for Life TMA01: Developing Self-Awareness and Strategies for Lifelong Learning
- PSS219 Public Safety and Security in Singapore Group-Based Assignment: Analyzing Ministry Strategies and Challenges from the 2025 Committee of Supply Debate
- MTH240 Engineering Mathematics I TMA: Applications of Linear Algebra in Engineering Problems and System Analysis
- Engaging Youth with IBM Skills Build Assignment: Developing Creative Approaches to Boost Skills and Career Prospects
- BUS368 Innovation Management and Digital Transformation Assignment: Managing Innovation and Uncertainty in Foldable, Trifold, and Stretchable Display Technologies
- BUS366 Assignment: Enhancing Process Efficiency and Recruitment Effectiveness through Lean Six Sigma Methodologies
UP TO 15 % DISCOUNT