Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Random Receipt Number: Generate a random receipt number between 1 0 0 0 and 2 0 0 0 . 2 0 0 0 is exclusive,

Random Receipt Number:
Generate a random receipt number between 1000 and 2000.2000 is exclusive, 1000
is inclusive.
2. Date Generation:
Generate a random date in the format (Month Day Year) for the receipt.
Year is in between 1900 and 2100.2100 is exclusive.
The day is between 1 to 28(Both inclusive)
3. Input Handling:
Utilize the Scanner class to take user input for item names and prices.
Continue taking input until the user enters "DONE" for the item name.
4. Tax Calculation:
If the item is categorized as "Food" or food, set the tax rate to 0.
For other items, set the tax rate to 30%.
5. Receipt Details:
Display each item's details, including the item number, name, and calculated price
(including tax).
The first letter of the item should be written in capital. If the user has entered in
lowercase, you need to fix it. Please check the sample output.
6. Total Calculation:

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

Database Design Application And Administration

Authors: Michael Mannino, Michael V. Mannino

2nd Edition

0072880678, 9780072880670

More Books

Students also viewed these Databases questions

Question

What is Change Control and how does it operate?

Answered: 1 week ago