Find Jobs
Hire Freelancers

program 5 (computer class)

$30-35 USD

进行中
已发布大约 22 年前

$30-35 USD

货到付款
The Problem You have been hired by a company whose employee data is held in a file saved as [login to view URL] This data is stored as follows: FML birthMonth birthDay birthYear hireMonth hireDay hireYear (where FML is the employee's three initials:First Middle Last. the next six data values are integers) ex. SAW 5 30 1959 6 12 2000 Unfortunately, this file is not easily read. you are to write a program that will read the data from this file and write it to an output file: [login to view URL] This file will list the employee data in a neat, labelled column as follows: Employee initials date of birth date of hire ------------------------------------------------------ FML mm/dd/yyyy mm/dd/yyyy in addition, you are to print screen only messages to employees whose birthday is today(Happy Birthday...) and employees whose hire date anniversary is today( It is time for your yearly review..) These messages should be written in two functions(these are not class funtions): Happy Birthday- this should be called if the employee's birtday is today. it should recieve an Employee object and print a message that wishes the employee a happy birtday. begin by clearing the screen, printing the message, drawing a smiley face using stars, and end by telling the emp to take tomorrow off. use the .get() function to pause the screen. Yearly review- this is similar except it works on the hire date anniversary. it asks them to call and make an appointment for their review followed by a dollar sign graphic from stars. it should also clear the screen at the beginning and pause the screen at end. the program will use two classes ( i have these classes done and will send them.: Date and Employee. these are written completely. you need to draw the class diagram. the class diagram is provided for you. you need to write the class definition and all functions. then you will write a main function that will accomplish the task described above. the following are Some things you will do: Open, verify,and close two files Ask your user to enter todays date and store it as a data object Use temp variables to read data from the file and then store it in an employee object using the constructor Use a loop to read the file, store each employee in an employee object, print the object to the outfile, and call the the birthday or review function if necessary Be sure to add a complete opening comment block and internally comment all functions ## Deliverables Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. SAMPLE INPUT FEJ 4 1 1939 3 28 1958 LFJ 3 28 1939 4 1 1978 SAW 3 30 1959 3 28 2000 RBW 10 7 1958 7 25 1978 DMI 1 13 1980 4 1 2002 FMI 4 1 1982 4 1 2002 SAMPLE OUTPUT EMPLOYEE INITIALS BIRTHDAY DATE OF HIRE ---------------------------------------------------- FEJ 04/01/1939 03/01/1958 --- ------- --- SAMPLE SCREEN OUTPUT Enter today's date. Enter the month as an integer(1-12): 4 Enter the day as an integer 1-31_: 1 Enter the year using all 4 digits: 2002 Today is 04/12/2002 FEJ 04/01/1939 03/01/1958 (SCREEN CLEARS HERE) Happy Birtday FEJ ***** * * * * * * * * * (the dollar sign would be the * * * * same way) * *** * ***** Take tomorrow off1 hit enter to continue I WILL E-MAIL THE COMPLETE CLASS DEFINITIONS AND THEIR FUNCTIONS. Here is the employee class diagram EMPLOYEE -------------------------------------------- -FirstIni : char = ' ' -MiddleIni : char = ' ' -lastIni : char = ' ' -birthDate : date =1/1/1990 --------------------------------------------- + Employee() + Employee(char,char,char,int,int,int,int,int,int) + get_firstIni() : char + get_middleIni() : char + get_lastIni() : char + get_birthDate() : date + get_hireDate() : date + set_firstIni(char) : void + set_middleIni(char): void + set_lastIni(char) : void + set_birthDate(date): void + set_hireDate(date): void + print_initials(ostream&):void + print_employee(ostream&):void + print_birthDate(ostream&):void ------------------------------------------------------ ## Platform visual c++ ## Deadline information This is a simple program that is for a beginner computer class. i don't need it to be too advanced. The class definitions and all their functons are completely written. i will e mail those to you.
项目 ID: 2846221

关于此项目

5提案
远程项目
活跃22 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
See private message.
$12 USD 在14天之内
5.0 (35条评论)
5.0
5.0
5威客以平均价$22 USD来参与此工作竞价
用户头像
See private message.
$28.90 USD 在14天之内
5.0 (33条评论)
4.0
4.0
用户头像
See private message.
$21.25 USD 在14天之内
5.0 (2条评论)
0.7
0.7
用户头像
See private message.
$21.25 USD 在14天之内
3.0 (1条评论)
0.5
0.5
用户头像
See private message.
$25.50 USD 在14天之内
0.0 (0条评论)
0.0
0.0

关于客户

UNITED STATES的国旗
United States
5.0
1
会员自3月 26, 2002起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。