In: Computer Science
Your application will read in from the user an employee's name and salary, and print out a Console Check similar to the following. Your newly modified check printing application will this time accommodate names and numbers of different lengths WITHOUT pushing the left or right hand side of the check out of whack. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> > | $1,000,000 | > > > > ___Pay to the Order of___ Johnny PayCheck > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Pease only use technique from chapter 1-4 in C++ from control structyre 9th edition
#include <iostream>
#include <string>
using namespace std;
int main()
{
string employeeName;
int employeeSalary;
cout<<"Enter Employee Name: ";
getline(cin,employeeName);
cout<<"Enter Employee Salary: ";
cin>>employeeSalary;
for(int i=0;i<46;i++){
cout<<">";
}
cout<<" | ";
cout<<employeeSalary<<" | ";
for(int i=0;i<4;i++){
cout<<">";
}
for(int i=0;i<3;i++){
cout<<"_";
}
cout<<"Pay to the Order of";
for(int i=0;i<3;i++){
cout<<"_";
}
cout<<employeeName<<" ";
cout<<"PayCheck ";
for(int i=0;i<46;i++){
cout<<">";
}
return 0;
}
OUTPUT:
IF YOU HAVE ANY QUERY PLEASE COMMENT DOWN BELOW
PLEASE GIVE A THUMBS UP