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, 04.07.2019 18:10
Manometers are good examples of measuring instruments, nowadays they are not as common as before. a)-capacitive probe gauges b)-gravitational gauges deformation ) gauges d)-digital gauges
Answers: 1
question
Engineering, 04.07.2019 18:20
Wiy doeres rere okhn a pump whon working betwon the same pressure range?
Answers: 2
question
Engineering, 04.07.2019 19:10
What is a monomer? how do they form a ploymer from the view point of chemical bonding?
Answers: 1
question
Engineering, 04.07.2019 19:10
Ahelical coil spring has a mean diameter of 50 mm, a wire diameter of 5.5 mm and is wound with a pitch of 10 mm. the spring steel has an ultimate strength of 1250 mpa. find the force needed to compress the spring solid and the wire stress in this condition. state whether the spring will return to its initial length.
Answers: 1
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, 11.12.2021 01:10
question
Advanced Placement (AP), 11.12.2021 01:10
question
Computers and Technology, 11.12.2021 01:10
Questions on the website: 13722361