Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft Visual Basic 2005 For Windows Mobile Web Office And Database Applications Comprehensive

Authors: Gary B. Shelly, Thomas J. Cashman, Corinne Hoisington

1st Edition

0619254823, 978-0619254827

More Books

Students also viewed these Databases questions

Question

=+8. Why is productivity important?

Answered: 1 week ago

Question

=+ 9. What is inflation and what causes it?

Answered: 1 week ago