Docsity

Deli Order System: Calculate Food Cost with Deals & Taxes, Assignments of Information Technology

Toggle sidebar
bg1
IST 256 Applications Programming for Information Systems
Assignment 1
DELI DELIGHT
Due September 22, 2008
at the beginning of class
At the food court in the local mall, the deli has a kiosk that will allow customers to select items
from the menu, specify how many of each item to buy, and see how much an order will cost.
The menu includes:
Submarine sandwiches $4.00
Bagel with cream cheese $1.50
Potato Chips $1.00
Soft Drinks $1.75
The store also offers the following special deal: if you buy more than three of any item, then you
get one free. (E.g., if you order 4 Potato Chips, then you pay for only 3.)
The total cost of the order, after taking any discount for the special deal, will include New York
State sales tax at 8%.
Write a program that performs the following operations:
• Allow the user to buy one or more of any or all of the items.
• If the user buys more than 3 of any type of item, then they get 1 of that item free.
• When the user is done, display a bill showing the order, with the name and the number of
each item, the subtotal of the item prices, the tax and the grand total. It should also show
the free item information, if the user qualified.
• Allow the user to clear the items and totals in order to start over.
When you develop the program, follow these steps:
• Design the user interface:
o Design the layout of the form
o Decide what each button will do
• Write the program
o Decide on the names and types of variables and where to declare them
o Write comments on the top of the program, including your name and what the
program is for
o Write comments before each button-click subroutine with the description of what
it does
o Write other comments on statements as necessary
pf2

Partial preview of the text

Download Deli Order System: Calculate Food Cost with Deals & Taxes and more Assignments Information Technology in PDF only on Docsity!

IST 256 Applications Programming for Information Systems

Assignment 1

DELI DELIGHT

Due September 22, 2008

at the beginning of class

At the food court in the local mall, the deli has a kiosk that will allow customers to select items from the menu, specify how many of each item to buy, and see how much an order will cost.

The menu includes: Submarine sandwiches $4. Bagel with cream cheese $1. Potato Chips $1. Soft Drinks $1.

The store also offers the following special deal: if you buy more than three of any item, then you get one free. (E.g., if you order 4 Potato Chips, then you pay for only 3.)

The total cost of the order, after taking any discount for the special deal, will include New York State sales tax at 8%.

Write a program that performs the following operations:

  • Allow the user to buy one or more of any or all of the items.
  • If the user buys more than 3 of any type of item, then they get 1 of that item free.
  • When the user is done, display a bill showing the order, with the name and the number of each item, the subtotal of the item prices, the tax and the grand total. It should also show the free item information, if the user qualified.
  • Allow the user to clear the items and totals in order to start over.

When you develop the program, follow these steps:

  • Design the user interface: o Design the layout of the form o Decide what each button will do
  • Write the program o Decide on the names and types of variables and where to declare them o Write comments on the top of the program, including your name and what the program is for o Write comments before each button-click subroutine with the description of what it does o Write other comments on statements as necessary

The program will be graded on efficiency, elegance, format, documentation (the comments), and how well it works.

In order to get a maximum grade of

60 The program must run

75 The program must compute the subtotal, tax and total correctly and display them.

90 The program must do the above and display the number and type of each item sold, and display the free item information if the user qualified

95 All of the above, plus allow the user to clear the form.

100 The form must present a good appearance and be clear what the user is to do.

How to Submit your Homework:

  1. In your project directory, create a zip file of the sub-directory that has your homework project in it. For example, if you name your project “Deli”, there will be a folder named “Deli” under your projects folder – zip the Deli folder. Go to the iLMS page and submit the zipped file for assignment 1.
  2. Open your project in Visual Studio and print a paper copy of the Form1.vb program that shows what you put for the buttons on your form. Be sure that your name is in the comments of the program and hand it in in class. These will be collected at the beginning of class.