Answer:
a)A constant volume process is called isochoric process.
b)Yes
c)Work =0
Explanation:
Isochoric process:
A constant volume process is called isochoric process.
In constant volume process work done on the system or work done by the system will remain zero .Because we know that work done give as
work = PΔV
Where P is pressure and ΔV is the change in volume.
For constant volume process ΔV = 0⇒ Work =0
Yes heat transfer can be take place in isochoric process.Because we know that temperature difference leads to transfer of heat.
Given that
Initial P=10 MPa
Final pressure =15 MPa
Volume = 100 L
Here volume of gas is constant so the work work done will be zero.
Answer:
Solar engineers plan, design, and implement solar energy projects. They may manage anything from large-scale municipal projects to home rooftop installations. He or she may also oversee or manage implementation of the plan. Solar engineers may also need to report on the efficiency, cost, and safety of the project.
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;
}
}