Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!