You are on page 1of 4

Final Project

CSC 201
Fall 2021-2021
Submission Date: 20th November, 2021
Marks: 10

Part A: Quiz Application


In this part, you are required to implement Quiz Application. Add 10 questions in your
program of any domain with their answers. You many use strcmpi function to compare
user answer with the saved answer. If the answer is correct/matched with the saved
answer user score 1 point.
Functionalities that need to be implemented in Quiz application are: -
1. The user will be asked to enter the name and then asked questions one by one.
2. The user should be given the choice to pass any question. If a user passes any question,
no marks will be added or deducted.
3. The user should be able to see his/her total score after every question.
4. If 70% of the answers by the user are correct, then the user passes the Quiz otherwise, the
user fails the Quiz. In both cases, the user will be displayed with a message, for example,
“Congratulations, you got 8/10 correct, You Pass the Exam” or “Unfortunately, you got
only 4/10, You failed the Exam”.
5. At the end of the Quiz, a user should be able to see the summary of his/her performance
in the current Quiz such as number of correct answers and number of incorrect answers.

Part B: Wage Protection System (WPS)


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 10 th 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 THEN SalaryDelayed = True
b. IF salary date is more than 7 days in the past, then salary delayed =FALSE
IF Current Date > PaymentDate + 7 THEN SalaryDelayed = False

(You may use function datetime(today) for finding current date,


datetime(‘today’)-7 for finding Current Date-7 and datetime(‘today’)+7 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
121 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

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”

Report Structure

The report should contain the following sections.


1. Title Page
2. Introduction
a. Introduction to the tasks you need to complete in Part A and B.
3. Main Body of the report
a. Screenshots of the sample code and output for Part A and B
b. Individual Contribution by each team member. A paragraph by each team
member summarizing their contributions.
4. Conclusion
5. References

Marking Criteria/ Rubric

Part A Item Mark

Implementation  Program runs without error. 2.5


 Program produces the required output.
 Loops are used.
 Validation rules are applied
Presentation/Demo Demonstration that the code works properly, and all 2.5
the members can answer the questions. You may be
asked to rewrite/explain a certain portion of the
project.
Total Marks for Part 5 Marks
A

PART B Item Mark


Implementation  Program runs without error. 2.5
 Program produces the required output.
 Loops are used.
 Program is functions.
 Validation rules are applied
Presentation/Demo Demonstration that the code works properly, and all 2.5
the members can answer the questions. You may be
asked to rewrite/explain a certain portion of the
project.
Total Marks for Part 5 Marks
B

Submission Guidelines:
1. Submission of the project is no later than 20th of November 2021
2. The project is worth 10%
3. Work needs to be done by a group of students of no more than two students.
4. You are required to submit soft copy of your code and a report in a compressed file via
Blackboard.
5. You are required to give a presentation where you can give a demonstration of your work
in week 13.
6. Each group should submit one copy.
7. Late submissions will be penalized (1 Mark for each day).

You might also like