Find Jobs
Hire Freelancers

Code for 4 assignment questions

$30-125 USD

完了済み
投稿日: 19年近く前

$30-125 USD

完了時にお支払い
Be sure to fully explain all answers and to clearly present all code with comments. 1. Write a class named Order. An Order is described by • the sales tax rate for that Order • the subtotal cost of the Order • the shipping cost for that Order • the sales tax for that Order • the total cost for the Order b)Include a constructor method. The constructor should allow the user of the class to set the the sales tax rate. Other fields should be set to zero c)Include a method setCost that defines the value for the subtotal cost of the Order. It then computes the sales tax on that order, computes the shipping costs according to the rule given below and computes the total cost for that Order. Shipping cost is computed by If you spend : Your shipping charge is $0.00 ??" $ 50 8% of the subtotal order cost $50.01 - $100 3% $100.01 and up 0, shipping is free d) Include a method named getTotalCost that returns the value of the total cost for the Order. The total cost is the sum of the item cost, the shipping and the sales tax 2. a)Write a class called Customer that stores two fields, one to store the first name of a person and another to store the last name of a person. It also stores a customer code and a security password for each customer. The customer code is a five digit integer code b) Include a constructor which allows the client to initialize a Customer with a specific first and last name and a specific customer code. 3. Modify the Customer class by adding a method named SecurityPassword. This method produces a string by doing the following • Paste together the first and last names into one big string • Convert that to lower case • Shuffle that word. One way to do this is by picking two letters at random and exchanging them. Repeat this hundreds of times and the word will be well shuffled. Hint: Use the Random class to generate two random integers you need each time THE REMAINING PART OF THE QUESTIONS ARE LOCATED IN THE 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). ## Platform Mac OS X - word is available JGrasp 4. Include a Customer method named toString. It should produce a string that is formatted as shown below : CUSTOMER INFORMATION Name : , Id Code : Security Password : 4. Write a program named Nonsense. It prompts the user to enter 10 words. Your program should create and print a table that lists each word, its length and puts a special symbol next to the longest and the shortest words. For example, if the user entered the following list: Apple Bear Cantelope Dog Cat Pickle Emu Egg Elephant Estrogen The program should display: Apple 5 Bear 4 Cantelope 9 *longest* Dog 3 Cat 3 Pickle 6 Emu 3 Id 2 *shortest* Elephant 8 Estrogen 8
プロジェクト ID: 3797391

プロジェクトについて

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

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
アワード者:
ユーザーアバター
See private message.
$76.50 USD 2日以内
5.0 (28 レビュー)
4.9
4.9
この仕事に3人のフリーランサーが、平均$43 USDで入札しています
ユーザーアバター
See private message.
$42.50 USD 2日以内
5.0 (15 レビュー)
3.0
3.0
ユーザーアバター
See private message.
$8.50 USD 2日以内
5.0 (17 レビュー)
2.8
2.8

クライアントについて

UNITED STATESのフラグ
United States
5.0
1
メンバー登録日:7月 8, 2005

クライアント確認

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