0% found this document useful (0 votes)
34 views1 page

CSCI213 Spring2013 Workshops Lab 7 Amp 8

This document provides instructions for a Java programming lab assignment to add functionality to a GUI café ordering application. The application uses multiple panels with appropriate layouts. Students are tasked with attaching event handlers to allow ordering of sandwiches, tea, and coke by unit and calculating the total bill amount when the user clicks "OK", while cancelling the order when clicking "Cancel". A random transaction ID from 1-50 should also be generated and displayed for each transaction.

Uploaded by

ami_haroon
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views1 page

CSCI213 Spring2013 Workshops Lab 7 Amp 8

This document provides instructions for a Java programming lab assignment to add functionality to a GUI café ordering application. The application uses multiple panels with appropriate layouts. Students are tasked with attaching event handlers to allow ordering of sandwiches, tea, and coke by unit and calculating the total bill amount when the user clicks "OK", while cancelling the order when clicking "Cancel". A random transaction ID from 1-50 should also be generated and displayed for each transaction.

Uploaded by

ami_haroon
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

University of Wollongong in Dubai

CSCI213: Java Programming and the Internet Lab 7 Topic: GUI Download CafFrame.java from online resources. This code shows User Interface with no events attached to any of the components. Your task is to attach functionalities to appropriate components to make it a complete code. Note: Read the program very carefully before you start modifying it. Identify the number of panels being used and the appropriate layout on each. Assume the following information in order to calculate bill total for each order.

Calculate the total bill based on the following information: Sandwich AED 2 per unit Tea AED 1 per unit Coke AED 1 per unit Total bill amount should be calculated when user clicks on the OK button. Amount should be displayed on the window. Order should not be processed if user clicks on the Cancel button. For every transaction, generate a random transaction id (id should fall in the range 1 to 50) (look for Math.random in the API). Display the id in a text-field that cannot be edited.

-1-

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy