Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

More requirements: Validate the input of the user. If the user inputs the option which is not in the list, he should be prompted to

image text in transcribed

More requirements:

  • Validate the input of the user. If the user inputs the option which is not in the list, he should be prompted to input again.
  • Generate the CSV name as CentralBank_WPS.csv

Please do this project in MATLAB.

In this part, you are required to implement the required report for WPS using functions. WPS is a UAE Central Bank platform to ensure that all companies are paying salaries for their employees. It is built to keep track of all the employee salaries and generate a CSV file of the records to be sent to Central Bank. This CSV file is generated on 10th of every Month. The functionalities that need to be implemented in WPS are as given below:- The user should be able to see the Welcome screen with the options/functions given below. Once any option is selected, user will be given a choice to go back to Welcome Screen where he can start again and select any option. The functions in WPS are (Implement each as a function in MATLAB): - 1. Add Details- This function enables user to add salary data such as Employeeld. Name, Salary Amount Payment Date (DD-MM-YYYY). a. Validation Check: Salary amount should not be less than 1000. If user enters salary amount less than 1000 then message displayed is Salary amount is less than 100 Please enter salary greater than 1000. 6. Date format should be correct DD-MM-YYYY 2. Salary Delay: This function calculates if the salary was delayed, calculated by the difference in the Current Date and Payment Date field: a. If salary payment date is within 7 days in the past then salary delayed =TRUE IF Current Date - 7 Payment Date THEN Salary Delayed = True b. IF salary date is more than 7 days in the past , then salary delayed =FALSE IF Current Date > Payment Date + 7 THEN Salary Delaxed = False (You may use function datetime(today) for finding current date, datetime today")-7 for finding Current Date-7 and datetime-today't7 for finding Current day+7) 3. Print Report: This function helps the user generate the CSV file that needs to be sent to Central Bank. The format of report is given below for current date (Suppose. Current Date is 24-10-2021) Employee Id Name Salary Amount Payment Date Salary Delayed John Smith 10000 01-10-2021 False 122 Kate Wilson 23000 17-10-2021 True 123 Mohd Akbar 45000 16-10-2021 False 124 Johnson A. 56000 24-10-2021 True 121 4. Exit In this part, you are required to implement the required report for WPS using functions. WPS is a UAE Central Bank platform to ensure that all companies are paying salaries for their employees. It is built to keep track of all the employee salaries and generate a CSV file of the records to be sent to Central Bank. This CSV file is generated on 10th of every Month. The functionalities that need to be implemented in WPS are as given below:- The user should be able to see the Welcome screen with the options/functions given below. Once any option is selected, user will be given a choice to go back to Welcome Screen where he can start again and select any option. The functions in WPS are (Implement each as a function in MATLAB): - 1. Add Details- This function enables user to add salary data such as Employeeld. Name, Salary Amount Payment Date (DD-MM-YYYY). a. Validation Check: Salary amount should not be less than 1000. If user enters salary amount less than 1000 then message displayed is Salary amount is less than 100 Please enter salary greater than 1000. 6. Date format should be correct DD-MM-YYYY 2. Salary Delay: This function calculates if the salary was delayed, calculated by the difference in the Current Date and Payment Date field: a. If salary payment date is within 7 days in the past then salary delayed =TRUE IF Current Date - 7 Payment Date THEN Salary Delayed = True b. IF salary date is more than 7 days in the past , then salary delayed =FALSE IF Current Date > Payment Date + 7 THEN Salary Delaxed = False (You may use function datetime(today) for finding current date, datetime today")-7 for finding Current Date-7 and datetime-today't7 for finding Current day+7) 3. Print Report: This function helps the user generate the CSV file that needs to be sent to Central Bank. The format of report is given below for current date (Suppose. Current Date is 24-10-2021) Employee Id Name Salary Amount Payment Date Salary Delayed John Smith 10000 01-10-2021 False 122 Kate Wilson 23000 17-10-2021 True 123 Mohd Akbar 45000 16-10-2021 False 124 Johnson A. 56000 24-10-2021 True 121 4. Exit

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Accounting questions