Customers often ask if a particular game is in stock, and if they can afford to buy it. Employees sometimes have trouble finding this information, or calculating the cost (including applying the 6% sales tax and any discounts the customer has earned). Now that you have developed a Game class, Part 2: you can use it to create an inventory system that wil help employees answer these questions more efficiently. Create an Inventory file in the same package/namespace as the Game class from Part 1. The Inventory file will be a driver class. In it, you will create a one dimensional array (size 4) of datatype Game. you will prompt the user to enter the required information to create all four Game objects, and then add them to the array. Once the array has been initialized and filled with Game objects, prompt the user to enter a game name, how much they can afford to pay, and whether or not they are a Retro Shop Member TM. Based on their responses, search the array using Linear Search and do the following: If the game does not exist, inform the user that it's out of stock If the game does exist: If the cost (plus a 6% sales tax) is less than or equal to the user's maximum price limit, tell the user that they can purchase the game If the cost (plus a 6% sales tax) is greater than the user's maximum price limit: If the user is not a Retro Shop Member, inform them of the game's price and encourage them to become a Retro Shop Member. If the user is a Retro Shop Member, apply

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Help me slove this in Java, don't make it too complicated.

will do this in Part 2 and Part 3.
Part 2:
Customers often ask if a particular
game is in stock, and if they can afford to buy it.
Employees sometimes have trouble finding this
information, or calculating the cost (including applying
the 6% sales tax and any discounts the customer has
earned). Now that you have developed a Game class,
you can use it to create an inventory system that will
help employees answer these questions more
efficiently.
Create an Inventory file in the same
package/namespace as the Game class from Part 1.
The Inventory file will be a driver class. In it, you will
create a one dimensional array (size 4) of datatype
Game. you will prompt the user to enter the required
information to create all four Game objects, and then
add them to the array.
Once the array has been initialized and filled with
Game objects, prompt the user to enter a game name,
how much they can afford to pay, and whether or not
they are a Retro Shop Member TM. Based on their
responses, search the array using Linear Search and
do the following:
If the game does not exist, inform the user that it's out
of stock
If the game does exist:
If the cost (plus a 6% sales tax) is less than or equal to
the user's maximum price limit, tell the user that they
can purchase the game
If the cost (plus a 6% sales tax) is greater than the
user's maximum price limit:
If the user is not a Retro Shop Member, inform them of
the game's price and encourage them to become a
Retro Shop Member.
If the user is a Retro Shop Member, apply
Transcribed Image Text:will do this in Part 2 and Part 3. Part 2: Customers often ask if a particular game is in stock, and if they can afford to buy it. Employees sometimes have trouble finding this information, or calculating the cost (including applying the 6% sales tax and any discounts the customer has earned). Now that you have developed a Game class, you can use it to create an inventory system that will help employees answer these questions more efficiently. Create an Inventory file in the same package/namespace as the Game class from Part 1. The Inventory file will be a driver class. In it, you will create a one dimensional array (size 4) of datatype Game. you will prompt the user to enter the required information to create all four Game objects, and then add them to the array. Once the array has been initialized and filled with Game objects, prompt the user to enter a game name, how much they can afford to pay, and whether or not they are a Retro Shop Member TM. Based on their responses, search the array using Linear Search and do the following: If the game does not exist, inform the user that it's out of stock If the game does exist: If the cost (plus a 6% sales tax) is less than or equal to the user's maximum price limit, tell the user that they can purchase the game If the cost (plus a 6% sales tax) is greater than the user's maximum price limit: If the user is not a Retro Shop Member, inform them of the game's price and encourage them to become a Retro Shop Member. If the user is a Retro Shop Member, apply
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY