Question
Develop an JAVA application for Library that will generate bill of sale for a customer if the customer has 3 items. The application should start
Develop an JAVA application for Library that will generate bill of sale for a customer if the customer has 3 items. The application should start by listing the prices of the library services:
1- Borrowing 1 CD: cost 4.5 CAD
2- Borrowing 1 CD: cost 4.5 CAD
3- Borrowing 1 eBook: cost 2.77 CAD Then your application should ask the student to enter the year then his/her name and the email address using Scanner Object and Standard keyboard. For each service, your application should accept the required quantity. Once all the information is entered, it should compute charges for each service(i.e. multiply quantity and cost), the sub-total (add the charges of all the services), and HST. The HST is 13% of the sub-total. Display the bill of sale for the customer including his/her name, details of all the items, sub-total, taxes and net total (sub-total plus taxes) on the screen. Use System.out.printf functions to print all numbers in 5 places and 3 places after the flouting point, use final variables when necessary.
The output of the program should be like this as follows
Welcome to Humber College Library Enter your Year 2022 Enter your Name Rania Arbash Enter your Email rania@hotmail.com Our Library provide several services: 1- Borrowing 1 CD 2- Borrowing 1 DVD 3- Borrowing 1 eBook: cost 4.5 CAD cost 5.557 CAD cost 2.77 CAD How many CD would you like to borrow? 2 How many DVD would you like to borrow? 1 How many eBook would you like to borrow? 3 The cost of borrowing the CDs is 9.000 CAD The cost of borrowing the DVDs is 5.557 CAD The cost of borrowing the eBooks is 8.310 CAD Thanks Rania Arbash for borrowing items from Humber Library. The sub total is 22.867CAD. The tax is 2.973CAD. The total is 25.840CAD Evaluation: Your work will be evaluated based upon the following criteria: Functionality- Accepting the needed data with proper message (1 point) Performing needed calculations (2 points) Displaying the output. (1 point) Output- - Provides the required output (1 point) Display the information using proper format (1 point) The output is well organized for the Bill of Sale (1 point) Quality - Declared the needed constants (1 point) Used proper Java Conventions while naming different identifiers (1 point) Proper indentation and comments (1 point)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started