Find Jobs
Hire Freelancers

Airport

$30-50 USD

进行中
已发布超过 21 年前

$30-50 USD

货到付款
Problem description: I have to design a system, using C++, that must make provision for handling the reservation of a seat or seats (i.e. group booking) on a particular flight, identified by a unique flight number, as well as payment for the tickets(s). First of all the availability of seats on a given flight is checked, then the price of a given seat. Next the following is recorded for a reservation and accompanying payment (we assume that tickets are paid for at the time that the reservation is done): the name of the passenger, the departure date, the scheduled departure and arrival times, the departure and arrival airports. It also records the cost of the ticket(airfare plus airport duty), and the credit card number (we make provision for credit card payments only). For simplicity sake we also assume that this system does not make provision for enquiries on the availability of alternative flights to a particular destination. Furthermore, we begin with a single airline, and later extend it to include more than one airline. What needs to be done is to create application objects to provide services to client programs. These objects co-operate to provide an overall service to a client. E.g., a reservation object may use an available-seats object, a ticket-fare object, and a payment object to process a user's transaction to purchase an airline ticket. Within the CORBA framework, we thus have to create application objects (i.e. object implementation) for each of the "services" mentioned above , as well as clients of these objects, and then use the ORB for communication between these clients and server objects. The IDL interface definitions of these server components inform the clients exactly what operations are supported, the types of their parameters, and what return types to expect. Each operation has a signature, expresses in IDL, that contains the following mandatory elements: 1. An operation identifier (also called an operation name) 2. The type of the value returned by the operation 3. A (possibly empty) list of parameters, each with a name, type, and direction indication. The direction will be one of in, out, or inout, stating that the parameters are being transmitted from the client to the object, are being returned as a result from the operation, or is client data to be modified by the operation, respectively. ## Deliverables On the client side only the IDL is needed to write client code that can invoke operations on these server objects. The corresponding programming language constructs (in this case C++) are then generated by the IDL compiler supplied by the ORB vendor (in this case Mico) The IDL compiler also generates stub code that the client links to and this translates, or marshals, the programming language data types into a message format for transmission as a request to an object implementation. The object implementation also has linked to it similar marshalling code, i.e. a skeleton, that unmarshalls the request into programming language data types. The skeleton can be generated by a different IDL compiler with a different language mapping. Programming steps: The following programming steps are typically required to write a distributed client-server system in CORBA and an application programming language (say C++): 1. Define the interface, using the standard IDL 2. Implement these interfaces with C++ classes 3. Write a server main function which creates instances of these classes 4. Write a client main function to connect to the server and to use the server's objects On the server side, the aim is to create a server, called ReservationOfficeSrv, which contains a ReservationOffice object with the following methods: 1. ListAvailableSeats 2. GetPrice (for a specified seat) 3. makeReservation (includes credit card payment) 4. makeGroupReservation (also includes credit card payment) --Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.-- ## Platform Windows 98 ## Deadline information Must be completed by 12h00 04-08-2002 GMT +02:00. Coders from anywhere in the world welcome.
项目 ID: 2861694

关于此项目

3提案
远程项目
活跃22 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
See private message.
$42.50 USD 在14天之内
4.5 (5条评论)
2.7
2.7
3威客以平均价$142 USD来参与此工作竞价
用户头像
See private message.
$42.50 USD 在14天之内
4.6 (60条评论)
4.5
4.5
用户头像
See private message.
$340 USD 在14天之内
3.9 (5条评论)
4.5
4.5

关于客户

SOUTH AFRICA的国旗
South Africa
0.0
0
会员自7月 19, 2002起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。