Develop and submit an original implementation of a data entry application. Identify and declare variables which will hold all data that needs to be entered to fill in the attached form (Appendix). Use data validation techniques to ensure that valid values are entered into the form fields.
The form will contain both numeric (integer and double) and character (char and string) data. Use C string functions (string.h) to verify text data. Once the form is filled in on the screen, a printer-ready version of the completed form will be displayed on the screen ready for printing.
- This assignment must be written in C and must compile and run on BA computer lab PCs using Quincy 2005 v1.3. Build options must include Strict ANSI/ISO compliance, C99 support and must compile with no warnings when the All Warnings option is selected.
- Your code must have appropriate comments including your name and student number, the name of the .c file, the purpose of the program, brief explanations of variables and explanations of any code which is not obvious to another programmer.
- All code can be placed in the main function.
Hints:
- Use the modulus function to check that the term of the loan is a multiple of 5 years
- Use if statements or while loops with the && operator to check limits of numeric values
- Use the || operator where one of two possible conditions are acceptable, e.g. "VIC" or "NSW" or...).
- Use do..while or while loops to continuously prompt for compulsory data until valid values are entered.
- Use appropriate ctype functions to verify that names are only composed of letters, and that initials are capitalised.