Engineering
Engineering, 23.09.2020 14:01, williams6129

You will implement a simple digital circuit to compute total profits made by an animal farm. Although the owner, John, has a lot of experience running the farm, he does not have the time to compute the profits and would like to have a device which can compute the profits for him based on the kinds of animals that he is raising. John has to follow the set of guidelines below for setting up the farm. 1. He can raise cows, sheep, hogs, and chickens on his farm but cannot raise all at the same time.
2. The farm does not have enough space to raise more than 2 different types of animals. Therefore, his farm never has more than 2 types of animals at any particular time.
3. Each type of the animal earns a certain level of profit for the farm. Cows earn him a profit of 4 units, sheep earn him a profit of 2 units, hogs earn a profit of 3 units and chickens being small livestock earn him a profit of 1 unit.
4. The total profit of the farm is the sum of profits made by each type of animal that is raised with the exceptions provided below.
5. Hogs and chickens have very different food, so John needs to spend extra for the transportation of food for each separately. Therefore, if he plans to raise hogs and chickens together then his profits go down by 1 unit.
6. Similarly, if he raises cows and chickens his profits go down by 1 unit because of extra transportation costs. Additionally, cows have a tendency to kill some chickens on the farm. This further reduces his profits by 1 unit.
7. However, cows and sheep do very well if raised together. They have many similarities especially with respect to the kind of food they eat. Also due to the huge demand for sheep and cows, the profit they make goes up by 1 unit if cows and sheep are reared together.
Your objective is to design a digital circuit which takes in the types of animals on the farm and outputs a binary number representing the corresponding profit. The four input bits are I (Chicken), S (Sheep), C (Cow), and H (Hog), and the output bits are, P2, P1, P0, such that P2 is the most significant bit. Begin by creating a truth table containing all of the input combinations. Because there are four input bits, your table should contain 24 = 16 rows. Then fill in the output columns of your truth table based on the guidelines provided above. For outputs that are not possible due to restrictions on the farm, insert

answer
Answers: 2

Other questions on the subject: Engineering

image
Engineering, 03.07.2019 14:10, aliceohern
The y form of iron is known as: a) ferrite b) cementite c) perlite d) austenite
Answers: 3
image
Engineering, 03.07.2019 15:10, breannaasmith1122
Two flowing streams of argon gas are adiabatically mixed to form a single flow/stream. one stream is 1.5 kg/s at 400 kpa and 200 c while the second stream is 2kg/s at 500 kpa and 100 ? . it is stated that the exit state of the mixed single flow of argon gas is 150 c and 300 kpa. assuming there is no work output or input during the mixing process, does this process violate either the first or the second law or both? explain and state all your assumptions.
Answers: 1
image
Engineering, 04.07.2019 12:10, Ryantimes2
On a average work day more than work place firs are reorted
Answers: 1
image
Engineering, 04.07.2019 18:10, winterblanco
The higher the astm grain-size number, the coarser the grain is. a)-true b)-false
Answers: 3
Do you know the correct answer?
You will implement a simple digital circuit to compute total profits made by an animal farm. Althoug...

Questions in other subjects:

Konu
Mathematics, 14.12.2019 11:31
Konu
Mathematics, 14.12.2019 11:31