Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

. In Canada, anytime one purchases from a store, the government imposes a sales tax. In most provinces, there are two levels of sales taxes:

. In Canada, anytime one purchases from a store, the government imposes a sales tax. In most provinces, there are two levels of sales taxes: The GST, which is a Federal tax, is set at 5% of the purchase price. Then, there is the PST, which is a Provincial tax that most provinces charge. The PST rate is dependent on the province. For instance, in British Columbia, the provincial rate is 7 % of the purchase price. You are to print the following receipt for the purchase of products in B.C. It should look similar to the following:

No. of Units: 10

Unit Price: $ 20.00

Purchase Amount: $ 200.00

Sales Taxes:

GST: $ 10.00

PST: $ 14.00

Total: $ 24.00

Total Amount: $ 224.00

Write out the code in Java such that it will accept input from the user via the terminal for the number of units and the unit price and produce the above report. Note that the report is well-formatted

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions