Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Solve in Matlab Using Fuctions in the script In this part, you are required to implement the required report for WPS using functions. WPS is

image text in transcribed

image text in transcribed

Solve in Matlab Using Fuctions in the script

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 EmployeeId, Name, SalaryAmount, PaymentDate (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 1000. Please enter salary greater than 1000". b. 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 PaymentDate field: a. If salary payment date is within 7 days in the past, then salary delayed=TRUE IF Current Date 7 PaymentDate +7 THEN SalaryDelayed = False 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) 4. Exit 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

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

Guide To Client Server Databases

Authors: Joe Salemi

2nd Edition

1562763105, 978-1562763107

More Books

Students also viewed these Databases questions

Question

Please show excel formulas:

Answered: 1 week ago

Question

The Nature of Nonverbal Communication

Answered: 1 week ago

Question

Functions of Nonverbal Communication

Answered: 1 week ago

Question

Nonverbal Communication Codes

Answered: 1 week ago