Create a java applet that calculates the shipping cost

Assignment Help Computer Engineering
Reference no: EM131937054

Problem

Candle Line is a business that sells designer candles and personal gifts. They cater to customers who want to send gifts for birthdays, holidays, and other special occasions. Candle Line's e-commerce site is an interactive Web site that uses a shopping cart to allow customers to purchase items. As customers choose the candles and gifts they wish to purchase, the items are added to an electronic shopping cart. Approximately 300 people per day are accessing Candle Line's Web site, but many customers have complained that the shipping charges become a hidden cost when they are placing an order. In order to improve customer relations, the company would like to give its customers a choice in shipping methods and would like to create a way for customers to calculate their shipping costs before finalizing their order.

Create a Java applet similar to the one shown in Figure 4-69 that calculates the shipping cost for customer purchases. Eventually, the program will read the total price of purchases as data from the Web page; for now, the user will be able to enter the total price as an input value and then have the program calculate shipping charges. If a customer wants priority delivery (overnight), then the shipping charge is $16.95. If the customer prefers express delivery (2 business days), then the shipping charge is $13.95. If the customer wants standard delivery (3 to 7 business days) and the total cost of the order is more than $100.00, then candleLine ships the items to the customer free; if the order is less than $100.00, then CandleLine charges $7.95 for standard delivery.

697_Figure 4-69.jpg

Verified Expert

In this assignment, a java applet has been designed and implemented for calculating the total amount of the candles purchased from Candle shop, along with the shipping charges. The shipping charges are applied according to the type of product delivery. First, the required objects of the swing components have been declared. Next, they are added into their respective panels. All of these are done inside the init() method. After that, inside actionPerformed() method, whatever text input in the textbox, has been converted to integer value as amount. Next, it got converted to double through type conversion method.At last, the if-else blocks are applied to print the total amount of the products purchased according to their delivery types.

Reference no: EM131937054

Questions Cloud

Create an applet that could run from a browser : We Love Pets is a pet clinic with several locations. The office manager has asked you to create an applet that could run from a browser at all the offices.
How a dna sequence is converted into a phenotypic trait : Explain how a DNA sequence is converted into a phenotypic trait. Why doesn't a particular
What is the value of the investment 3 years from today : An investment offers the following cash flows: $520 today, $844 one year from now, $132 in 2 years, and $423 in 3 years.
Culture and purifying protein : You will be preparing a 500ml culture and purifying protein ( lactate dehydrogenase)and each mutation. what is a complete procedure for this part.
Create a java applet that calculates the shipping cost : Create a Java applet similar to the one shown in Figure 4-69 that calculates the shipping cost for customer purchases.
Discuss the benefits to assess the value of the investment : What are some of the benefits afforded to organizations implementing voice recognition technologies in these settings? How can you quantify these benefits.
Problem of getting sufficient replacement organs : Xenotransplantation has been suggested as a temporary solution of the problem of getting sufficient replacement organs to meet current needs.
Write try and catch statement that will test a value entered : Write a try statement and catch statement that will test a value entered by the user into a Text.
Is this a worthwhile investment : An investment costs $1200 up front and $800 five years from now. It yields returns of $400 every fourth year (in years 4, 8, 12, etc) for the next 20 years.

Reviews

inf1937054

10/5/2018 11:02:58 PM

Thank you for assigning me the perfect work. I am very glad That I have made an association with you people, with such hard working organization. Thank you again for your cooperation and help.

inf1937054

8/6/2018 12:20:44 AM

If you are able, please have the assignment done.I need help with the solution and setting up the assignment.On steps 2 and 3 am i typing this in command promt? How do i find out the directory of Javas installation.How do i open it in command prompt. I have Java on my computer and in my bottom tabs open from the control panel. Please help me with it?

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd