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

Shared with
My Assignment Help SG Editorial Team
A student shared this brief with our team; personal details have been removed. Our editorial team works on tasks like this and can guide you on how to approach it.
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.
- HS8738 Gerontological Nursing Assignment 2026: Ageing in Place and Singapore’s Action Plan for Successful Ageing | NYP
- PP5001 Creative Helping Practices Assignment Brief: Critical Evaluation of Green and Blue Spaces (3,000 Words)
- ANL252 Python for Data Analytics ECA July 2026: Payment Delay Data Cleaning, Charts and Regression | SUSS
- EG7060 Mental Wealth: Professional Life Coursework 2026: Engineering Management Case Study Report | UEL at LSBF
- SOC252 Religion and Society ECA July 2026: AI Agents and Religious Authority Essay | SUSS
- Information Studies Written Report: Critiquing a ChatGPT Essay on Values, Ethics and IPR | NTU
- BML701 Changing Context of Work: HR&OD Business Report on PESTLE, 6Ps and Change
- ABS103 ECA July 2026: “A Day in the Life” Intelligence Video and Reflection | SUSS
- ICT340 NEA Hawker Centre Inspection ECA July 2026: Application Analysis and Design | SUSS
- Social and New Media Written Report (40%): Website Message and Method Analysis with Strategic Recommendations | Murdoch
