Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a Java program that calculates and print out sales price(including tax). Your program will prompt the user for information about three parameters: integer number

Write a Java program that calculates and print out sales price(including tax). Your program will prompt the user for information about three parameters: integer number of price, real number of sales tax (%) and integer number of age of the customer. One method should receive the parameters and return how much money to pay to buy the good. For example, the call pay(100.0, 9.5, 25) should return 109.5. The customer should receive discount of 10% from the original price if age is >60, should receive discount of 5% from the original price if age is 55. For example, the call pay(100, 9.5, 65) should return 98.55

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

6th Edition

1943153035, 978-1943153039

More Books

Students also viewed these Databases questions

Question

1. Which is the most abundant gas presented in the atmosphere?

Answered: 1 week ago

Question

LO5 Describe job analysis and the stages in the process.

Answered: 1 week ago