Introduction
用Java Swing作为GUI,从文件中读取信息并显示,实现逻辑,整体控件不多,很基础的作业。
代写一个停车场的小应用,结合数据库实现增删改查,纯体力作业。
On conclusion students should be able to:
The management of APU has completed the construction of a three story car park where students may park their cars. The car park can accommodate a total of 45 cars, where each level will have 15 parking spaces. In order to facilitate the management of the car park, and enable students to rent parking spaces, a system is needed to handle the registration of students for each available car park for each semester. A student, once registered may park his or her car at the car park for duration of 120 days. The system would be used by the parking administration office to register students who wishes to park at the car park. The users should be able to insert, update, delete, read the following information about the students, parking spaces as well as user details.
Students | Description |
---|---|
StudentID | Student’s TP number |
FirstName | Student’s first name |
LastName | Student’s last name |
Contact Number | Student’s mobile number |
E-mail address | Student’s e-mail address |
CarNumber | Student’s car number |
Date Registered | Date of registration for the car park |
Parking Spaces | Description |
---|---|
ParkingSpaceID | The parking bay number, using the car park level and the bay number. Example, the parking bay number 10 at level 2 would be L2010. |
Status | Parking bay status as “Available” or “Assigned” |
StudentID | Student’s id |
Users | Description |
---|---|
UserID | User’s ID Number e.g. PKO1234 (PKO = Parking Office) |
Password | User’s password for logging into the system |
User’s First Name | User’s first name |
User’s Last Name | User’s first name |
The applications can be developed using structure programming or object-oriented approach. Data may be stored in collections i.e. array of objects or into data files
This is a group assignment. Each group should consist of 2 – 3 members only. Upon submission of your assignment, you would be required to present your assignment at a date and time specified by your module lecturer.
Each team member is required to contribute towards all sections of the assignment, present and explain his or her contribution of the work done. Each team member should also be able to answer questions posed with regards to the project and / or subject matter.
You are required to submit:
The documentation should be comb-bound with the CD attached.
这次需要代写的作业全部需要使用递归,最后一个问属于烧脑型的,五重递归。
In the game Racko, players attempt to build a strictly increasing sequence of cards (in which a number is less than the number that comes after it). At the end of the game, five points are awarded for each number in the increasing sequence that starts with the first card in the list. Note that any further increasing sequences in the list do not earn any points. For example, there are 20 points awarded for the values 5,10,12,16,15,43, because it begins with the strictly increasing sequence 5,10,12,16.
Use accumulative recursion to complete the Python function racko_points, that consumes seq, a list of distinct integers between 1 and 60, inclusive, and produces the score for seq.
For example,
racko_points([]) => 0
racko_points([9,2,20,40,60]) => 5
racko_points([5,10,48,2,9,17,40,60]) => 15
Note that you cannot reorder seq. Determine the number of earned points for the seq in the order given.
Consider Xtreme Racko, a variation of Racko® (as described in Question 1) that allows a player to score points for each number in their longest increasing sequence, regardless of where that sequence begins. Use accumulative recursion to complete the Python function xtreme_racko_points, that consumes seq, a list of distinct numbers between 1 and 60, inclusive, and produces the score for seq.
For example,
xtreme_racko_points([]) => 0
xtreme_racko_points([5,2,22,40,60]) => 20
xtreme_racko_points([5,50,46,2,9,17,1,60]) => 15
xtreme_racko_points([60,50,40,30]) => 5
Hint: You may find it helpful to use more than one accumulator for this question.
Write a Python function histogram that consumes marks, a list of integer marks between 0 and 100,
inclusive. The function produces None, and prints a histogram for marks. The histogram consists of one row for each distinct mark. The i th row has the form:
vvv: row where vvv is the i th smallest value (right justified over 3 places) and row is a string containing k copies of the string ‘X’, where k is the number of times vvv occurs in marks. That is, the first row contains information about the smallest value in marks, the second row contains information about the second smalles distinct value in marks, and so on. The consumed list may not be mutated. If marks is empty, nothing is printed.
For example, calling histogram([77,78,77,90,0,88,84,83,88,88,77,76,92,100,100]) prints
0: X
76: X
77: XXX
78: X
83: X
84: X
88: XXX
90: X
92: X
100: XX
The mark before the ‘:’ can be right justified using the rjust string method. There must be exactly one space after the colon, and no spaces after the string of ‘X’ values. No blank lines are printed.
A palindrome is a string that is the same forwards and backwards. For example, “madam” and “hannah” are palindromes, but “abcc b a” and “abcdba” are not.
Write a Python function generate_palindromes that consumes a natural number n and produces a list (in alphabetical order) of all the palindromes of length n consisting of a combination of the characters ‘X’ and ‘Y’. For example:
generate_palindromes(0) => ['']
generate_palindromes(1) => ['X', 'Y']
generate_palindromes(4) => ['XXXX', 'XYYX', 'YXXY', 'YYYY']
generate_palindromes(5) => ["XXXXX","XXYXX","XYXYX","XYYYX","YXXXY","YXYXY","YYXYY","YYYYY"]
Notes: