The objectives of this assignment include the understanding of if…

Question Answered step-by-step The objectives of this assignment include the understanding of if… The objectives of this assignment include the understanding of if statements, loops, input, output and strings.1. a program that prompts the user for a password. The password that must be entered is “cmput101”. If the user enters a different password, the program will continue to prompt the user for the password. If the user enters the correct the password, the program will print “Logging in…” and will then exit. You may implement your program with a while loop and use the not operator.Sample runs:Enter your password: cmput303 Enter your password: math313 Enter your password: spring2020 Enter your password: cmput101 Logging in…2. a program that prompts the user for a fruit name. If the user enters “apple”, “pear”, or “berry”, the program will print “We grow” followed by the fruit name that the user entered. But if the user enters a different string, the program will print “We don’t grow this fruit!”. You may use an if statement and the or operator.4 Sample runs:Enter a fruit name: apple We grow appleEnter a fruit name: pear We grow pearEnter a fruit name: berry We grow berryEnter a fruit name: mango We don’t grow this fruit! Computer Science Engineering & Technology Python Programming CMPUT 101 Share QuestionEmailCopy link Comments (0)