182k views
6 votes
Define the following propositions: c: I will return to college. j: I will get a job. Translate the following English sentences into logical expressions using the definitions above: (a) Not getting a job is a sufficient condition for me to return to college. (b) If I return to college, then I won't get a job.

1 Answer

12 votes

Answer:

Answered below

Step-by-step explanation:

//Program is written in Kotlin programming language

//Initialize Boolean variables

var getJob:Boolean = true

var returnToCollege: Boolean = false

//First sentence. If no job then return to //college.

if( !getJob ) {

returnToCollege = true

}

//Second sentence. If you have returned to college then you cannot get a job.

if (returnToCollege == true){

getJob = false

}

User Lskrinjar
by
4.2k points