Code for 4 assignment questions

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

Skills: Data Entry, Engineering, MySQL, PHP, Software Architecture, Software Testing

See more: the sum of 11 times s and 3, sales person on hire, questions part 2, php data entry form example, mac answers, integers form 1, id to code, hire part time sales person, hire big letters, hire a person to present, hire a bear, free data entry form software, data entry software for mac, create a web store for free, cost to hire data entry, code 6 d, big bear software, assignment method example, another word for hire, value stores, security for hire, another word for data entry, write assignment, mac os x 10 6, code for hire

About the Employer:
( 1 review ) United States

Project ID: #3797391

Awarded to:


See private message.

$76.5 USD in 2 days
(28 Reviews)

3 freelancers are bidding on average $43 for this job


See private message.

$42.5 USD in 2 days
(15 Reviews)

See private message.

$8.5 USD in 2 days
(17 Reviews)