Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Visual Basic Expert

Assume you are creating an order entry and editing application for a book store. An order consists of a product, quantity, total price, payment type including Credit/Debit card account numbers. In addition, the order will have a billing address as well as a shipping address. Each of the address objects consists of First Name, Last Name, Address, City, State, and Zip code.

The book store only carries, "Computer Science 101", "History 101", "Geography 101", "English 101", "Biology 101", "Algebra 101", and "Calculus 101". Each of these books cost $50. Ignore any sales tax calculations for this implementation. (NOTE: I created a sample layout below.

  • The quantity entered should be numeric and the maximum a customer can order is 5. If the quantity is more than 5, an error message should be displayed, "Ordered Quantity cannot be more than 5" (The message can be a pop-up).
  • The states can be any of the states in USA. The entered zip code should be numeric. An error message should be displayed if non numeric values are entered.
  • When the user places an order the total price should be calculated and displayed using a text box (un-editable).
  • All of the controls excluding Labels should have "lined" borders (please use 4 pixels).
  • The application should use "Nimbus" look and feel.
  • Your application should use JLabels, Text Fields, JComboBox to display products, radio buttons for selecting payment type, and a JTable to display the orders placed.
  • A Table should be created using JTable that displays the Customer's First Name, Last Name, billing address, Item ordered, and quantity ordered.
  • When the user presses a 'new' button, the order panel(s) should be cleared  (not the table contents).
  • When the user submits an order, the order should be added to the table and the controls should be cleared. Also, an information dialog should be displayed to confirm the order before accepting.
  • As I press New button and submit a order, the number of orders should keep on increasing.
  • When the user presses the 'Edit' button after selecting an order from the table, the selected order should be displayed for editing and saved when the 'submit' button is pressed. If the user selects multiple rows or no rows an error message should be displayed. "At least one row must be selected" message if no rows are selected, "Only one rows should be selected" message if multiple rows are selected.
  • All error message can be displayed using popup dialog messages.
  • Even though the table rows are not displaying the entire billing, shipping, and order details, your implementation should display all of the details for editing, when the user presses the Edit button after selecting a row.
  • When the user presses the 'Cancel' button, all the changes should be discarded. This applies to both 'New' as well as 'Edit'.
  • User cannot edit any of the columns displayed in the table.
  • It is recommended to create a Table Model to handle the data.
  • Implement appropriate table listeners as needed to handle the rows selected.
  • Use a split pane that is split horizontally, with the top half holding the Order Panel and the bottom half holding the JTable.
  • It is recommended to create additional panels to create the layouts.

Visual Basic, Programming

  • Category:- Visual Basic
  • Reference No.:- M9523233

Have any Question?


Related Questions in Visual Basic

Please show how to do the belowvisual basic net application

Please show how to do the below: Visual Basic .NET Application - Coding Exercise 1 (Exercise 13, Zak, 2016, p. 347) For this coding exercise, write the Visual Basic code for a pretest loop that uses an Integer variable n ...

Assignment frans virtual fruit standfrans virtual fruit

Assignment: Fran's Virtual Fruit Stand Fran's Virtual Fruit Stand is an online store that sells several types of dried fruit. Based on the needs of Fran's Virtual Fruit stand, you must design a flowchart using Visual Log ...

Assignment virtual storeuse the concepts and scenario from

Assignment: Virtual Store Use the concepts and scenario from Assignment 1 to help "Your" Virtual Business to increase the functionality of its online shopping cart. When a customer checks out, the shopping cart must stor ...

Pitch amp game design documentthe assignment is about

Pitch & Game Design Document The assignment is about educational driver for teenagers Assignment Brief: In groups you will: - present a pitch and produce a one sheet - provide a demonstration of your game - produce a hig ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As