Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please answer this question: Programing language Visual Basics. Please provide the code to be: ( To add one of the items in the list to

Please answer this question: Programing language Visual Basics. Please provide the code to be: (To add one of the items in the list to the shopping cart, then close. Select one item then add then click close. Use module)

Hint: When the user selects either a print book or an audio book, use a module with global variables to hold the name and price of the selected book. That way, the main form will be able to retrieve the name and price after the other forms have closed.

Please design as the following flow chart using modules, and select one item then add then click close.

image text in transcribed

image text in transcribed

Question: Design an application that works as shopping cart system. The user should be able to add any of the following items to his or her shopping cart:

Print Books (books on Paper):

I Did It Your Way $11.95

The History of Scotland $14.50

Learn Calculus in One Day $29.95

Feel the Stress $18.50

Audio Books (books on tape):

Learn Calculus in One Day $29.95

The History of Scotland $14.50

The Science of Body Language $12.95

Relaxation Techniques $11.50

The applications main form should appear similar to the one shown below:

image text in transcribed

The list box shows all items in the shopping cart. There is a 6% sales tax on the total cost of the items in the shopping cart. Also, for each item in the shopping cart, there is a $2.00 shipping charge. To remove an item from the shopping cart, the user selects it in the list box and clicks the Remove button. The subtotal, tax, shipping, and total fields should be adjusted accordingly. The main forms menu system is:

image text in transcribed

When the user selects Rest from the File menu, all items in the shopping cart should be removed, and the subtotal, tax, shipping, and total fields should be cleared. When the user selects Exit from the File menu, the application should end. When the user selects About from the Help menu, a simple About box should appear. When th user selects Print Books from the Products menu, the form below should appear.

image text in transcribed

To add one of the items in the list to the shopping cart, the user selects it and clicks the Add Book to Cart Button. To cancel the operation, the user simply clicks the Close button without selecting a book. On the main form, when the user selects Audio Books from the Products menu, the form below should appear.

image text in transcribed

To add one of the items in the list to the shopping cart, the user selects it and clicks the Add Book to Cart button. To cancel the operation, the user simply clicks the Close button without selecting a book.

Label of Subtotal Label of Tax-OS Label of Shipping 0$ Label of Total-OS Main Form (Activated) Counter 0 Subtotal 0 Tax -0 Shipping 0 Add the item to the list ist length Subtotal Subtotal+ Price of item at index counter Shipping shipping +2 Counter Counter 1 Counter List length Tax-subtotal 0.06 Total Shipping Subtotal Label of Subtotal Subtotal Label of Tax-Tax Label of Shipping Shipping Label of Total Total Label of Subtotal Label of Tax-OS Label of Shipping 0$ Label of Total-OS Main Form (Activated) Counter 0 Subtotal 0 Tax -0 Shipping 0 Add the item to the list ist length Subtotal Subtotal+ Price of item at index counter Shipping shipping +2 Counter Counter 1 Counter List length Tax-subtotal 0.06 Total Shipping Subtotal Label of Subtotal Subtotal Label of Tax-Tax Label of Shipping Shipping Label of Total Total

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Seven Databases In Seven Weeks A Guide To Modern Databases And The NoSQL Movement

Authors: Luc Perkins, Eric Redmond, Jim Wilson

2nd Edition

1680502530, 978-1680502534

More Books

Students also viewed these Databases questions