subject

#include int main(){unsigned int a, b, c, d; unsigned int f; /* print header for k-map. */printf(" bc \n"); printf(" 00 01 11 10 \n"); printf(" "); /* row-printing loop */for (a = 0; 2 > a; a = a + 1) {printf("a=%u | ", a); /* loop over input variable b in binary order. */for (b = 0; 2 > b; b = b + 1) { /* loop over d in binary order.*/for (d = 0; 2 > d; d = d + 1) {/* use variables b and d to calculate ** input variable c (iterated in ** gray code order). *//* calculate c here. *//* calculate and print one k-map entry ** (function f(a, b,c) ). *//* insert code here. */}} /* end of row reached: print a newline character. */printf("\n"); }return 0; }the above program provides some initial code to generate a 3-variable k-map for a 3-variable boolean function.
complete the program above. for your portion of the code at "calculate c here", you must begin by ensuring that the variable c follows gray code order and runs from 0 to 1 when b=0, but from 1 to 0 when b=1. at "insert code here", you must then calculate the function f(a, b,c) = (a'+b')(b'+c')(a'+c'). do not otherwise change the program. for full points, use c's bitwise operators (& , |, ^ and ~) to perform both of these calculations. print/screenshot your code and attach it to your written homework print/screenshot and attach the output of your program; that is, the k-map for f(a, b,c) = (a'+b')(b'+c')(a'+c').

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 14:30
Create a pseudocode design to prompt a student for their student id and the titles of the three classes they want to add. the solution should display the student’s id and a total bill. • bill a student using the following rules: o students can only add up to 3 classes at a time.
Answers: 3
question
Computers and Technology, 23.06.2019 13:30
Jace needs to answer a question on square roots to win a quiz. how can he use a spreadsheet to find the square root of 786? a. use the functions round and count b. create a table and chart c. use the function sqrt d. use the function now
Answers: 3
question
Computers and Technology, 23.06.2019 19:00
Write a program that displays the following menu: geometry calculator 1. calculate the area of a circle 2. calculate the area of a rectangle 3. calculate the area of a triangle 4. quit enter your choice (1-4): if the user enters 1, the program should ask for the radius of the circle and then display its area. use the following formula: area = ď€(the square of r) use 3.14159 for ď€ and the radius of the circle for r. if the user enters 2, the program should ask for the length and width of the rectangle and then display the rectangle’s area. use the following formula: area = length * width if the user enters 3, the program should ask for the length of the triangle’s base and its height, and then display its area. use the following formula: area = base * height * .5 if the user enters 4, the program should end. input validation: display an error message if the user enters a number outside the range of 1 through 4 when selecting an item from the menu. do not accept negative values for the circle’s radius, the rectangle’s length or width, or the triangle’s base or height. note: if the user enters an improper menu choice (1-4), the program prints "the valid choices are 1 through 4. run the program again and select one of those." if the user enters a negative radius, the program prints "the radius can not be less than zero." if the user enters a negative value for height or base, the program prints "only enter positive values for base and height."
Answers: 1
question
Computers and Technology, 23.06.2019 21:00
Uget brainliest if accurate mary has been given the responsibility of hiring a person for the position of a software testing officer. which management function would mary achieve this responsibility?
Answers: 1
You know the right answer?
#include int main(){unsigned int a, b, c, d; unsigned int f; /* print header for k-map. */printf(" b...
Questions
question
Mathematics, 14.10.2019 08:02
question
Chemistry, 14.10.2019 08:02
question
Mathematics, 14.10.2019 08:02
Questions on the website: 13722367