Ask Question

Write an if statement that prints the message "Application accepted" if the variable workExperience is greater than or equal to 2 or the variable hasCollegeDegree is true.

+4
Answers (2)
  1. Today, 07:43
    0
    If workExperience > = 2 or CollegeDegree is true:

    print "Application accepted"

    else:

    print "Application denied"
  2. Today, 07:53
    0
    if workExperience>=2 or hasCollegeDegree==True:

    print ("Application accepted")

    Explanation:

    In the first line of code, we wrote an if statement that allows us to print a message if and only if the int variable workExperience is greater than 2 or the bool variable workExperience is True In the second line of code, we print the message Application accepted if the if-statement evaluated to True

    Note: This code was written in python but you can extend the same concept to any programing language using if, comparison operation, boolean operators and print function.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Write an if statement that prints the message "Application accepted" if the variable workExperience is greater than or equal to 2 or the ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers