Computers and Technology, 08.02.2021 20:10 zoebtharpe
Write a script that creates 3 numerical variables describing the dimensions of a pyramid in meters: - The length of the base of the pyramid should be 5 - The width of the base of the pyramid should be 10 - The height of the pyramid should be 4.5 Then write another line of code that creates a variable named volume that contains the volume of the pyramid in meters squared. Note that the volume of a pyramid is the length times the width times the height divided by 3. Remember that units are not something that can be stored in numerical variables, and are just for your reference.
Answers: 2
Computers and Technology, 21.06.2019 17:10, jasoncarter
3. consider the following class definitions: class smart class supersmart: public smart { { public: public: void print() const; void print() const; void set(int, int); void set(int, int, int); int sum(); int manipulate(); smart(); supersmart(); smart(int, int); supersmart(int, int, int); private: private: int x; int z; int y; int secret(); }; }; . which private members, if any, of smart are public members of supersmart? a. which members, functions, and/or data of the class smart are directly accessible in class supersmart?
Answers: 2
Computers and Technology, 22.06.2019 23:50, Emptypockets451
You need to design a circuit that implements the functions in the following table: s0 s1 function0 0 a + 10 1 a – b1 0 a + b1 1 a – 1s0 and s1 are 1-bit control inputs to select the function of the circuit. inputs a and b are 4-bitnumbers in 2s complement form. the output is also a 4-bit number in 2s complement form. you are allowed to use only one ttl 7483 4-bit adder to implement all the functions. but anynumber of other components (except the adder) can be used. hint: design a combinational logic circuit to modify the input b and the “carry input” of theadder depending on the control inputs s0 and s1.important: lab grade will depend on the working of the circuit & will be checked of by your labinstructor.1. is the output valid for the following input combinations: a. s0 = 0, s1 = 0, a = 7, b = 3? b. s0 = 0, s1 = 1, a = 7, b = 3? c. s0 = 1, s1 = 0, a = -4, b = -5? d. s0 = 1, s1 = 1, a = -8, b = 6? 2. what is the range of inputs (for both a and b) that will produce the valid output for all the functions?
Answers: 3
Write a script that creates 3 numerical variables describing the dimensions of a pyramid in meters:...
History, 18.09.2020 19:01
Mathematics, 18.09.2020 19:01
Mathematics, 18.09.2020 19:01
History, 18.09.2020 19:01
Biology, 18.09.2020 19:01
Mathematics, 18.09.2020 19:01
Chemistry, 18.09.2020 19:01
Mathematics, 18.09.2020 19:01
Mathematics, 18.09.2020 19:01
Spanish, 18.09.2020 19:01