Let s denote Leo will study; .t denote Vahid will study; p denote Leo will...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Let s denote "Leo will study"; .t denote "Vahid will study"; • p denote "Leo will pass the class"; ● 9 denote "Vahid will pass the class". Write a propositional formula for "Both Leo and Vahid will study but only one of them will pass the class." Implement your proposition in Python syntax using only operators and, or, not and parentheses. Submit a file named p2.py Problem 3. (5 points) Alice, Bob, Chloe, and David are friends trying to decide whether to go on a hike or go to a movie next weekend. Alice is recovering from an ankle injury. They will hike if Alice's ankle is well by the weekend, and the majority of Bob, Chloe, and David want to hike; otherwise, they will go to a movie. Let the predicate a be True if Alice's ankle is well and False otherwise. Let predicates b, c, and d be True if Bob, Chloe, and David, respectively, prefer to hike, and False otherwise. Write a propositional formula that is True if they will hike, and False if they will go to a movie. Implement your proposition in Python syntax using only operators and, or, not and parentheses. Submit a file named p3.py Problem 4. (10 points) In this problem, individual propositions will no longer be single variables, but rather equalities and inequalities. For example, a formula for "x is greater than 1 and at most 17 or is equal to 25" will look like (x > 1 and x <= 17) or x == 25 Note the following Python symbols for equalities and inequalities (pay particular attention to the fact that equality takes two equal signs): English equal to not equal to greater than less that at least (or "greater than or equal to") at most (or "less than or equal to") Math Python II AVAI VI == != < >= <= Write propositional formulas for the following propositions. a) x is positive or at most -100. Implement your proposition in Python syntax using only operators and, or, not, parentheses and the operators mentioned in the above table. Submit a file named p4a.py b) x is not 0 or 1. Implement your proposition in Python syntax using only operators and, or, not, parentheses and the operators mentioned in the above table. Submit a file named p4b.py Let s denote "Leo will study"; .t denote "Vahid will study"; • p denote "Leo will pass the class"; ● 9 denote "Vahid will pass the class". Write a propositional formula for "Both Leo and Vahid will study but only one of them will pass the class." Implement your proposition in Python syntax using only operators and, or, not and parentheses. Submit a file named p2.py Problem 3. (5 points) Alice, Bob, Chloe, and David are friends trying to decide whether to go on a hike or go to a movie next weekend. Alice is recovering from an ankle injury. They will hike if Alice's ankle is well by the weekend, and the majority of Bob, Chloe, and David want to hike; otherwise, they will go to a movie. Let the predicate a be True if Alice's ankle is well and False otherwise. Let predicates b, c, and d be True if Bob, Chloe, and David, respectively, prefer to hike, and False otherwise. Write a propositional formula that is True if they will hike, and False if they will go to a movie. Implement your proposition in Python syntax using only operators and, or, not and parentheses. Submit a file named p3.py Problem 4. (10 points) In this problem, individual propositions will no longer be single variables, but rather equalities and inequalities. For example, a formula for "x is greater than 1 and at most 17 or is equal to 25" will look like (x > 1 and x <= 17) or x == 25 Note the following Python symbols for equalities and inequalities (pay particular attention to the fact that equality takes two equal signs): English equal to not equal to greater than less that at least (or "greater than or equal to") at most (or "less than or equal to") Math Python II AVAI VI == != < >= <= Write propositional formulas for the following propositions. a) x is positive or at most -100. Implement your proposition in Python syntax using only operators and, or, not, parentheses and the operators mentioned in the above table. Submit a file named p4a.py b) x is not 0 or 1. Implement your proposition in Python syntax using only operators and, or, not, parentheses and the operators mentioned in the above table. Submit a file named p4b.py
Expert Answer:
Answer rating: 100% (QA)
s True Leo will study t True Vahid will study p False Le... View the full answer
Related Book For
Microeconomics An Intuitive Approach with Calculus
ISBN: 978-0538453257
1st edition
Authors: Thomas Nechyba
Posted Date:
Students also viewed these programming questions
-
KYC's stock price can go up by 15 percent every year, or down by 10 percent. Both outcomes are equally likely. The risk free rate is 5 percent, and the current stock price of KYC is 100. (a) Price a...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
In what circumstances have courts opted to use the substantial-factor test rather than the but-for test?
-
X and Y are about to start an online ad placement service that they will conduct as a partnership. X is contributing substantially fewer tangible assets to the partnership than Y is contributing, but...
-
Exhaust gases from a manufacturing plant are being discharged through a 10-m-tall exhaust stack with outer diameter of 1 m. The exhaust gases are discharged at a rate of 1.2 kg/s, while temperature...
-
Use Laplace transforms to solve the following initial value problems. Where possible, describe the solution behavior in terms of oscillation and decay. a. \(y^{\prime \prime}-5 y^{\prime}+6 y=0,...
-
Subsequent Events your firm has been engaged to examine the financial statements of Alma den Corporation for the year 2010. The bookkeeper who maintains the financial records has prepared all the...
-
Cache Creek Manufacturing Company is expected to pay a dividend of $1.5 in the upcoming year. Dividends are expected to grow at the rate of 9% per year. The risk-free rate of return is 1%, and the...
-
Use mesh analysis to find ix in Fig. 13.80, Where is = 4 cos(600t) A and vs = 110 cos(600t + 30º) 12 F 150 800 mH 600 mH
-
Hiring a celebrity to endorse a product is most likely an attempt to enhance.....? O Perceived quality Reliability quality Aesthetic quality O Conformance quality O Performance quality
-
In more recent times, one of the major challenges in staffing the front-desk is labor shortages or being short-staffed. It can be difficult to fill a shift or a front-office position when there are...
-
Carry trades in the foreign exchange markets are currently a widely used practice, not only by fund managers and traders, but also by individual investors. What is meant by carry trade in the foreign...
-
As an Fire Officer, unforeseen challenges are going to constitute the bulk of your workdays. It might be something big, like a long-committed employee who decided to quit, or something small, like a...
-
Explain Hester's concept of Fairness as a principle to guide urban design and reflect on how you think this characteristic is incorporated or not in the community Urban habitation where ecological...
-
Define challenges to innovation. Define barriers to innovation. Listed below are six different practices in organisations. Discuss how these practices can overcome challenges and barriers to...
-
A government's department of transportation reported that in 2009, airline A led all domestic airlines in on-time arrivals for domestic flights, with a rate of 84.4%. a)What is the probability that...
-
Discuss whether responsible human resources management should apply different standards for the home company and suppliers, for developed countries and developing countries, and for large companies...
-
School Vouchers and the Private School Market: In the U.S., private schools charge tuition and compete against public schools that do not. One policy proposal that is often discussed involves...
-
We have suggested in this chapter that labor economists believe that labor supply curves typically slope up when wages are low and down when wages are high. This is sometimes referred to as a...
-
Federal anti-trust laws prohibit many forms of collusion in price setting between firms. Labor unions, however, are exempt from anti-trust laws and are allowed to use market power to raise wages for...
-
What is meant by "washing checks?"
-
Describe a lapping scheme and an audit step to discover lapping.
-
What is a cut-off bank reconciliation?
Study smarter with the SolutionInn App