Find Jobs
Hire Freelancers

Code for 4 assignment questions

$30-125 USD

Completed
Posted over 18 years ago

$30-125 USD

Paid on delivery
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
Project ID: 3797391

About the project

3 proposals
Remote project
Active 19 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$76.50 USD in 2 days
5.0 (28 reviews)
4.9
4.9
3 freelancers are bidding on average $43 USD for this job
User Avatar
See private message.
$42.50 USD in 2 days
5.0 (15 reviews)
3.0
3.0
User Avatar
See private message.
$8.50 USD in 2 days
5.0 (17 reviews)
2.8
2.8

About the client

Flag of UNITED STATES
United States
5.0
1
Member since Jul 8, 2005

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.