Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

a) You are creating a point of sale program so that an employee at a bookstore can calculate how much to charge a patron for

a) You are creating a point of sale program so that an employee at a bookstore can calculate how much to charge a patron for their order of one or more books, magazines or toys. This is a relatively simple introductory assignment so do not read too much into the instructions. The program should use a button click procedure to calculate and display the charge for the transaction including tax (use a 9.5% tax rate). Use textboxes to capture the price of the book and the quantity purchased. Use a radiobuttonlist (or dropdown list) with the three categories (books, toys, magazines) to indicate which category product is being purchased.

You are selling products that are in one of three categories (magazines, books, and toys). Calculate the price of the product times the quantity of the product sold, then add the tax. Place a button on the form and double click it to get to the code page. you should see a button click procedure, your code goes in there. b) Create three global integer variables to keep a running total to count the # of units sold (depending on the product category - #magazines, #books, and #toys). So if a patron purchased some magazines you would increment the global variable for magazines (for example gintMagazines +=1) c) Also create three global decimal variables that get updated to keep a running total of the sum of the pre-tax revenue of transactions (depending on the product category - magazines, books, and toys). d) Show the price for the current transaction and the running totals for each individual category (# transactions and total revenue). Use concatenation to build nice output.

e) include another button click procedure that clears the form as shown in the examples.

f) include input validation as shown in distributed examples.

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

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions

Question

Find the area between y = 2x + 4 and y = x 2 - x.

Answered: 1 week ago