Virtual Solutions is an ITsolution provider company. It has hired you as a Softw
ID: 3612292 • Letter: V
Question
Virtual Solutions is an ITsolution provider company. It has hired you as a Software Engineer.Your job is to write code, but at the same it should be of HighQuality. Your Team Lead has asked you to write a very smallcode of user login functionality. The code should be of HighQuality.
You are requiredto
a. Write correct code for the user login inJava or C++ following the guidelines for writing code discussed inthe lectures
(15 marks)
b. Make use of Hungarian Notation forcoding purpose
(10 marks)
Explanation / Answer
please rate - thanks #include #include #include using namespace std; int main() {ifstream input; string name,filename,filepw; char password[10],O; bool match=false,matchpw; string::size_type pos; int i,j,tries; input.open("input.txt",ios::in); while(match==false) { coutfilename; do {pos=filename.find(','); filename=filename.substr(0,pos); if(filename==name) match=true; input>>filepw; if(!match) input>>filename; }while(input&&!match); if(!match) coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.