Find Jobs
Hire Freelancers

program 5 (computer class)

$30-35 USD

Berlangsung
Dibuat sekitar 22 tahun yang lalu

$30-35 USD

Dibayar ketika dikirim
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 Proyek: 2846221

Tentang proyek

5 proposal
Proyek remot
Aktif 22 tahun yang lalu

Ingin menghasilkan uang?

Keuntungan menawar di Freelancer

Tentukan anggaran dan garis waktu Anda
Dapatkan bayaran atas pekerjaan Anda
Uraikan proposal Anda
Gratis mendaftar dan menawar pekerjaan
Diberikan kepada:
Avatar Pengguna
See private message.
$12 USD dalam 14 hari
5,0 (35 ulasan)
5,0
5,0
5 freelancer menawar dengan rata-rata $22 USD untuk pekerjaan ini
Avatar Pengguna
See private message.
$28,90 USD dalam 14 hari
5,0 (33 ulasan)
4,0
4,0
Avatar Pengguna
See private message.
$21,25 USD dalam 14 hari
5,0 (2 ulasan)
0,7
0,7
Avatar Pengguna
See private message.
$21,25 USD dalam 14 hari
3,0 (1 ulasan)
0,5
0,5
Avatar Pengguna
See private message.
$25,50 USD dalam 14 hari
0,0 (0 ulasan)
0,0
0,0

Tentang klien

Bendera UNITED STATES
United States
5,0
1
Anggota sejak Mar 26, 2002

Verifikasi Klien

Terima kasih! Kami telah mengirim Anda email untuk mengklaim kredit gratis Anda.
Anda sesuatu yang salah saat mengirimkan Anda email. Silakan coba lagi.
Pengguna Terdaftar Total Pekerjaan Terpasang
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuat pratinjau
Izin diberikan untuk Geolokasi.
Sesi login Anda telah kedaluwarsa dan Anda sudah keluar. Silakan login kembali.