Write a C++ program that asks the user to enter the password.

The password to this program is "password".

If the password is correct, display the following message:

"CORRECT!!"

"ACCESS GRANTED"

Else display:

"Incorrect Password"

"Please enter correct Password"

Use a do.......while loop to complete the above task.

Recommended Answers

All 4 Replies

This is your homework, not ours. We'll help if you have a specific question, as long as the specific question does not constitute "do it for me".

Member Avatar for iamthwee

Is it just me or any programming assignments getting dumbed down recently?

With the number of people posting just their homework maybe the instructors have noticed that and made the assignments easier to give us a break ;)

sheenalsingh, show us your attempt and ask us the problems you are facing. We'll help you out. Sorry, but as per the rules, we can't code it for you.
You can get help here
string comparision in c++

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.