The time constant to reach full charge in an RL circuit is 0.05 ms.
Explanation:
To find the time constant,
The time constant for an RL circuit is defined by τ = L/R.
The given data is
L= 5 H
R= 100 ohms
by using the formula,
τ = L/R
= 5/100
= 0.05 ms
τ = 0.05 ms
Thus, the time constant to reach full charge in an RL circuit is 0.05 ms.
Answer:
The claim is false and violate the zeroth law of thermodynamics.
Explanation:
Zeroth law of thermodynamics refers to thermal equilibrium among elements. It states that elements which different temperatures will reach the same temperature at the endgame if they are close enough to interact each other. This temperaure is called <em>equilibrium temperature and it is always a intermediate value between the element with highest temperature and the element with the lowest one. So there is no way </em> a cup of cold coffee on a table can warm up to 80°C picking up energy from the surrounding air at 25°C because the cup can only reach a temperature closer to the surrounding air temperature which will be the equilimbrium temperature for that case.
Answer:
#include <iostream>
#include <string>
#include "user.h"
#include "password.h"
using namespace Authenticate;
using namespace std;
int main()
{
inputUserName();
inputPassword();
cout << "Your username is " << getUserName() <<
" and your password is: " <<
getPassword() << endl;
return 0;
}
user.h:
#ifndef USER_H
#define USER_H
#include <string>
using namespace std;
namespace Authenticate
{
namespace
{
bool isvalid();
}
void inputUserName();
string getUserName();
}
#endif
user.cpp:
#include <iostream>
#include "user.h"
namespace Authenticate
{
string username="";
namespace
{
bool isvalid()
{
if(username.length() == 8)
return true;
else
return false;
}
}
void inputUserName(){
do
{
cout << "Enter your username (8 letters only)" << endl;
cin >> username;
}
while(!isvalid());
}
string getUserName()
{
return username;
}
}
password.h:
#ifndef PASSWORD_h
#define PASSWORD_h
#include <string>
using namespace std;
namespace Authenticate
{
namespace
{
bool isValid();
}
void inputPassword();
string getPassword();
}
#endif
password.cpp:
#include <iostream>
#include <string>
using namespace std;
namespace Authenticate
{
string password="";
namespace
{
bool isValid()
{
if(password.length() >= 8)
{
for(int i=0; i<password.length(); i++)
if(password[i] >= '0' && password[i] <= '9')
return true;
return false;
}
else
return false;
}
}
void inputPassword(){
do
{
cout << "Enter your password (at least 8 characters " <<
"and at leat one non-letter)" << endl;
cin >> password;
}
while(!isValid());
}
string getPassword()
{
return password;
}
}
Answer:
A. smallest wire is No. 12