Question

Create a JAVA program for a Kiosk management system. A local kiosk in your neighborhood has...

Create a JAVA program for a Kiosk management system.

A local kiosk in your neighborhood has been heavily challenged by the manual system currently used to manage the kiosk’s day to day operations. The kiosk management have been informed of your newly acquired knowledge in application development and have approached you to create an electronic management system. The system is meant to help the Kiosk in managing its stock and finances; with this in mind your application should then offer different menu levels:

1. Landing page(login menu)

2. Main menu

The landing page should give a brief description of the Kiosk such as the Name, address and motto, login menu options are as follows (decorations up to your own choosing):

* Welcome to X Kiosk *

* <<information here>> *

******************************

1. Login as Admin

2. Login as Teller/Shop assistant

3. Quit

The application should prompt the user for login details and authenticate the provided details against information in the system. Once logged in, the system will then offer different options following the selected profile. The Admin should have privilege to restock/ add new items to the shop, change prices, add new Tellers, print out a summary of all items in stock, and print out only items that need restocking(all items below 25 need to be restocked, hence the quantity of 25 is the re-order level) or exit (create a menu for these options). The Tellers should be able to sell items, print out summary of all items in stock, print out a summary of items sold during all his/her sales and exit, You are expected to create this menu as well.

When an item is sold a receipt is printed that contains the following details: the item name, quantity, price and total, it should also give a description of the change given out, see below example (decoration up to your own choosing):

* X Kiosk *

* <<information here>> *

***********************************

Name QTY Price Total

Coke light 2lt 3 15.45 46.35

Chips 1 24.95 24.95

-------------------------------------------------------

VAT@15% 10.70

Total 82.00

Tendered 200.00

Change 118.00

**********************************

Date: 05 – April – 2018/15:35:20

Cashier: Andreas N. Lovisa

**********************************

Thank You For Your Support

Please call Again

**********************************

Your change is disbursed as follows: N$100 X 1, N$10X1, N$5X1 and N$1X3

PART I : Program Functionality

The program / Application approach is entirely up to you, so long as it follows the description above. In addition innovation and creativity will be an added advantage, however below are guidelines to follow:

1. Planning in forms of Pseudocode and Flowcharts [15 marks]

2. Different menu levels: Landing page, Admin Menu and Teller Menu [6 marks]

3. User profiles and Authentication [5 marks]

4. Data storage using data Structures such Arrays etc. [15 marks]

5. Receipt information calculations and formatting [10 marks]

6. Change calculations and print out [5 marks]

7. Management options by Admin (3 marks each) [15 marks]

8. Shop Assistant options by Teller (2 marks each) [8 marks]

PART II: Program formatting and presentation

The source code will be marked according to the following indicators.

9. Good modular designs within same program file, different methods per functionality

[03 marks]

10. Good comments [03 marks]

11. Ability to explain a portion of the code as may be required by the evaluator [15 marks]

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Kisok applications are utilized as a part of an extensive variety of businesses, for example, keeping money, instruction, retail, travel, and amusement, filling in as data focuses, POS, and item advancement apparatuses. At whatever point it is conceivable to expand the human-went to benefit with programmed exchanges, stands come in play. It isn't unprecedented these days to buy a motion picture ticket, picWeb-based Java Swing Kiosk Applicationk an outfit in an extensive store, or registration on a flight in a matter of minutes utilizing a specific stand.

With regards to the advancement of use programming for booths, there are absolutely changes and traps known to the business. We've run over a much of the time made inquiry of how to empower a program based application to be keep running in stand mode. Such an application would be less demanding to help, keep up, and overhaul contrasted with an application based on a particular stand advancement stage.

In this article, we will demonstrate to make a cross-work area booth application that keeps running on Windows, Linux, and Mac OS X, and presentations current web content utilizing Java Swing GUI Toolkit and our library in light of the Chromium motor—JxBrowser.

Stand App Requirements

There are a ton of strategies and instruments you can use to assemble booth applications. Generally, the fundamental necessity for a stand application is that it ought not permit end clients to change to different applications running in nature (overseers may have the capacity to cooperate with other programming, yet not the end clients). Along these lines, you have to show an undecorated full-screen window that won't permit end clients to communicate with other programming introduced and running in this condition.

Making a Kiosk Using Java Swing

Utilizing Java Swing GUI it's entirely easy to make a cross-work area stand application. You should simply make javax.swing.JFrame occasion, make it full screen/amplified, non-resizable, highest, and evacuate window adornments, for example, title, window outskirts, and so on. Java Swing API gives all the vital usefulness. The accompanying example code exhibits how to make a straightforward booth application utilizing Java Swing:

import javax.swing.*;

import java.awt.*;

public class App {

    public static void main(String[] args) {

        JFramess framess = new JFramess();

        framess.setUndecorated(true);

        framess.setAlwaysOnTop(true);

        framess.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);

        framess.setExtendedState(Framess.MAXIMIZED_BOTH);

        framess.setVisible(true);

    }

}

Showing Web Content in a Kiosk

The stand application constructed utilizing the code above presentations nothing. Keeping in mind the end goal to furnish our application with the capacity to show web content, we can utilize a standard Java Swing part (javax.swing.JEditorPane) that permits showing HTML content, yet it has a great deal of limitations and doesn't generally accurately show web content in view of HTML5, CSS3, or JavaScript. Rather, we can utilize JxBrowser library. JxBrowser enables Java designers to insert a Chromium-based Swing/JavaFX part into a Java application to show pages worked with HTML5, CSS3, JavaScript, Flash, Silverlight, and so on.

How about we adjust the code above and acquire the usefulness that permits showing web content. We will include two catches: Google and BBC News. At the point when a client presses the Google catch, we will have the application demonstrate the Google seek site page. At the point when the client presses the BBC News catch, the application will demonstrate the BBC News landing page where a client can read the most recent news.

