Assignment 3
Assignment 3
T r a in i n g As s ig n m en t s
Version 1.1
Hanoi, 06/2019
Lab Guides C# Basics Issue/Revision: x/y
RECORD OF CHANGES
Contents
Assignment 3: DateTime....................................................................................................................4
Objectives:....................................................................................................................................4
Business needs:...........................................................................................................................4
Prerequisites:................................................................................................................................4
Technologies:...............................................................................................................................4
IO:...................................................................................................................................................4
Technical Requirements:.............................................................................................................4
1. Exercise 1: Caculate datetime values.....................................................................................5
2. Exercise 2: Convert Datetime..................................................................................................6
CODE: NPL.M.A003
TYPE: MEDIUM
LOC:
DURATION: 180 MINUTES
Assignment 3: DateTime
Objectives:
Business needs:
» TBD
Prerequisites:
Technologies:
IO:
» Console windows
Technical Requirements:
Function Requirement:
A system A allows employees to submit payment invoices, to post to the browser manager. Every time the
employee submits the invoice, a record of the invoice is created in the database. To remind you to manage
the invoice approval, the system has the following reminder and operation functions:
- If the record has been submitted 7 days earlier, but has not approved the record, send a reminder
notice for the first time.
- If prompted for the first time, but the manager has not approved then after 2 days, reminded the
second time.
- If the second reminder, but the manager still hasn't approved, then send a reminder email every 3
days, 4 times, 5 times.
- Only send up to 5 reminders.
Software requirements:
Input: Allows users to enter 1 day in the format: date / month / year.
Technical requirements:
In case of day, only working days (from Monday to Friday, excluding Saturday and Sunday). That is, after 7
working days, send a reminder notice for the first time ...
Function Requirement:
Input data is a multi-line piece of text, each line is an information about creating and editing records:
Example:
Include information:
Include informationThe update time is one of the formats: dd / MM / yyyy or dd / MM / yyyy hh: mm: ss tt or dd /
MMM / yyyy
Lines are not saved in the correct order in time. Therefore, it is necessary to standardize by, rearranging the
lines in the right order of increasing time.
Software requirements:
Input: Allows the user to enter multiple lines of text, press Ctrl + Enter to finish typing.
Output: Standardize by, rearranging lines in the right order of increasing time.
Technical requirements:
- write on console application console application, comply with Fsoft coding conventions