Question: C++ please explain and solve (structure) Structures Q2. Create a structure that has employee information. struct Employee { int empID; string empName; int joiningYear; int

 C++ please explain and solve (structure) Structures Q2. Create a structure

C++ please explain and solve (structure)

Structures Q2. Create a structure that has employee information. struct Employee { int empID; string empName; int joiningYear; int joiningMonth; int joiningDay; Kuwait College of Science & Technology Page-1- CS-101 Sam KUWAIT COLLEGE TECHNOLOGY & OF SCIENCE CS-101 Introduction to Computers & Programming Take Home Work #4 Exercise - Due 1-Feb-2021 EEEEE Input all the Employee Details. Perform Input Validation: Make sure the month, day, year is consistent i.e. Year (Should be positive, Can't exceed the current year) Month (Should be positive, should be less than 13) Day (Should be positive, Assume all month have maximum 30 days) In case of error display an Error message and ask the user to renter the information. Sample Run Enter Employee ID : 100 Enter Employee Name : Tony Enter Joining Year : 2020 Error | Enter a Valid Year Enter Joining Year : 2018 Enter Joining month : 13 Error ! Enter a valid Month Enter Joining month : Enter Joining Day : 34 Error ! Enter a Valid Day Enter Joining month : 30 Employee Report Employee ID : 100 Employee Name : Tony Date of Joining : 30-March-2018

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!