c program project

Completed Posted 2 years ago Paid on delivery
Completed Paid on delivery

Task Description

Data Engineers regularly collect, process and store data. In this task you will develop a deeper understanding of how C programming language can be used for collecting, processing and storing data. In this assignment you get the opportunity to build an interactive program that can manage a list of employees in a company.

The list is stored as an array of employee_t type structures

employee_t employeelist [MAX_COMPANY_SIZE];

The employee_t is a structure typedef for struct employee. The struct employee contains the following fields

name - array of MAX_NAME_SIZE chars (string)

fte - a float between 0.0 and 1.0

birthday - a structure of date_t type as defined below.

The variable fte indicates if an employee works full-time or part-time for a company. The value fte=1.0 (or 0.5) indicates that an employee works full time (or half-time) for the company.

Note that we now have a struct nested within a struct. The birthday is a structure typedef for struct date. The struct date_t contains the following fields,

day - unsigned integer between 1 and 31 (inclusive)

month - unsigned integer between 1 and 12 (inclusive)

year - unsigned integer between 1800 and 2017

Your program interacts with the nested struct array in your memory (RAM) and simple database file in your hard disk. It should provide the following features:

1. add employee

Add a new employee to the employeelist through the terminal. You should collect the input by asking multiple questions from the user.

Enter name>

Enter birthday: day>

Enter birthday: month>

Enter birthday: year>

Enter FTE>

2. delete last employee

Remove the last employee from the employeelist. TIP: you cannot delete an element from an array. Instead consider using an integer to keep count of number of employees.

3. display employee list

Display the list of employees in the following format as shown in the sample run. Please follow the sample executable for the exact display format, including white spaces.

Name Birthday FTE

---------- ---------- ------

bee 10-01-1800 1.0000

Pay attention to the strict formatting guide:

Name - left aligned, 10 chars at most.

Date - 2 digit day, 2 digit month, 4 digit year

FTE – 4 decimal places

4. save the employee list to the database file

Save the employeelist in the hard disk as a binary/text file named database. You may use your own format to save the data. You should overwrite if database file already exists.

5. read the employee list from the database file

Read the database file and put the data into employeelist. You may only read the data files created by your own program. You should overwrite the employeelist array you had in memory when loading from the file.

6. exit the program

Exit the interactive program.

The database file

It is up to you to create your own data storage format for the database file. Your program should be able to read the database that was created by itself. You can create the database as a text or binary file.

You do NOT need to be able to create a database identical to the database of the sample executable. You do NOT need to be able to read the database of the sample executable.

use the template file.

C Programming

Project ID: #29872049

About the project

18 proposals Remote project Active 2 years ago

Awarded to:

TechnologySol20

###### Experienced in C, Python, Data structure, Algorithm Design and Analysis ######## Hi, Greetings. I am a computer engineer having masters in Mathematics, Computer Science and PhD in Computer Science. I have mor More

$50 AUD in 3 days
(29 Reviews)
4.3

18 freelancers are bidding on average $119 for this job

freelancerLatino

Hello, I am an expert with c and c++ from long time ago... I should be a good option for this project. Please let me know the deadline and I can start now.

$175 AUD in 2 days
(94 Reviews)
7.1
shabih2468

Greetings I saw your project and as an expert in C/C++ language I am sure I can do your task. I have previously worked on various C projects which includes making games, management systems projects and C is my primary More

$140 AUD in 1 day
(29 Reviews)
4.6
viktorbelman01

Dear Sir. As an experienced C/C++ programmer, it is interesting to me. I have been working on various projects with C/C++ for over 7+ years. I have read your project description carefully, and it's best profit to my sk More

$140 AUD in 2 days
(10 Reviews)
4.3
devbaloni1983

❤️ ~ Hello ~ ❤️ As a professional who can realize your idea, I have rich experience in development for 15 years’ So far, I've always been striving only for customer satisfaction and have always provided Modern design More

$140 AUD in 7 days
(3 Reviews)
3.8
sajazaeri

Dear employer, Hi I can develop this employee management code for you. I am an expert in C. As your description is completely clear, I am sure that I can deliver it in one day. Please send me a message so that we can More

$100 AUD in 1 day
(2 Reviews)
3.3
calebprice1

Hello there! I have read your requirements for a C program that can read and write to a database file. I have done many things like this in the past and am positive that I can provide a solid solution with comments and More

$140 AUD in 1 day
(2 Reviews)
2.5
itahi

Hello :D I can help you do it . I have good experience in C, JAVA, dev works. I can show you some demo, If you need any help pls reply Thank You Take Care

$70 AUD in 2 days
(1 Review)
1.6
wangchulin4

Hi, there. I CAN START JUST NOW. I have got your project requirement enough. I am a creative and professional C++ developer having more than 5+ years of professional experience as a senior developer in this field. My More

$135 AUD in 3 days
(0 Reviews)
0.0
hassanhashmi003

Hello, I've complete BS Software Engineering. I've Good experience in Java development and algorithm implementation. My Core Expertise in Java - C++ - C - object-oriented - Data Structure - Swing - OpenGL - JavaFX. I More

$90 AUD in 2 days
(0 Reviews)
0.0
latip58

Hello! I have read your task description very carefully. I think I can do your task perfectly and satisfy you. I have strong confidence in C/C++/C# programming. I hope to work with you. I wait for your reply. Thanks.

$150 AUD in 2 days
(0 Reviews)
0.0
nadimuzzaman0772

I am interested in C++ coding. I love to do code. I am trying to make place at CodeForces. I want to become a software developer at Google. However, I am new , I will try my best to prove myself.

$140 AUD in 7 days
(0 Reviews)
0.0
officials1

hi dear, I just read out your description and i am interested in your project. i am expert in C++, and i also done with it. if you need quality work than feel free to contact me. Thanks.

$250 AUD in 6 days
(0 Reviews)
0.0
idealego

needs at best 1 hour.. looks like a school assignment.. doesnt even need 30$ for a task like this.. :)

$30 AUD in 1 day
(0 Reviews)
0.0
ssankarganesh199

Hi, I am good in C programming. I understand your need from the description. I will provide the best source code for above mentioned task. Thank You

$150 AUD in 5 days
(0 Reviews)
0.0