import com.teamdev.jxbrowserWindow.chromium.BrowserWindow;
import com.teamdev.jxbrowserWindow.chromium.swing.BrowserWindowView;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class KioskApp {
    public static void main(String[] args) {
        // Create BrowserWindow instance
        final BrowserWindow browserWindow = new BrowserWindow();
        // Create Google and BBC News buttons
        JButton Google_Button = new JButton("Google");
        Google_Button.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                browserWindow.loadURL("https://www.google.com");
            }
        });
        JButton button_bbc = new JButton("BBC News");
        button_bbc.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                browserWindow.loadURL("http://www.bbc.com/news");
            }
        });
        JPanel action_pane1 = new JPanel();
        action_pane1.add(Google_Button);
        action_pane1.add(button_bbc);
        JFrame frame = new JFrame();
        frame.add(action_pane1, BorderLayout.WEST);
        frame.add(new BrowserWindowView(browserWindow), BorderLayout.CENTER);
        // Remove window title and borders
        frame.setUndecorated(true);
        // Make frame topmost
        frame.setAlwaysOnTop(true);
        // Disable Alt+F4 on Windows
        frame.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
        // Make frame full-screen
        frame.setExtendedState(Frame.MAXIMIZED_BOTH);
        // Display frame
        frame.setVisible(true);
    }
}
Add a comment
Know the answer?
Add Answer to:
Create a JAVA program for a Kiosk management system. A local kiosk in your neighborhood has...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Java Inventory Management Code Question

    Inventory ManagementObjectives:Use inheritance to create base and child classesUtilize multiple classes in the same programPerform standard input validationImplement a solution that uses polymorphismProblem:A small electronics company has hired you to write an application to manage their inventory. The company requested a role-based access control (RBAC) to increase the security around using the new application. The company also requested that the application menu must be flexible enough to allow adding new menu items to the menu with minimal changes. This includes...

  • Your assignment is to create a restaurant ordering system where the cashier can create the menu...

    Your assignment is to create a restaurant ordering system where the cashier can create the menu and then take in the order and display the order back to the customer Sample Execution – Level 1 Welcome to your Menu Creation system. How many items would you like to have on your menu? 2 Create your menu! Enter item #1: Coffee Enter item #2: Tea This is the menu: Coffee Tea What would you like to order? Cake That isn’t on...

  • You have been hired as a programmer by a major bank. Your first project is a...

    You have been hired as a programmer by a major bank. Your first project is a small banking transaction system. Each account consists of a number and a balance. The user of the program (the teller) can create a new account, as well as perform deposits, withdrawals, and balance inquiries. The application consists of the following functions:  N- New account  W- Withdrawal  D- Deposit  B- Balance  Q- Quit  X- Delete Account Use the following...

  • Python program Use the provided shift function to create a caesar cipher program. Your program s...

    python program Use the provided shift function to create a caesar cipher program. Your program should have a menu to offer the following options: Read a file as current message Save current message Type in a new message Display current message "Encrypt" message Change the shift value For more details, see the comments in the provided code. NO GLOBAL VARIABLES! Complete the program found in assignment.py. You may not change any provided code. You may only complete the sections labeled:#YOUR...

  • eclipse java Oxygen Design a self-service fast food menu. Name your class FastFood. Create a test...

    eclipse java Oxygen Design a self-service fast food menu. Name your class FastFood. Create a test class based on the examples from chapter 4. Create a program to do the following. When you set up the program, save the java file to a folder named Chapter 04 Program. Console Welcome to the fast food order menu How may I help you Please place your order: НННН Please place your order Your order Your subtotal: $e.00 $e.00 Continue? (y/n): Y Please...

  • Java program Program: Grade Stats In this program you will create a utility to calculate and...

    Java program Program: Grade Stats In this program you will create a utility to calculate and display various statistics about the grades of a class. In particular, you will read a CSV file (comma separated value) that stores the grades for a class, and then print out various statistics, either for the whole class, individual assignments, or individual students Things you will learn Robustly parsing simple text files Defining your own objects and using them in a program Handling multiple...

  • write a java program Accept a positive integer n from keyboard and then create an array...

    write a java program Accept a positive integer n from keyboard and then create an array or arraylist containing n random elements within the range [-n,n). Print out the random array or arraylist, and then find out and print out the number of inversions and the maximum subarray (index range of the maximum subarray along with the maximum subarray sum) in the array or arraylist using divide and conquer, respectively. For example, suppose we accept integer 6 from keyboard, then...

  • Project overview: Create a java graphics program that displays an order menu and bill from a...

    Project overview: Create a java graphics program that displays an order menu and bill from a Sandwich shop, or any other establishment you prefer. In this program the design is left up to the programmer however good object oriented design is required. Below are two images that should be used to assist in development of your program. Items are selected on the Order Calculator and the Message window that displays the Subtotal, Tax and Total is displayed when the Calculate...

  • Please write a Java program that does the following: Create an array of 100 integers. Store...

    Please write a Java program that does the following: Create an array of 100 integers. Store 100 random integers (between 1 and 100) in the array. Print out the elements of the array. Sort the array in ascending order. Print out the sorted array. Prompt the user to enter a number between 1 and 100. Search the array for that number and then display "Found" or "Not Found" message. Display each number from 1 to 100 and the number of...

  • Subject: Java Program You are writing a simple library checkout system to be used by a...

    Subject: Java Program You are writing a simple library checkout system to be used by a librarian. You will need the following classes: Patron - A patron has a first and last name, can borrow a book, return a book, and keeps track of the books they currently have checked out (an array or ArrayList of books). The first and last names can be updated and retrieved. However, a patron can only have up to 3 books checked out at...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT