三道英文题,高手进来,C# AND UML设计的
first:
you are given two rectangles,each defined by an upper left(UL)corner and a lower right(LR) corner.Both rectangles'edges will always be parallel to the x or y axis as shown in Figure 7.2 . Write a window program that user can use mouse to draw the rectangle add the program will determines whether the two rectangles overlap. For convenience, you may use the following structs:
Struct point{
Int x;
Int y;
}
Struct rect{
struct point UL;
struct point LR;
}
The function prototype is As following:
int overlap(struct rect A,struct rect B );
second:
write queue that people from different nations can go into and out.Every time a person comes out of the queue, he/she tells the name in his/her mother tongue. Feel free to use and UI Controls to represent the queue and people.
At present, there are three kinds of persons in the queue. They are Chinese,Japanese, and American. It is possible that in the future other people from other countries may go into quequ as well.
You are required to use UML diagrams to illsustrate the static structure and dynamic behavior of the system.
third:
Write some infrastructure code for a distributecd application.The code can help different forms, and the data on the forms to be serialized. The serialized stream can be saved on different databases, or text files, or binary file, or XML,or ...
You are required to use UML diagrams to illustrate the static structure and dynamic behavior of system.
You arerequired to write documentations both for programmers who implement your design and programmers who use your infrastructure.