Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I NEED ANSWER ASAP PLEASE!!!! i meed answer asap!! task 0 and 1 are questions. Task 0- (1 Var mux): Implement the functionality of a

I NEED ANSWER ASAP PLEASE!!!!
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
i meed answer asap!! task 0 and 1 are questions.
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Task 0- (1 Var mux): Implement the functionality of a 1 var multiplexer. A 1 var multiplexer has 1 selector line, 2 input lines, and 1 output line. The selector line determines which input will be sent to the output. Because a bit can be either 0 or 1 , that means that a selector line can choose between two inputs. Selector line: so 0 would stand for the first input(i0) 1 would stand for the second input(i1) Task 1- (2 Var mux): Implement the functionality of a 2 var multiplexer. A 2 var multiplexer has 2 selector lines, 4 input lines, and 1 output line. The selector line determines which input will be sent to the output. Because a bit can be either 0 or 1 , that means that a selector line can choose between two inputs. When there are two selector lines, it can choose one input out of four possible inputs to send to the output line. \#include \#include \#include I/ BEGIN STRINGBUILDER IMPLEMENTATION I/ Don't edit the stringbuilder implementation. /I This code is a very rudimentary stringbuilder-like implementation II To create a new stringbuilder, use the following line of code II II stringbuilder sb=newSsb(); II II If you want to append a character to the stringbuilder, use the II following line of code. Replace whatever character you want to II append where the ' a ' is. II II sb_append_char(sb, 'a'); II II Though there are some other functions that might be useful to you, I/ the driver code provided uses the functions, so there is no need I/ to use them manually. typedef struct \{ char** cars; size t" len; size_t t alloc_size; \} stringbuilder; stringbuilder new_sb() \{ stringbuilder sb; sb.cars = malloc(sizeof(char*)); "sb.cars = malloc( 8 *sizeof(char ); ("sb.cars) [0]=0; sb.len = malloc ( sizeof(size t)); "sb.len =0; sb.alloc_size = malloc(sizeof(size _t) ); char* newcars = malloc((*sb.alloc_size)*sizeof(char)); for (int i=0;i

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Application Development And Administration

Authors: Michael V. Mannino

4th Edition

0615231047, 978-0615231044

More Books

Students also viewed these Databases questions