The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
ill don't know how to apply f stream. and the information is still unclear.
SET B.Defne a structure defni±on namedempInfothat contains a double typemonthlySal,annualSal (mustbe greater thanor equal 200000),tPerformance (must be from 5000 to 15000 only),tBonus, stringstatusand an object namednamethat calls another structure defni±on calledfullNamecontaining thefname,lnameas stringandmidNameas type char***.***StructurefullNameshould be nested toempInfo*Use do-while For the valida±on oF monthlySal and tPerFormance.Prompt the user to input the desired number oF employee using Func±onint getSize();and validate theinput size usingtry-throw-catch method. Size must be From 3 to 5 only ans ask the user to re-enter thecorrect value. Use Func±on voidvoid getEmp(empInfo emp[]);to enter the values oF each feld/memberoF the structure, use Func±onvoid computetBonus(empInfo emp[]);to compute and calculate themonthly salary and bonus oF each employees.NOTE: Bonus is equal to monthly salary + perFormanceUse Func±onvoid getStatus(empInfo emp[])to test the bonus oF each employee –tBonusandto knowthe status iF student “UPPER MANAGEMENT” or “LOWER MANAGEMENT” .NOTE: “UPPER MANAGEMENT” iF tBonus is greater than or equal to 50000 . Otherwise, “LOWERMANAGEMENT”.Use Func±onvoid getOutput(empInfo emp []);display to Following:Usesetwto arrange the list oF student on screen.²inally use Func±onvoid getSend(ofstream& hout, empInfo emp [])to save and send the records to afle. Prompt the user to enter a flename and test whether the fle is exis±ng or not.IF the fle is exis±ng,use try-throw-catch method to re-enter another flename.Prompt the user iF the data has been saved to the fle created.LastnameFirstnameMiddleTBonusStatus
Attachments:
-----------