Hello I am having trouble putting together the code, here is the assignment requirements to be coded in Java.
I have four days to complete the first phase of this which is simply creating the two interfaces for User called RedBoxUserInterface and RedBoxAdminInterface.
Phase 1 Develop the PurpleBoxUserInterface and PurpleBoxAdminInterface. The interface should provide methods for the requirements below and should include consideration of exception handling. It should also include pre- and post-conditions, parameters and return types on your methods using javadoc documentation as discussed in class.
General capabilities available to users (and defined in PurpleBoxUserInterface) shall include:
Search for movies (see all, Blu-ray vs. DVD, according to genre, new release/date, alphabetically, by name, by critics' score)
Add movie to shopping cart
Remove movie from shopping cart
Remove all movies from shopping cart
See if movie is available
Check out/rent movies in cart, give option to email
Take credit card payment
Return movies
Apply promo code
Similar for games, with types being XBox and PS4
Challenge (optional):
Maintain user account information
Check my account (user’s inventory)
General capabilities available to admins (and defined in PurpleBoxAdminInterface) shall include:
Add movie to inventory
Remove movie from inventory
Change prices (same price for all DVDs, same price for all Blu-ray disks, same price for all games)
Volume discount
Add promo codes
Disable unit
Enable unit
Only one set of interfaces should be submitted per pair of pairs.
/********************************************PurpleBoxUserInterface.java*******************************/
import java.util.ArrayList;
/**
* The Interface PurpleBoxUserInterface.
*/
public interface PurpleBoxUserInterface {
/**
* Adds the movie.
*
* @param movie the movie
*/
public void addMovie(Movie movie);
/**
* Removes the movie.
*
* @param movie the movie
*/
public void removeMovie(Movie movie);
/**
* Removes the all movie.
*/
public void removeAllMovie();
/**
* Checks if is movie available.
*
* @param movie the movie
* @return true, if is movie available
*/
public boolean isMovieAvailable(Movie movie);
/**
* Checkout.
*
* @param email the email
*/
public void checkout(String email);
/**
* Make payment.
*
* @param method the method
*/
public void makePayment(String method);
/**
* Return movies.
*
* @return the array list
*/
public ArrayList<Movie> returnMovies();
/**
* Apply promo code.
*
* @param code the code
*/
public void applyPromoCode(String code);
/**
* Adds the game.
*
* @param game the game
* @param type the type
*/
public void addGame(Game game, String type);
/**
* Removes the game.
*
* @param game the game
* @param type the type
*/
public void removeGame(Game game, String type);
/**
* Removes the all game.
*/
public void removeAllGame();
/**
* Checks if is game available.
*
* @param game the game
* @param type the type
* @return true, if is game available
*/
public boolean isGameAvailable(Game game, String
type);
/**
* Return games.
*
* @return the array list
*/
public ArrayList<Game> returnGames();
/**
* Check user account.
*
* @return the array list
*/
public ArrayList<Item> checkUserAccount();
}
/************************************PurpleBoxAdminInterface.java***************************/
import java.util.ArrayList;
// TODO: Auto-generated Javadoc
/**
* The Interface PurpleBoxAdminInterface.
*/
public interface PurpleBoxAdminInterface {
/**
* The Interface PurpleBoxUserInterface.
*/
public interface PurpleBoxUserInterface {
/**
* Adds the movie.
*
* @param movie the movie
*/
public void addMovie(Movie
movie);
/**
* Removes the movie.
*
* @param movie the movie
*/
public void removeMovie(Movie
movie);
/**
* Removes the all movie.
*/
public void removeAllMovie();
/**
* Checks if is movie
available.
*
* @param movie the movie
* @return true, if is movie
available
*/
public boolean
isMovieAvailable(Movie movie);
/**
* Checkout.
*
* @param email the email
*/
public void checkout(String
email);
/**
* Make payment.
*
* @param method the method
*/
public void makePayment(String
method);
/**
* Return movies.
*
* @return the array list
*/
public ArrayList<Movie>
returnMovies();
/**
* Apply promo code.
*
* @param code the code
*/
public void applyPromoCode(String
code);
/**
* Adds the game.
*
* @param game the game
* @param type the type
*/
public void addGame(Game game,
String type);
/**
* Removes the game.
*
* @param game the game
* @param type the type
*/
public void removeGame(Game game,
String type);
/**
* Removes the all game.
*/
public void removeAllGame();
/**
* Checks if is game
available.
*
* @param game the game
* @param type the type
* @return true, if is game
available
*/
public boolean isGameAvailable(Game
game, String type);
/**
* Return games.
*
* @return the array list
*/
public ArrayList<Game>
returnGames();
/**
* Check user account.
*
* @return the array list
*/
public ArrayList<Item>
checkUserAccount();
/**
* Adds the movie to
inventory.
*
* @param movie the movie
*/
public void
addMovieToInventory(Movie movie);
/**
* Removie movie to inventory.
*
* @param movie the movie
*/
public void
removieMovieToInventory(Movie movie);
/**
* Change price.
*
* @param item the item
*/
public void changePrice(Item
item);
/**
* Volume discount.
*
* @param amount the amount
*/
public void volumeDiscount(double
amount);
/**
* Adds the promo codes.
*
* @param codes the codes
*/
public void
addPromoCodes(ArrayList<String> codes);
/**
* Disable unit.
*
* @param item the item
*/
public void disableUnit(Item
item);
/**
* Enable unit.
*
* @param item the item
*/
public void enableUnit(Item
item);
}
Please let me know if you have any doubt or modify the answer, Thanks :)
Hello I am having trouble putting together the code, here is the assignment requirements to be...
I am having trouble with my C++ program.... Directions: In this lab assignment, you are to write a class IntegerSet that represents a set of integers (by definition, a set contains no duplicates). This ADT must be implemented as a singly linked list of integers (with no tail reference and no dummy head node), but it need not be sorted. The IntegerSet class should have two data fields: the cardinality (size) of the set, and the head reference to the...
Here is what i have so far... However i am having a little bit of trouble with it. when inputting a number the sum comes out perfect but when i break the digits up i cant do mmore than 4 digits and i cant do a negitive number... someone help. QUESTION: Write a program that prompts the user to input an integer and then outputs both the individual digits of the number and the sum of the digits. For example,...
Java - Car Dealership Hey, so i am having a little trouble with my code, so in my dealer class each of the setName for the salesman have errors and im not sure why. Any and all help is greatly appreciated. package app5; import java.util.Scanner; class Salesman { private int ID; private String name; private double commRate; private double totalComm; private int numberOfSales; } class Car { static int count = 0; public String year; public String model; public String...
JAVA Hello I am trying to add a menu to my Java code if someone can help me I would really appreacite it thank you. I found a java menu code but I dont know how to incorporate it to my code this is the java menu code that i found. import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.ButtonGroup; import javax.swing.JCheckBoxMenuItem; import javax.swing.JFrame; import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.JRadioButtonMenuItem; public class MenuExp extends JFrame { public MenuExp() { setTitle("Menu Example");...
Use case diagram for Mail Order System Requirements(draw by use case diagram) This software system is developed to support mail order business operations. In particular software shall: - Keep track of sales (including orders, payments, and shipments). For each order a record shall be kept identifying the customer, the ZIP code, the salesperson, item ordered, the quantity, and amount due. - Record shall be kept for each customer who made a purchase in the past year. Such record shall include...
HI, I am having trouble finsihing this program i was wondering if someone could help me. Thanks in adavnce. Here is the code that I have so far..... //Stack.h // implementation file for the stack class #include <iostream> using namespace std; const int stack_size = 100; class stack { private: char data [stack_size]; // elements in the stack int top; // index of the top element of the stack public: stack (); // constructor creates an empty stack void push...
I would like some assistance correcting an issue I am having with this assignment. Once a finite state automaton (FSA) is designed, its transition diagram can be translated in a straightforward manner into program code. However, this translation process is considerably tedious if the FSA is large and troublesome if the design is modified. The reason is that the transition information and mechanism are combined in the translation. To do it differently, we can design a general data structure such...
I wrote this code but there’s an issue with it : #include <iostream> #include <vector> #include <string> #include <fstream> using namespace std; class Borrower { private: string ID, name; public: Borrower() :ID("0"), name("no name yet") {} void setID(string nID); void setName(string nID); string getID(); string getName(); }; void Borrower::setID(string nID) { ID = nID; } void Borrower::setName(string nname) { name = nname; } string Borrower::getID() { return ID; } string Borrower::getName() { return name; } class Book { private: string...
Program 7 File Processing and Arrays (100 points) Overview: For this assignment, write a program that will process monthly sales data for a small company. The data will be used to calculate total sales for each month in a year. The monthly sales totals will be needed for later processing, so it will be stored in an array. Basic Logic for main() Note: all of the functions mentioned in this logic are described below. Declare an array of 12 float/doubles...
For this c++ assignment, Overview write a program that will process two sets of numeric information. The information will be needed for later processing, so it will be stored in two arrays that will be displayed, sorted, and displayed (again). One set of numeric information will be read from a file while the other will be randomly generated. The arrays that will be used in the assignment should be declared to hold a maximum of 50 double or float elements....