Project #20082 - Java Application

 

 Here is the problem narrative: for assignment 3.3, write a Java application that will:

 

1.    Take an input using an input dialog box for the item price (eg 2.35) and assign it to a variable (must be a type that will take decimal values).

 

2.    Take an input for a discount percentage expressed as a decimal (eg 0.25) and assign it to a variable (must be a type that will take decimal values).

 

3.    There are only 3 acceptable entries (0.10, 0.15 and 0.25). Check the value of the input for discount percentage and if the entered discount percentage is not one of these three values then set the discount percentage equal to 0.10.

 

4.    Use if statements to determine which of the three discount percent values has been entered/set and calculate the discounted price (you try to figure out the algorithm for calculating the discounted price.

 

5.    Output the result using a message dialog box and provide some documentation for your code. See the following sample input/output:

 

 


 

Subject Computer
Due By (Pacific Time) 12/20/2013 12:00 am
Report DMCA
TutorRating
pallavi

Chat Now!

out of 1971 reviews
More..
amosmm

Chat Now!

out of 766 reviews
More..
PhyzKyd

Chat Now!

out of 1164 reviews
More..
rajdeep77

Chat Now!

out of 721 reviews
More..
sctys

Chat Now!

out of 1600 reviews
More..
sharadgreen

Chat Now!

out of 770 reviews
More..
topnotcher

Chat Now!

out of 766 reviews
More..
XXXIAO

Chat Now!

out of 680 reviews
More..
All Rights Reserved. Copyright by AceMyHW.com - Copyright Policy