Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help building this Java program using the imports only JOptionPane and uitl.Array Scenario You are asked to program for a bookstore that will

I need help building this Java program using the imports only JOptionPane and uitl.Array

Scenario

You are asked to program for a bookstore that will be launching soon. The bookstore has three types of items: textbooks, apparels, and gift items. Each item has an item name and sales price. Initially, the store can have a maximum of 100 items. The bookstore is offering an opening discount on items as follows:

Item Type Discount Textbook 30% Apparel 10% Gift items 20%

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed
\fSample Input/Output: Sample Menu Input *"GMU BookStore** Choose one of the following 1. Add item 2. Search Item 3. Calculate Discounted Price 4. Delete Item 5. Print All Items 6. Exit Enter your choice Cancel OKOption Choice/ Inputs Outputs Option = 1 Enter Item Name: Simple Program Design Enter Item Price: 60 Enter Item Type: Textbook Option = 1 Enter Item Name: Data Structure Enter Item Price: 100 Enter Item Type: Textbook Option = 1 Enter Item Name: GMU t-shirt Enter Item Price: 30 Enter Item Type: Apparel Option = 2 Item Found. Enter Item Name: Data Structure Item Name: Data Structure Item Price: 100 Item Type: Textbook Option = 2 Search failed! Enter Item Name: GMU logo Mug No student record was found Option = 3 Discount for the item $18 Discounted Price $42Enter Item Name: Simple Program Design Option = 5 *#GMU Book Store ** Item Name] Item Type Item Price| Discounted Price Simple Program Design Textbook $60 $42 Data Structure Textbook $100 $70 GMU t-shirt Apparel $30 $27 Total Textbook: 2 Total Apparel: 1 Total gift Item: 0 Option = 4 Successfully deleted the Item. Enter Item Name: Data Structure Option = 5 **GMU Book Store * * Item Name Item Type Item Price| Discounted Price Simple Program Design Textbook $60 $42 GMU t-shirt Apparel $30 $27 Total Textbook: 1 Total Apparel: 1 Total gift Item: 0

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

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

More Books