Reference no: EM132207437
Code should be written in C
Write a program that allows the user to enter data into a form. The program should use character graphics and capabilities provided by the curses library.
The program should display the prompts of the form continuously in the same positions (the specific prompts and positions are at the discretion of the programmer).
After each keypress by the user, the data entered into the form should be updated and displayed. The fields of the form should include the first name, last name, and street address for a person.
The two name fields should be limited to 20 characters, the street address field should be limited to 30 characters. Pressing the [ENTER] key should cause the cursor (current point of data entry) to jump to the first character in the next field.
If the current field is the street address, then pressing [ENTER] should cause the program to report the entered data and then exit.
Optional: Pressing the backspace key should allow the user to delete the last character entered in the current field.