subject
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

ansver
Answers: 2

Another question on Engineering

question
Engineering, 03.07.2019 15:10
If you were designing a bumper for a car, would you prefer it to exhibit elastic or plastic deformation? why? consider the functions of a bumper in both a minor "fender-bender" and a major collision.
Answers: 1
question
Engineering, 04.07.2019 18:10
Water at the rate of 1 kg/s is forced through a tube with a 2.5 cm inner diameter. the inlet water temperature is 15°c, and the outlet water temperature is 50°c. the tube wall temperature is 14°c higher than the local water temperature all along the length of the tube. what is the length of the tube?
Answers: 3
question
Engineering, 04.07.2019 18:20
Determine the damped natural frequencies and the steady state response of a decoupled damped forced two degrees of freedom system. 10ä1 + 2q1 20q1 10 cos t; 10q2 +4q2 + 40q2 10 cos t
Answers: 3
question
Engineering, 04.07.2019 19:20
Acompressor compresses a gas, a pump compresses a liquid. for a given pressure ratio, why does it take more work to compress a gas in a compressor than a liquid in a pump? a)- for a given pressure ratio the average specific volume for a gas is much higher than the average specific volume for a liquid. b)- there is no difference. the only difference is the amount of heat generated (not work) c)- for a given pressure ratio the average volurge for a gas is much higher than the average volume for a liquid. d)-there is no difference
Answers: 3
You know the right answer?
You will implement a simple digital circuit to compute total profits made by an animal farm. Althoug...
Questions
question
Mathematics, 28.11.2020 01:20
question
Physics, 28.11.2020 01:20
question
Mathematics, 28.11.2020 01:20