Ask Question
21 June, 03:11

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.

+5
Answers (2)
  1. 21 June, 04:19
    0
    If workExperience > = 2 or CollegeDegree is true:

    print "Application accepted"

    else:

    print "Application denied"
  2. 21 June, 05:25
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers