Pep 8 programming project. Sorting program.
$30-50 USD
Teslim sırasında ödenir
SORT program
The desired program will run under Windows with the 811 beta version PEP 368.
Following a request from the user (explaining the mode of operation) you need to display in ascending part the numbers entered.
Validation rules:
1) At the input, you should ask only one question to the user: please enter one or more part numbers?
2) A part number is composed of a date (YYMMDD), followed by a dash followed
a value of 1 or 2 digits. (ex: 091217-12)
where
AA: 00 to 99
MM: 01 to 12,
DD: 01 to 31
The date must be valid.
The years from 80 to 99 belong to the past century;
So the 99 years preceding the year 00 (1999 <2000).
3) The input data contain between 1 and 5 part numbers.
4) The error message is "Entree invalide".
You must run your program on the 5 following tests:
-------------------------------------------------- ---------------------
091125-12,080220-12,091030-12,091010-12,090909-12
090201-1,090201-2,090201-12,090201-01,090201-21
090909-1,090909-11,090909-31,090909-13,090909-00
090909-8,090909-7,090909-6,090909-5,090909-04
790101-12,990101-12,010101-12,960101-3
This program needs to be user-friendly. The user will be able to run it without instruction manual. On the display will appear: a question, the user data and results.
Under the results section, the part numbers will be presented in ascending order of length, then values and then dates (990101 above 000101).
Test result 1:
-> 080220-12 -> 090909-12 -> 091010-12 -> 091030-12 -> 091125-12
The process will continue as long as the user does not enter a period (one position).
At that time, the program will stop with a message of termination.
You MUST keep the part numbers in a linked (chained) list.
Test result 2:
-> 090201-1 -> 090201-2 -> 090201-01 -> 090201-12 -> 090201-21
You will submit the following files:
-The source file [url removed, login to view] (tri in French means sort)
-The results [url removed, login to view] file containing only the 5 tests above
in the same order.
In addition to the 5 compulsory tests previously mentioned, the TRI program
will work with any data.
Proje NO: #2987162