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
Compute the pressure drop of 30°c air flowing with a mean velocity of 8 m/s in a circular sheet-metal duct 300 mm in diameter and 15 m long. use a friction factor, f 0.02, and pair = 1.1644 kg/m a. 37.26 pa b. 25.27 pa n c. 29.34 pa d. 30.52 pa
Answers: 1
question
Engineering, 04.07.2019 18:10
The flow rate of air through a through a pipe is 0.02 m5/s. a pitot static tube is placed in the flow. the radius of the pitot static tube is 1 mm. assuming the flow to be steady and the air to be at 300k, calculate the difference in total and static pressure if the diameter of the pipe is: (a) d 0.1 m d 0.05 m (c) d 0.01 m
Answers: 2
question
Engineering, 04.07.2019 19:10
The short distance from the objective lens to the object causes problems at high magnification. which of the following is the most serious? a. cleaning the object surface b. positioning the object c. reflection from the object surface. d. illumination of the object
Answers: 1
question
Engineering, 06.07.2019 02:30
Plot schematically the tensile stress versus strain curves for a typical thermoplastic material at a temperature below its glass transition temperature (tg and at a temperature above its tg, respectively. do the same for a typical thermosetting material. list in a table any differences or similarities between the two materials at t> tg and t < tg, respectively, and relate them to the structures of the two types of polymers
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, 24.11.2019 15:31
Questions on the website: 13722362