پارس‌کدرز چگونه کار می‌کند؟

از پارس‌کدرز بیشترین بهره را ببرید و رویای کاری خود را زندگی کنید.

پارس‌کدرز خریداران یا کارفرمایان را به مجری‌ها /فریلنسرهای خبره‌ای متصل می‌کند که برای انجام پروژه آماده هستند.

2 پروژه RPC, RMI

ده سال پیش منتشر شده

تعداد بازدید: 1913

کد پروژه: 14832


شرح پروژه

Individual Assignment 2 Introduction The goal of this assignment to write a history program that returns a list of events that took place on a particular day in history. The program will consist of two parts: a client and server. The server maintains the data and the client supports add and query operations. The server accepts requests from clients in the form of remote procedure calls (RPC) that are add or query operations: · add This enters an event. It contains three parameters: the month, the day, and a string describing the event. It returns a value of zero if the insert cannot take place for some reason (this should not generally happen). Otherwise it returns 1. · query This returns the list of events in history for a specified month and day. The procedure is called with two parameters: the month and day. The result of the query operation is either a failure message or a list of events in order (ascending order). Practicing a Plagiarism-free environment: Plagiarism is becoming a serious issue in academic environment and therefore, I am seriously practicing the development of plagiarism-free environment! As such I actively test whatever you send me (proposal, assignment, drafts, …) and should I find any case I will further raise it for legal or academic dishonesty punitive actions -----------------------------------------------------------------------------------------! Individual Assignment 3 The goal of this assignment is to use Java RMI to write a program to find the five nearest airports to a given town. You will have two server programs that are contacted through remote methods: one is responsible for looking up places, returning the longitude and latitude for a place; the other is responsible for taking a latitude and longitude as input and returning the five nearest airports. The following figure illustrates the process: You will be writing two servers and one client for this assignment. The client looks up the two RMI services: the first for looking up places and the second for looking airports. It contacts the first service to look up the place (city, state) to find its latitude and longitude and then contacts the second service to get a list of nearest airports. You may need to define a data structure to store state, city, latitude, and longitude information. For this assignment, you will define two interfaces: 1. An interface that defines the places service: a method that takes a city and state and returns information about the place. 2. An interface that defines the airport info service: a method that takes a latitude and longitude and returns an array of nearest airports. The places service itself accepts two arguments: the name of the place and the state of the place. It returns a structure containing: · full place name · state · latitude · longitude Upon startup, the service reads in the contents of the file places2k.txt (extract it from places.zip), a list of place names compiled by the U.S. Census. The places file contains data for all Incorporated and Census Designated places in the 50 states, the District of Columbia and Puerto Rico as of the January 1, 2000. The file is plain ASCII text, one line per record: You may also need to define a data structure to store data such as the airport code, name, state, latitude, and longitude. The interface definition [2] defines the interface for the lookup function, which accepts a latitude and longitude (two floats or doubles) and returns an array of the five closest airports. The airport service itself accepts two arguments: the latitude and longitude that was found from the places service. It returns an array of the closest airports, with each structure containing: · Airport code · Airport name · Airport\'s latitude (float or double) · Airport\'s longitude (float or double) · Distance from search city (miles) Upon startup, the service reads in the contents of the file airport-locations.txt (extract it from places.zip), which contains a list of 1,065 airport locations in the U.S. The file is plain ASCII text, one line per record but includes blank lines and a header on the first line. Its format is: [airport_code] latitude longitude city Calculating distance: You can approximate the distance between two points by using spherical trigonometry and calculating the great circle distance. The distance in nautical miles between two points is: d = 60 cos-1(sin(lat1) sin(lat2) + cos(lat1) cos(lat2) cos(lon2-lon1)) Where lat is latitude and lon is longitude. Both are expressed in degrees. In Java, you\'ll have to convert the values to radians (Math.toRadians) before calling Math.sin or Math.cos and convert the result from Math.acos back to degrees with Math.toDegrees. Finally, you\'ll need to convert the result from nautical miles to statute miles by multiplying by 1.1507794 (1 nautical mile = 1.1507794 statute miles). Practicing a Plagiarism-free environment: Plagiarism is becoming a serious issue in academic environment and therefore, I am seriously practicing the development of plagiarism-free environment! As such I actively test whatever you send me (proposal, assignment, drafts, …) and should I find any case I will further raise it for legal or academic dishonesty punitive actions!


