PLEASE WRITE A FULL FUNCTIONING CODE FOR THE FOLLOWING REQUIREMENT Data Input Phase The main loop.
Fantastic news! We've Found the answer you've been seeking!
Question:
PLEASE WRITE A FULL FUNCTIONING CODE FOR THE FOLLOWING REQUIREMENT
- Data Input Phase
- The main loop. An appropriate loop structure has been used for the data entry, and it works.
- The user must enter the surname and the program does not allow it to be an empty string.
- The user must enter the given name and the program does not allow it to be an empty string.
- The user must enter the gender, and it must be one of the two possible values.
- The user must enter the age in years, and it must be between 15 and 100 (inclusive).
- The user must enter the post code, and it must consist of exactly 4 digits.
- The user must enter whether employed, and it must be one of the two possible values.
- Calculation Phase
- The rate of unemployment.
- The average unemployed age for men and the average unemployed age for women.
- Display Phase
- The inputted data is correctly presented in a HTML table complete with headings.
- The unemployment rate, and average ages for unemployed men and unemployed women is presented.
- Non-Functional Requirements
No challenge here. The marks here are "low hanging fruit", i.e. easy marks. It would be sad to lose them.
- Proper variable naming conventions are used.
- Constants are used in place of numeric and string literals.
- Correct use of value types.
- Correct and consistent code indentation.
- Block commenting.
- Challenge
- The "Sort the Records" challenge.
- The "Day of Birth" challenge.
- The "Unemployed and Under-employed" challenge.
Related Book For
Posted Date: