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:
Dude just like forget the highway and drive on the interstate bruh
Explanation:
Answer:
A laser-Doppler vibrometer identifies the Doppler effect or shift of laser light reflected from the sample object
Explanation:
A laser-Doppler vibrometer (e.g. Micro Motion Analyzer 400 from Polytec) identifies the Doppler effect or shift of laser light reflected from the sample object .At a beam splitter, a laser beam is partitioned into a measuring beam and a reference beam that deflects 90 ° upwards and transmit to the reference mirror "RM." Both beams come back to the beam splitter.
The question is incomplete. We have to calculate :
a). the cutting force
b). volumetric metal removal rate, MRR
c). the horsepower required at the cut
d). if the power efficiency of the machine tool is 90%, determine the motor horsepower
Solution :
Given :
Cutting velocity (v) = 500 ft/min
= 500 x 12 in/min
= 6000 in/min
Feed , f = 0.025 in/rev
Depth of cut, d = 0.2 in
b). Volumetric material removal rate, MRR = v.f.d
= 6000 x 0.025 x 0.2
= 30 
c). Horsepower required = MRR x unit horsepower
= 30 x 1.6
= 48 hp
a). Cutting force,

(1 hp = 550 ft lbf /sec)
= 3168 lbf
d). Machine HP required


= 53.33 HP