زیرساخت:
توضيح پروژه 2 :يک سرور داريم و يک کلاينت داريم.مي خواهيم توسط استاندارد کربا يک کربا سرويس بنويسيم که در کامپيوتر سرور بصورت ديتا بيس يا فايل text فرقي ندارد.چون اطلاعات زياد نيست.سه تا فيلد دارد .يک فايل history يا جدول History ايجاد کند به اين ترتيب که کلاينت وصل شود بصورت ريموت به کربا سرويسي که برايش فراهم شده است وصل شود به سرويس و دو عمل add و query را انجام دهد در عمل add بگويد آرگومان هاي ورودي ماه و روز و يک رشته است که event را تشريح مي کند مثلا مي گوييد در ماه نوامبر 12event 1 رخ داد.اين را بصورت string مي نويسيد.وقتي add را مي زنيم بصورت ريموت در سرور در آن فايلي که event ها قرار دارد ديتابيسي کهevent ها قرار دارد اين ذخيره شود.هر add که مي زنيم يک event ذخيره شود .بصورت کلي کلاينت هاي مختلفي ممکن است از اين استفاده کنند از کلاينت هاي مختلف ممکن است event هاي مختلف دريافت کرده و در ديتابيس ذخيره کنيم.در عمل query مي گيرد مثلا نوامبر 12 هم تمام event هايي که در اين تاريخ رخ داده بصورت order مرتب شده بعنوان خروجي بدهد به ترتيبي که در فايل قرار گرفته بدهد.دو متد add و query را قرار داده بعد آن ها را پياده کنيد خواندن از فايل نوشتن درفايل يا ديتابيس را بايد انجام دهيد.


قابل تحویل:

این پروژه شامل 1 فایل مهم است، لطفا قبل از ارسال پیشنهاد حتما نسبت به بررسی این فایل اقدام فرمایید.

مهارت ها و تخصص های مورد نیاز


بودجه

100,000 تومان تا 300,000 تومان

مهلت برای انجام

15روز

وضعیت مناقصه

بسته


درباره کارفرما

عضویت ده سال پیش

2 پروژه ثبت شده ،
0 پروژه در حال انجام ،
0 پروژه آماده دریافت پیشنهاد ،
نرخ پذیرش پیشنهاد 0%

برای پیدا کردن پروژه‌های مشابه ثبت نام کنید و پروفایل خود را بسازید.

ورود با گوگل
یا
نام نباید خالی باشد.
نام خانوادگی نباید خالی باشد.

نیاز به استخدام فریلنسر یا سفارش پروژه مشابه دارید؟

سفارش پروژه مشابه

قادر به انجام این پروژه هستید؟

ثبت نام کنید

مهلت ارسال پیشنهاد قیمت برای این پروژه تمام شده است

سری به پروژه‌های مشابه بزنید

2 پروژه RPC, RMI

ده سال پیش منتشر شده

روش کار در پارس‌کدرز

به رایگان یک حساب کاربری بسازید

مهارت‌ها و تخصص‌های خود را ثبت کنید، رزومه و نمونه‌کارهای خود را نشان دهید و سوابق کاری خود را شرح دهید.

به شیوه‌ای که دوست دارید کار کنید

برای پروژه‌های دلخواه در زمان دلخواه پیشنهاد قیمت خود را ثبت کنید و به فرصت‌های شغلی منحصر به فرد دسترسی پیدا کنید.

با اطمینان دستمزد دریافت کنید

از زمان شروع کار تا انتهای کار به امنیت مالی شما کمک خواهیم کرد. وجه پروژه را از ابتدای کار به امانت در سایت نگه خواهیم داشت تا تضمین شودکه بعد از تحویل کار دستمزد شما پرداخت خواهد شد.

می‌خواهید شروع به کار کنید؟

یک حساب کاربری بسازید


بهترین مشاغل فریلنسری را پیدا کنید
رشد شغلی شما به راحتی ایجاد یک حساب کاربری رایگان و یافتن کار (پروژه) متناسب با مهارت‌های شما است.

پیدا کردن کار (پروژه)

تماشای دمو روش کار