answersLogoWhite

0

What else can I help you with?

Continue Learning about Engineering

What is the valid class declaration header for the derived class d with base classes b1 and b2 A class d public b1 public b2 B class d class b1 class b2 C class d public b1 b2 D class d b1 b2?

What is the valid class declaration header for the derived class d with base classes b1 and b2?A. class d : public b1, public b2 {/*...*/};B. class d : class b1, class b2 {/*...*/};C. class d : public b1, b2 {/*...*/};D. class d : b1, b2 {/*...*/};The answer is A, C and D.B is not valid because "class" is not a valid access specifier.All the others are valid because private access is the default when the access specifier is omitted. Note that if class D were declared using the struct prefix, inheritance would default to public access rather than private.


Design a State machine for Traffic Control at a Four point Junction?

/************************************************************** * This is main module for state machine of TrafficLight **************************************************************/ module TrafficLight(state, RedLight, GreenLight, YellowLight, clk, reset, malfunction, ready); input clk, reset, ready; //ready is high when maintenance of TrafficLight finished input malfunction; //system input malfunction when error occured output [1:0] state; output RedLight,GreenLight,YellowLight; //active-high output for Lights reg [1:0] state; //register to store current state reg RedLight,GreenLight,YellowLight; //define parameter or name of each state parameter redstate = 2'b00; parameter greenstate = 2'b01; parameter yellowstate = 2'b10; parameter maintenance = 2'b11; always@ (posedge reset or posedge clk) begin RedLight = (!state[1] & !state[0]); GreenLight = (!state[1] & state[0]); YellowLight = (state[1] & !state[0]); if(reset) begin state = redstate; //default state is RedLight on end else case(state) redstate: begin if(malfunction) state = maintenance; else state = greenstate; end greenstate: begin if(malfunction) state = maintenance; else state = yellowstate; end yellowstate: begin if(malfunction) state = maintenance; else state = redstate; end maintenance: begin if(ready) state = redstate; else state = maintenance; end endcase end endmodule /************************************************************** * This module is for testing and display outputs. **************************************************************/ module test_module; // declare test module reg clk, reset, malfunction, ready; wire [1:0] state; wire RedLight, GreenLight, YellowLight; parameter clockDelay = 50; TrafficLight myTrafficLight(state, RedLight, GreenLight, YellowLight, clk, reset, malfunction, ready); always begin #(clockDelay/2) clk = 0; #(clockDelay/2) clk = 1; end initial begin //$dumpfile("Trafficlight.dump"); //$dumpvars; $monitor ("stat= %b, RedLight = %b, Green = %b, YellowLight = %b",state, RedLight, GreenLight, YellowLight); $shm_open("db1.shm"); // Open a directory to store waveforms $shm_probe(state, RedLight, GreenLight, YellowLight, reset, malfunction, ready); // Specify any signals you want waveforms for #(clockDelay) reset = 1'b1; #(clockDelay) reset = 1'b0; #(clockDelay) malfunction = 1'b1; #(clockDelay) reset = 1'b0; #(clockDelay) malfunction = 1'b0; #(clockDelay) #(clockDelay) #(clockDelay) ready = 1'b1; #(clockDelay) ready = 1'b0; #(clockDelay) #(clockDelay) #(clockDelay) #(clockDelay) reset = 1'b1; #(clockDelay) reset = 1'b0; #(clockDelay) #(clockDelay) malfunction = 1'b1; #(clockDelay) malfunction = 1'b0; #(clockDelay) #(clockDelay) #(clockDelay) ready = 1'b1; #(clockDelay) ready = 1'b0; #(80*clockDelay) $finish; end endmodule


What is the value of resistance between b1 and b2?

To determine the value of resistance between b1 and b2, you need to know the specific circuit configuration and the resistances involved. If b1 and b2 are connected through resistors in series or parallel, you can apply the appropriate formulas: for series, ( R_{total} = R_1 + R_2 + ... ); for parallel, ( \frac{1}{R_{total}} = \frac{1}{R_1} + \frac{1}{R_2} + ... ). Without additional information about the circuit, the exact value cannot be determined.


How do you wire a star wye motor?

This is better explained through a wiring diagram. AC 3 phase motor has three windings. Each winding has two terminals. Lets us denote each winding as follows. Winding 1 - A1 and A2, Winding 2 - B1 and B2. Winding 3 - C1 and C2. Main incoming supply, 3 phases, are denoted by R, Y and B. Connect R to A1, Y to B1, B to C1. Connect A2,B2 and C2 to a common point (neutral). I strongly suggest to refer to motor name plate, its wiring diagram. You need to also check the direction of rotation.


How do you abbreviate 'efficient'?

the abbreviation is just a capital E. "E." Abbreviations.com. STANDS4 LLC, 2010. 21 January. 2010. http://www.abbreviations.com/b1.aspx?KEY=354461

Related Questions

What is the equivalent to B1 and B2 Engineer for the FAA?

The equivalent classifications for B1 and B2 Engineers in the FAA framework are typically the Airframe and Powerplant (A&P) mechanic certifications. A B1 Engineer focuses on the mechanical and structural aspects of aircraft, aligning with the Airframe certification, while a B2 Engineer specializes in avionics, corresponding with the Powerplant certification. Both certifications are essential for ensuring compliance with safety and operational standards in aviation.


What is a B1 or B2?

B1 and B2 refer to levels of language proficiency in the Common European Framework of Reference for Languages (CEFR). B1 represents an intermediate level, indicating that a person can communicate in familiar situations and handle most daily interactions. B2 represents an upper-intermediate level, indicating a person can engage in more complex conversations and understand a wide range of topics.


What does the code b1 mean on a 2012 hunda fit?

Maintenance is due. Read the owners manual.


At the Mizzou vs Iowa state football game in Columbia on the 27 what was the aircraft that flew over the stadium?

B1 Bomber


Is b1 free archiver safe?

I use B1 Free Archiver myself and should admit I've never had any problems with it, safety included. Maybe its better to download it from B1 Free Archiver website - b1.org to be completely sure.


What is 2007 Odyssey maintenance code B1?

The maintenance code B1 for a 2007 Honda Odyssey indicates two specific maintenance tasks: an oil change and a tire rotation. The "B" signifies that the engine oil and filter need to be replaced, while the "1" indicates that the tires should be rotated. Following this code helps ensure the vehicle remains in good condition and performs optimally. Regular maintenance is essential for the longevity and reliability of the vehicle.


How do you reset the B1 code on a 2008 Honda Odyssey?

Honda's maintenance minder says to, "refer to Civic Sedan's owner's manual."


Which combat is better the b1 b2 b3 or virus?

B2 DA bomb obviously!


What is the meaning of maintenance B16?

B1 means you need to change the oil/filter. The 6 refers to changing the rear differential fluid if it is a 4wd.


What is a B1?

B1 in science is you and genes


What does B1 on a 2013 Honda CRV mean?

B1 on a 2013 Honda CR-V refers to a specific maintenance reminder code indicating that the vehicle requires certain services. The "B" signifies that an oil change and inspection of various components are needed, while the "1" indicates that the tires should be rotated. This code is part of Honda's maintenance minder system, which helps drivers keep track of necessary maintenance tasks based on driving conditions and vehicle usage.


How do you write an excel formula to find the gross margin percent if A1 is cost and B1 is retail?

"=((B1-A1)/B1)*100" alternatively if you format the cell as a %, it would just be "=(b1-a1)/b1"