联系方式

  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-23:00
  • 微信:codinghelp

您当前位置:首页 >> javajava

日期:2018-11-08 10:09

Advanced Web Technologies

CO4215/CO7215/CO7515

Assignment 1

University of Leicester 1 of 2

Department of Computer Science SRM: 10/15/18 3:07:00 PM

Important facts:

Handed out: 15-Oct-2018

Deadline: Thursday 8-Nov-2018 at 23:59

This assignment counts as 15% of your final mark.

This assignment is an individual piece of work.

The deadline is strict. Penalties for late submissions apply according to the University rules.

Context

This assignment is about developing and using services in C#. The programming language for this

assignment is strictly C#. Marking will consider good coding style (comments in your code, proper

indentation, good structuring of the code, choosing appropriate C# types and constructs, good OO

design, etc.) and marks will be deducted for bad style. As database I expect you to use MySQL as

explored in the lab work (this can be used locally on your laptop/ computer or be the departmental

mysql server (mysql.mcscw3.le.ac.uk)).

Tasks

A rental company offers different types of properties. All properties have records that contain their

address, current status (let/empty), end of current lease arrangement (if applicable). Houses have

additional information on whether they are allowed to be let to students and/or have multiple

occupancy or not. Student flats have a number of allowed occupants. Non-student flats have an

indication as to whether pets and/or children are allowed.

1) You must develop and implement a sensible class structure to capture these properties and

provide methods for their features (get_basic_information will return address, etc, and there

should be methods for the multiple occupancy, student lettings etc allowing access to the

other data in convenient ways. Develop a console programme creating some property

objects to test your operations. You need to decide on the class structure and you must

consider how to use object-oriented concepts to best solve this. [6 marks]

2) Develop a simple database for properties (I am not expecting any normalisation) and insert a

few items. The database should have an additional table ‘lettings’ with the field (rental-no

(primary key), property_no (foreign key), available) which will allow convenient access to

all currently available properties. Choose appropriate data types. [no marks for this part]

3) Develop a WCF service that offers operations to

a. Search for a property by post code (no other searches are needed).

b. Enter a new property into the database (assume that all data will be provided, i,e.

you do not need any domain specific error handling).

c. Get a list of all available properties that can accommodate students.

Remember to consider the design for suitable web services interfaces! [10 marks]

4) Develop a client console application to check the webservice, that has the following

features:

a. It has a textual menu to choose to a) search for property, b) enter new property or c)

show available student lets. This will be used to invoke one of the following

functionalities. Obviously users should be returned to the menu after running one of

the operations.

Advanced Web Technologies

CO4215/CO7215/CO7515

Assignment 1

University of Leicester 2 of 2

Department of Computer Science SRM: 10/15/18 3:07:00 PM

b. Search: Gathers postcode from the user, invokes the UpperOperator from the SOAP

service at https://campus.cs.le.ac.uk/tyche/ws-temp/UpperOperator.wsdl to convert

the entry to upper case before using the service from 3)a. to search and finally

displays the result on screen.

c. Add New: Gathers information from the user, converts the postcode to uppercase

(use the service as in part b) and then inserts the property into the database using the

service from 3)b.

d. Available student let: Displays the list of all available student lets obtained through

the service from 3)c. [6 marks]

Please note that I am not expecting you to make things too complicated; focus on the right

structures and the web service related parts. Do not spend much time on creating complex user

interfaces. Also, do not spend time on error handling (you can assume for the purpose of this

exercise that users will enter the right type of data).

Submission:

You need to submit via Blackboard. The submission should be made using the Blackboard

assignment feature. Once you select this assignment from assessment you will be taken to a different

screen that allows download of this description and the coursework coversheet as well as submission

of the solution.

Your submission should include

A zip archive containing the folder tree with your solution (so the folder that contains

the .sln file and all subtrees thereof). Please only submit zip files (Windows can create

these by right clicking on the folder and saying “add to compressed folder”; do not

submit tar or gzip or other archives). If the file is too large to submit on Blackboard use

filedrop.le.ac.uk for your submission – there is no need to submit on filedrop if you

manage to submit on Blackboard.

A description (typed into the submissions text box in blackboard) which tells me which

tasks you have attempted and in which files the tasks are addressed. This should also

contain the Create Table statement(s) for your database. It is essential that you include

the description in this way.

A completed coursework coversheet (print an sign the pdf file and include a scan/ digital

photo in the Blackboard submission).

Once the files are added and you are happy to proceed with submission click the submit button

(save will not transfer your submission, but allow you to store work at intermediate stages). Once

you have submitted you cannot resubmit.

If you do not follow the submission guidelines your work might not be marked and most certainly

will not be marked in the normal timeframe. Guidelines for late submissions are explained in the

study guide; however, be reminded that being late – even by a minute – will incur a significant

penalty in terms of marks lost.


版权所有:留学生程序网 2020 All Rights Reserved 联系方式:QQ:99515681 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。