
If you have any doubts, please give me comment...
#include<iostream>
#include<cmath>
using namespace std;
int main(){
int x, y, z, r1, r2, r3;
cin>>x>>y>>z;
r1 = 4*pow(x,3) - 5*pow(y,2) + 3*z;
r2 = r1 + 7*pow(x,3) - 2*pow(y,2) + 11*z;
r3 = r2 - 9*pow(x, 3) + 22*pow(y, 2) - 6*z;
cout<<"r1="<<r1<<endl;
cout<<"r2="<<r2<<endl;
cout<<"r3="<<r3<<endl;
return 0;
}

It’s a C++ question Then the output from the program should be : r1 = 2...
Write a C program named space_to_line.c that features a while loop that continuously reads input from the user one character at a time and then prints that character out. The exception is that if the user inputs a space character (‘ ‘), then a newline character (‘\n’) should be printed instead. This will format the output such that every word the user inputs is on its own line. Other than changing the spaces to newlines, the output should exactly match...
Assuming an ideal op-amp in the following circuit, find output voltage, Vo if R1= 2 K12, R2=8 KN, R3=3.9 KN, R4=6 KN, R5=18 K2, R6=4.4 KN, RL=12.5 KN, V1=1V, 12=0.5 mA and V3=3.4 V. R6 R1 R5 Vo + + RL R2 V1 R3 R4 + V3 Answer: LOV Using the above circuit, but consider the following component values: R1= 2 KO2 R2=8 K12, R3=3.6 K12, R4=6 K12, R5=16.9 KN, R6=15 KN, RL=10 KO, V1=1V, 12=0.5mA and V3=2V. What is...
Helloo Who can help with this problem Consider the following DLX assembler program: start: LW R1, 2020 (R0) ADD R2, R0, R0 ADD R5, R0, R0 loop: LW R3, 1000 (R2) ADDI R2, R2, # 4 SEQ R4, R1, R3 BEQZ R4, loop2 ADDI R5, R5, # 1 loop2: SEQI R4, R2, # 1000 BEQZ R4, loop end: SW 2000 (R0), R5 STOP Give in a short sentence what the program calculates And do not forget to comment each line
Modify the ARMSIM program to do the following: 1) output the square sum of the data 2) output the sum of all negatives and positives separately .text @ Direvtive .global _start @ declare global begining _start: LDR R1,=idx @ content of idx is length of Vec and now R1 is a counter. LDR R1,[R1] @ R1 is now the length of Vec. read inderectly LDR R2,=Vec @ R2 is the address of first element of vector MOV...
Please answer clearly
Question 2 The amplifier shown in Figure 2 has the following parameters: Kn(W/L)-1 mA/V2, V-1 V Determine a) Voltage gain (Vo/vi) b) Input resistance (R) c) Output resistance (Ro) d) Maximum output voltage swing so as the amplifier stays in saturation mode. Assume VDD-20 V, R1-2.5 ΚΩ, R2-1KQ, R3-0.5 ΚΩ, R4-5 MQ, R5_1ΜΩ. R4 R1 R5 R2 Ro R3
Question 2 The amplifier shown in Figure 2 has the following parameters: Kn(W/L)-1 mA/V2, V-1 V Determine a)...
Question 9: Circuit Analysis R4 R2 W R1 V6 R5 R3 (+) R7 8 2. If Vi 6 V and V6 18 V, find Let Ri, R2, and R5 4 0, but R3, R4, and R7 the value of I7.
2 part question?
In the circuit below R1 = 7.5 2, R2 = R3=5 N, and L = 31 mH. The battery supplies 12 V. S w R1 R3 + 上下 E R2 L ele (a) What is the current through the battery right after the switch is closed? Select one: a. 1.60 A b. 1.20 A c. 0.00 A d. 0.53 A e. 0.96 A In the circuit below R1 = 7.5 1, R2 = R3 = 5 1,...
Write a C++ program that will read in image data from the file "image.txt" and illustrate that image as ASCII art. The Image file will contain several lines, representing horizontal rows in the image, and each line will have several integers in the range 0-255. representing povels, separated by spaces. You should read this image data into a vector vector in Once you've read in the phel data, go through the image and print out each piel in the image...
Assuming an ideal op-amp in the following circuit, find output voltage, Vo if R1= 2 KS, R2=8 KN, R3=3.4 KA, R4=6 KN, R5=20 KN, R6=2.9 KN, RL=12.5 KN, V1=1V, 12=0.5 mA and V3=3.1 V. R6 R1 R5 VO + RL 12 R2 V1 R3 { R4 w V3 Answer: "V
Assuming an ideal op-amp in the following circuit, find output voltage, Vo if R1= 2 K2, R2=8 K2, R3=5.1 K2, R4=6 KN, R5=14 KN, R6=4.2 KS, RL=10.3 KS, V1=1V, 12=0.5 mA and V3=3.2 V. R6 R1 R5 Vo w + * RL + 12 R2 V1 R3 R4 V3 Answer: OV Using the above circuit, but consider the following component values: R1= 2 K12 R2=8 K2, R3=2.9 K2, R4=6 KI2, R5=10.8 K92, R6=15 KO, RL=10 K2, V1=1V, 12=0.5mA and V3=2V....