Build a gui based program in java

Assignment Help JAVA Programming
Reference no: EM131973919

Object Oriented Design and Programming Assignment

The purpose of this assignment is to practice building a GUI based program in Java, to use HashMaps and file IO. This assignment continues the scenario from assignment 1.

Standard Level

Your program will provide a swing based GUI that allows a user to:

1. Issue a new card (basic or multi)
2. Load a card with AUD
3. Convert AUD to another currency (MultiCard only)
4. Make a purchase
5. Show a selected card's balance/balances and overall value
6. Show a selected card's purchase history
7. Show a selected card's total spend in each country
8. Show the total value of all cards
9. Show the total amount of each currency in all cards
10. Show the total amount spent in each country
11. Show the list of all cards (id, name, value) in created order / value order

Your program will also support storage of Card data into and out-of a text file. In a real system a database would be used. Here we wish to practise file IO. When a database is used the record data would be normalised into separate card and purchase tables. Here we want an easy way to store then load card data which for each card will include its purchase history (which will not be normalised).

An example text file card record is:

BC,C001,Fred,500,2,20180130,Australia,AUD,35,Food, 20180201,Australia,AUD,12.5,Food This record has two main parts:

Part 1: BC,C001,Fred,500,2

BC a basic card C001 the card id Fred the card name
500 the balance for the basic card
2 the number of purchases made

Part 2: 20180130,Australia,AUD,35,Food, 20180201,Australia,AUD,12.5,Food Two purchase records in the format: date, location, currency, amount, and description

The above format does not have a fixed number of fields per line, as the number of comma delimited fields depends on the number of purchases a card has made.

Where appropriate your program will use a HashMap to aggregate data and to store currency tables (rather than using a 2D array or co-ordinated array as in assignment 1). Your program will use the appropriate sort methods for sorting cards (in GUI requirement 11).

Students who wish to submit and advanced assignment must ensure that have already met all the standard requirements. That is, the advanced features will only be marked after ensuring that all standard requirements have been met.

Reference no: EM131973919

Questions Cloud

Workforce skill and availability : Explain why it may be more efficient for a company to utilize an RDBMS based on workforce skill and availability.
Topic materials or relevant industry examples : Justify your ideas with support from the Topic Materials or relevant industry examples.
Prepare a procedure named bitwisemultiply : Prepare a procedure named BitwiseMultiply that multiplies any unsinged 32-bit integer by EAX, using only sifting and addition.
Choice of converting a measurement : Make a program that displays a measurement in either inches or centimeters. The program should allow the user the choice of converting a measurement
Build a gui based program in java : The purpose of this assignment is to practice building a GUI based program in Java, to use HashMaps and file IO.
Displays the gross pay for one or more employees : Make a program that displays the gross pay for one or more employees. The program should allow the user to enter the number of hours the employee worked
How the sarbanes-oxley act has affected auditing : Assess how the Sarbanes-Oxley Act has affected auditing. Evaluate objectives for conducting audits, and compare management's and auditors' responsibilities.
Satellite-based navigation application : How would the principles and processes of object-oriented analysis and design apply to the Satellite-Based Navigation application using any format?
What do you think are the major advantages of 10miles : (1) What do you think are the major advantages of 10Miles? (2) What do you think are the major weaknesses of 10Miles?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Driveway is a "last-in, first-out" stack. of course

Driveway is a "last-in, first-out" stack. Of course, when a car owner retrieves a vehicle that wasn't the last one in, the cars blocking it must temporarily move to the street so that the requested vehicle can leave. Write a program in Java that m..

  Explain java-oriented microprocessors presented by sun

Research the latest Java-oriented microprocessors presented by Sun. In what ways are they optimized to implement Java programs?

  Concepts of interfaces and inheritance

In this assignment we will work with the concepts of interfaces and inheritance. We will make use of a extends to create an inheritance hierarchy, and use implements to implement an interface that allows properties to be added to objects at run-ti..

  Anbsp build a student record managing system application by

a.nbsp build a student record managing system application by doing the following1.nbsp create a student inheritance

  Understanding and accessing instance variables

Implementing classes - Understanding and accessing instance variables - identifiers semantic meaning and make them easy to read

  Creation of a virtual world java application

Implement classes that meet the given specifications of object instance variables and behaviors and create operative algorithms using sequential logic structures, decision control structures, and loops

  Declare identifiers for grade point and letter grade

This program focuses on some basic elements of interactive programming as well as basic programming practices. Declare identifiers for grade point and letter grade. The grade point can be either an integer or a double

  Write a nodups() method for the higharray class

Write a noDups() method for the HighArray class of the highArray.java program (Listing 2.3). This method should remove all duplicates from the array.

  Create your program using eclipse

Create your program using Eclipse. Name your project Assignment5 and the Java class Loops. Use the Scanner class to get input from the user and use System.out to print to the console window.

  Write down a program which determines the bonus that must

write a program that determines the bonus that should be paid to employees. bonuses are determined based on the years

  Method summarizesequences that takes a string as a parameter

Now implement the method summarizeSequences that takes a String as a parameter. This method should open the file named by this String, and read a sequence from that file into an array list using the getSequence method you wrote above

  What is wrong with the given snippet of code

What is wrong with the given snippet of code? Rewrite it so it produces the correct output - How many times might the following code print out grape?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd