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

  Construct a bipartite graph with six nodes and eight edges

Construct a bipartite graph with six nodes and eight edges that has a three-edge matching, or prove that none exists.

  Describing the views

Explain why do you think that views by themselves are insufficient in order to protect the access by the unauthorized users?

  Write a program that can be used to design a suburban scene

Write a program that can be used to design a suburban scene, with houses, streets, and cars. Users can add houses and cars of various colors to a street.

  Give an the output of program

What is an output of this Java program.

  Recognize the the base case

What valid values could be passed as parameters to the function mystery.

  What are the major architectural differences

Write a sequence of instructions to reverse the order of the bits of register DO.

  This database file should be saved as a zip file

Professional Litigation User Services (PLUS) is a company that designs all types of visual aids for judicial proceedings. Clients are usually private law firms, although the District Attorney's office has occasionally contracted for its services.

  Design a method that calculates cost of a semesters tuition

Design a method that calculates the cost of a semester's tuition for a college student at Mid-State University.

  Write a macro to perform the subtraction of two numbers

Write a MACRO to perform the subtraction of two numbers. Use it in a program that inputs 10 pairs of numbers and outputs the difference of each pair.

  Determine the required electrical power

A circular grill of diameter 0.25 m has an emissivity of 0.8. If the surface temperature is maintained at 150°C, determine the required electrical power.

  Identify the method for validating that policy is followed

Identify the method for validating that policy is followed (ex. Review process of DDR-101 system, or procedure for handling CDs place in the general trash).

  Design the storyboards

Design the storyboards, interactivity diagram, object dictionary, and any essential scripts for an interactive program for customers of Carrie's Custom T-Shirts.

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