Determine the amount of discount a person should receive.If the bill is more than 2000, then the person should receive a 15% discount.If the bill is...
This question has been answered
Question

Determine the amount of discount a person should receive.  If the

bill is more than 2000, then the person should receive a 15% discount. If the bill is 2000 dollars or less, the person does not receive a discount of any kind.        




Sample Data:
500
2500
4000
333.33
95874.2154

  Enter the original bill amount :: 500Bill after discount :: 500.00


Enter the original bill amount :: 2500
Bill after discount :: 2125.00


Enter the original bill amount :: 4000
Bill after discount :: 3400.00


Enter the original bill amount :: 333.333
Bill after discount :: 333.33


Enter the original bill amount :: 95874.2154
Bill after discount :: 81493.08


Discount.java
//(c) A+ Computer Science
//www.apluscompsci.com


//Name - 
//Date -
//Class -
//Lab -


import static java.lang.System.*;
import java.util.Scanner;


public class Discount
{
//instance variables and constructors could be used, but are not really needed

//getDiscountedBill() will return final amount of the bill
// if the bill is >2000, the bill receives a 15% discount
public static double getDiscountedBill(double bill)
{
return 0;
}
}




DiscountRunner.java
//(c) A+ Computer Science
//www.apluscompsci.com


//Name - 
//Date -
//Class -
//Lab -


import static java.lang.System.*;
import java.util.Scanner;


public class DiscountRunner
{
public static void main( String args[] )
{
Scanner keyboard = new Scanner(System.in);

out.print("Enter the original bill amount :: ");
double amt = keyboard.nextDouble();



}
}

Answered by Expert Tutors

consectetur adipiscing elit. Nam lacinia pulvinar t

congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui
Step-by-step explanation

, ult

a. Fusce dui lectus, congue vel laoreet ac, dictum vi

m ipsum


sus ant


a. Fusce


or nec

ng elit. Nam lacinia pulvinar to

o. Donec aliquet. Lorem i

ec facilisis.

o


nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibu


nec facilisis. Pellentesque dapibus efficitur laoreet. Na


Donec aliquet. Lorem ipsum dolor sit amet, consectetur a


congue veldictum vitae odio. Donec aliquet. Lorem ipsum dol

rem ipsum dol

at, ultrices ac magna. Fusce dui lectus, congu

or nec facilisis. Pellentesque dapibus

inia pulvinar tortor nec facilisis. Pellentesque dapibus

lestie consequat, ultrices a

risus ante, dapibus a molestie consequat, ultrices

et, consectetur adipiscing elit. Nam lacinia pul

rem ipsum dol

o

a. Fusce dui lectus, congue vel laoreet ac, dictum vi

gue vel laoreet ac, dictu

ac, dictum vitae odio.

m ipsum

sus ant

a. Fusce

or nec


usce dui lectus, congue vel

o

ongue vel laoreet ac, dictum vitae odio. Donec aliq

a molestie co

trices ac magna. Fusce dui lectus,

facilisis. PellentesqueFusce dui lectus, congue vel

fficitur laoreet. Nam risus ante, dapib

, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, co

acinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur lao

tesque dapibus efficitur laoreet. Nam risus ante, dapibus

rem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. P


a molestie co

o

ac, dictum vit

DiscountBillClass.jpg

1 Attachment
DiscountBillClass.jpg
jpg
The student who asked this found it Helpful
Overall rating 100%

"Thank You!"

Get unstuck

487,593 students got unstuck by Course
Hero in the last week

step by step solutions

Our Expert Tutors provide step by step solutions to help you excel in your courses