Question: This is C-programming question. I am very stuck with this question. I want an explanations.. Help me! Lets say the interviewer asked me to create

This is C-programming question. I am very stuck with this question. I want an explanations.. Help me!

Lets say the interviewer asked me to create a simple storage file.

- The program has to read input data from the user or another file having same type of data which would be entered by user by using redirection of input

- It should allow appending one set of data or several sets of data, that the user can indicates when the input data is finished or the input file reached is ended. Before starting the appending of the data set(s) the program should add a timestamp to the storage file with the current time and date given by a C pre-defined function of the time.h library.

- consider that one set of data entry is composed by Body Temperature in Celsius (BTC), Heart Rate Per Minute (HRPM), Blood Pressure High (BPH) and Blood Pressure Low (BPL). The data is entered by each acronym of the parameter being measured and its current value, for example, BTC 37.2, HRPM 60, BPH 13.1, BPL 7.5.

- name of the storage file has to be VitalSigns_log.dat

- using the number 7, implement the program using a character file output using non-formatted file output. The C program needs to apply the studied File I/O opening and closing procedures, and it must return appropriate messages to the user file functions are unsuccessful.

The important point is simplify the code.

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!