Concluído

2nd year university programming assignment

Hi,

i need a university assignment due in under 36 hours, i need it done in 24-30 so i can familiarise myself with it when i present.

its all in C# and if you know what your doing it should take only a few hours if that.

it will be in 2 stages and a form based system in the end.

I need to know within the next 5 to 6 hours if anyone can do it.

assignment files can be sent on request.

the source code needs to work in Microsoft visual c# 2005 express edition or other compatible development platform.

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):

a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

------------------------------

**_PART 1_**

A **cus tomer** has a name and makes zero or more purchases. Your customer record (class) should store for each customer their name and a list of amounts (the value of each purchase). Amounts may be represented as a double.

An **item** has a name, price and sales count attributes.

The objective of this laboratory is to create a program that: (i) identifies empty records and (ii) sorts the records.

*Stage 1*

Define the Customer and Item classes.

*Stage 2*

Define an interface called PrintableRecord which has the follow methods:

string GetID ();

bool IsEmpty ();

void Print ();

*Stage 3*

Extend both Customer and Item classes so they implement the PrintableRecord interface. A customer record is empty when there are no purchase amounts (i.e. the list of amounts is empty). An item record is empty where the sales count is zero. The customer id is the prefic "C" plus its name. The item id is the prefix "I" plus its name. The print method prints the record to the console.

*Stage 4*

Write a method PrintEmptyRecords which has one input, a generic list of PrintableRecords, that prints each record in the input list to the Console. Write test code that (i) creates a list of Customer records and Prints its empty records using the PrintEmptyRecords method and (ii) creates a list of Item records and Prints its empty records using the same PrintEmptyRecords method.

*Stage 5*

Define another interface called SortedPrintableRecord which extends the PrintableRecord interface by also implementing the IComparable interface as in:

interface SortedPrintableRecord : PrintableRecord, IComparable

{

}

Write an additional method PrintSortedRecords that sorts then prints the non-empty records of an input generic list of SortedPrintableRecords.

Write code that verifies this works for both lists of customer and item records.

PART 2

The PrintableRecord interface now contains:

string GetID ();

double GetValue (); // The extra method

bool IsEmpty ();

void Print ();

You will create a Window's Form application that presents a table (use ListView or similar) with two columns: ID and Value. Your application will allow the user to load Item records or Customer records into this table. The user shall be able to choose (toggle between) sorted and unsorted. Records are sorted when they are in GetValue order.

Your form will also include a text area that prints (shows) a selected (from the table) record.

The input data: a list of Items and a list Customers, can be hardcoded in your program. These lists are both declared as:

List< PrintableRecord> items;

List< PrintableRecord> customers;

for stage 1 and 2, or as List< SortedPrintableRecord> for stage 3 this week.

The new .NET form components used this week are: menus and ListView.

*Stage 1 (2.5 marks):*

Write all code required by the week 10 laboratory for stages 1 to 4 but also include the GetValue method in your PrintableRecord interface.

*Stage 3 (3 marks):*

You application supports a menu to choose items or customers for loading. It shows a two column table loaded with item records or customer records (their id and value). It allows a record (table row) to be selected by the user. It shows the content (print) of a record in a text area when the record is selected. It also shows a count of the empty records.

*Stage 4 (4 marks):*

Your application also supports a tick box that allows a user to toggle the table between sorted and unsorted (based on the records value). The unsorted order is the order in which the records are first loaded into the table. This builds on last week's stage 5.

## Platform

the source code needs to work in Microsoft visual c# 2005 express edition or other compatible development platform.

Habilidades: Vale Tudo, Programação C#, Engenharia, MySQL, PHP, Arquitetura de software, Teste de Software

Ver mais: write programming code, what you need to know for programming, what is visual programming, what is server side programming, what is hire purchase, what is functional programming, what is a string in programming, what is application programming interface, what is an interface in programming, what is an application programming interface, what is a method in programming, what is a class in programming, what can you do with programming, what are classes in programming, web listview, web development stages, string programming, string prefix, string in c programming, string c plus plus, software development price list, programming what is a class, programming plus, programming methods, programming method

Acerca do Empregador:
( 1 comentário ) Australia

ID do Projeto: #2969263

Premiar a:

bitdonkey

See private message.

$55.25 USD em 1 dia
(119 Avaliações)
6.2

3 freelancers are bidding on average $52 for this job

2fitsolutions

See private message.

$51 USD em 1 dia
(35 Comentários)
5.7
falvarisqueta

See private message.

$51 USD em 1 dia
(0 Comentários)
0.0