Question
All of the statements or questions below become True or False. Figure each of them out, show any intermediate steps (like ABC reduction) you took,
All of the statements or questions below become True or False. Figure each of them out, show any intermediate steps (like ABC reduction) you took, and then make a single string of F's and T's. That string is the final answer that you put at the top as indicated. For any question in English (6-15), convert it to pseudocode like (1-5) first.
For each of the statements below, use the following variables:
cats = 3, dogs = 4, money = 100.0, friends = 5
1) cats > 2 && dogs < 10
2) money == 10 || friends == 6
3) !(cats < dogs) && friends == 5
4) (2 * friends) + cats < dogs || (friends - dogs) == cats
5) cats == 3 && dogs == 4 || friends == 5 && money == 6
6) Would I have more cats than dogs if I doubled how many dogs I had?
9) Do I have enough money to buy shoes for my dogs at $14 a pair?
10) As I was going to St. Ives,
I met a man with seven wives,
Each wife had seven sacks,
Each sack had seven cats,
Each cat had seven kits:
Kits, cats, sacks, and wives,do I have any cats?
-- from 18th century nursery rhyme, not Die Hard
11) Can every friend have both a dog and a cat?
12) Friends cost $20, can I afford to have 7 friends?
13) If each friend stole a pet, would I still have a pet?
14) Do I have friends?
15) Do I have more friends than both cats and dogs?
7) If dogs eat 5 pounds of food a day and cats eat 1 pound,
and pet food costs $3.23 per pound, can I afford to feed all my pets for all of September?
8) If I split my money among my friends and they each split their money evenly amongst all the animals, would each animal get more than twenty five cents from each person?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started