Answered step by step
Verified Expert Solution
Question
1 Approved Answer
May I get help with these errors? This assignment is seperate compilation, so no .h or .cpp file editing This is the Main.cpp file, where
May I get help with these errors? This assignment is seperate compilation, so no .h or .cpp file editing This is the Main.cpp file, where function main() is implemented-the entry way of the program. To test the Employee class, add the necessary code in the main() function as indicated. Below you can find the UML diagram of the class. using nanespace std; int main() 11 Create an object of the class Enployee using If the defoult canstructor. II Hane the object "bob". ll Your code here... Eaployee bob; (f Cali function print () to print object bob. 1/ Your code here... bob.print(); 1/ Set the nane and 10 of object bob to "Bob" and 111. If Your code here... setllane ("Bob*); setID (111); If Call function print() to print object bob. 1/ Your code here... bob.print(): If Create an object of the class Eaployee using the parosetized If constructor, passing values "Jane" and 222. If Nane the object "fane". Il Your code here... Enployce(-Jane:, 272): If Call function print() to print object jane. If Your code here... jane.print (): If Change object jane's 10 to 333. If Your code here... setio (393) : If Call function print() to print object jane. If Your code here... Jane.print(); cout ee "Bob/Jane: "; If Call function samekne() to conpare objects bob and jane. if (sarellane(bob)) cout ee "5ane nane. n; else cout ee "Different nase, In ; cout es end; \}. return o; 57F Cloudy II Call function samellame() to compare objects bob and jar if (sanellane(bob)) cout "Sane name. In"; else cout "Different name. In"; cout end;; return ; ning Main.cpp in.cpp: In function 'int main()': in.cpp:22:4: error: ''setName' was not declared in this scope 22 | setName("Bob"); 23 I 23 | setID(111); lain.cpp:37:2: error: 'jane' was not declared in this scope 37 i jane.print(); Main.cppp: 49:6: error: 'sameName' was not declared in this scope 49 if (samellame(bob)) Score
May I get help with these errors? This assignment is seperate compilation, so no .h or .cpp file editing
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started