Find Jobs
Hire Freelancers

Write some Software

£10-20 GBP

完了済み
投稿日: 7年以上前

£10-20 GBP

完了時にお支払い
4 questions need completed ASAP, in JAVA with error checking and comments. Write a program that takes input of integers N and M (separated by space) on first line, followed by an array of N integers on second line (separated by space) and then M more lines, each with an integer. For each of the of those ​*M*​ integers, output "True" (without quotes), if that number is present in the array N. Output "False" (without quotes) otherwise. Constraints: 0 < N < 20,000 0 < M < 15,000 Your output lines should not have any trailing or leading whitespaces Input: 4 2 99 12 10 23 23 25 Output: True False Explanation: An array of size 4 is taken, followed by 2 lines. 23 outputs True, since 23 is present in above array. 25 outputs False because it was not in the array of N numbers. 2. Write a program that takes input of an integer N, followed by N more integers. The program should calculate the median of the set of N numbers. If N is even, median is N/2 th number. Input#1: 5 1 8 22 13 4 Output#1: 8 Input#2: 4 9 1 10 11 Output#2: 9 3. Write a program that takes input of an integer N, followed by N lines of input sentences. For each sentence, reverse each word in each sentence. The order of words are not reversed. Note: Your output lines should not have any trailing or leading whitespaces. 0 < Max Number of Inputs <= 100 0 < Number of Words in one input < 100 0 < Length of Word In A Sentence < 20 Example: Input: 3 RemoteIo is awesome Candidates give interview best candidates are selected Output: oIetomeR si emosewa setadidnaC evig weivretni tseb setadidnac era detceles 4. You've built an in-flight entertainment system with on-demand movie streaming. Users on longer flights like to start a second movie right when their first one ends, but they complain that the plane usually lands before they can see the ending. So you're building a feature for choosing two movies that will best fit the flight length. Write a program that takes an input of an integer on the first line representing the flight length, followed by an array of integers on the second line (separated by space), each representing a different film's duration in minutes, and returns the best two movie durations that will fill the most of the flight time, or false if no movies match. When building your function: Assume your users will watch no more than two movies Don't make your users watch the same movie twice Optimize for runtime over memory Input: 90 25 60 10 20 80 Output: 10 80 Explanation: of the movies available, the 3rd and 5th will be the best fit for the flight, in that they will fill the most of the duration.
プロジェクト ID: 11847870

プロジェクトについて

6個の提案
リモートプロジェクト
アクティブ 7年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
アワード者:
ユーザーアバター
£13 GBP 3日以内
0.0 (0 レビュー)
0.0
0.0
この仕事に6人のフリーランサーが、平均£59 GBPで入札しています
ユーザーアバター
Hi sir, I have read the four programs and will complete within 4 hours. ready to start now. thanks.....
£55 GBP 1日以内
5.0 (197 レビュー)
5.8
5.8
ユーザーアバター
hi mate this is Asad, i have a vast experience in java programming, need an A grade? contact me. cheers :)
£50 GBP 1日以内
4.9 (30 レビュー)
5.7
5.7
ユーザーアバター
Hi there! I'm a professional Software Developer, and I'm ready to implement those programs. Price i updated because this is the reasonable price. Thanks Best, Maher
£50 GBP 1日以内
4.9 (39 レビュー)
5.1
5.1

クライアントについて

MEXICOのフラグ
Ballynahinch, Mexico
4.2
1
お支払い方法確認済み
メンバー登録日:10月 20, 2016

クライアント確認

ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。