Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

[Meter Voltage The figure below shows an electric circuit designed to measure th

ID: 3529798 • Letter: #

Question

[Meter Voltage The figure below shows an electric circuit designed to measure the temperature of the water in a beaker. The resistor R represents a temperature sensor enclosed in the beaker. The resistance R, in Ohm, is related to the temperature T, in degree C, by the equation R = R0 + kT where R0 = 50 and k = 0.5. The voltmeter displays the value of the voltage across the sensor vm = (R/Rs + R)Vs The voltage num indicates the temperature, T, of the water according to the equation T = Rs/k vm/vs - vm - R0/k = 150vm/20 - vm - 100 For example, when num = 11.43 V, as shown in the figure, the temperature of the water is T = 150(11.43)/20 - 11.43 - 100 = 100 degree C Write a C++ program that prints a table showing the meter voltage corresponding to water temperatures varying from 0 degree C to 100 degree C in increments of 10 degrees.

Explanation / Answer

#include<iostream>

using namespace std;

int main()

{

for(int i=0; i<=100; i = i+10)
{
double R = 50 + 0.5*i;
double Vm = (R/(75+R))*20;
cout << " water temperature is " << (i) << " and its meter voltage is " << (Vm) << endl;
}

return 0;
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote