mikes4x4
04-25-2006, 07:33 PM
Here is what im looking to do..
Design and write a QBASIC program that will accept orders input at a fast food restaurant.
The program should do the following:
1. display a banner or heading for O’DONNELL’S RETURANT
2. read the ordernum file to obtain the last order number(2006) used and add 1 to it to create the next order number, then display this next order number on the screen.
3. prompt the user to input his/initials
4. prompt the user to enter the quantities for number o’Burgers, o’Fryes, and o’Brews
5. read an array to obtain the price per item - $1.49 per burger, $1.09 per order of fry’s, and $1.29 per brew/drink; if 5 or more of an item is ordered apply a 10% discount in the price for that item
6. display the quantity, unit price and total price for each (i.e., 3 burgers @ $1.49 = $4.47, etc.) plus a subtotal, 7.25% sales tax and a grand total for the order to the screen
7. also print a hardcopy summary of the order to the printer as an order ticket for the cooks
8. prompt the user to ask if he/she has another order to input; if not, exit the program
Design and write a QBASIC program that will accept orders input at a fast food restaurant.
The program should do the following:
1. display a banner or heading for O’DONNELL’S RETURANT
2. read the ordernum file to obtain the last order number(2006) used and add 1 to it to create the next order number, then display this next order number on the screen.
3. prompt the user to input his/initials
4. prompt the user to enter the quantities for number o’Burgers, o’Fryes, and o’Brews
5. read an array to obtain the price per item - $1.49 per burger, $1.09 per order of fry’s, and $1.29 per brew/drink; if 5 or more of an item is ordered apply a 10% discount in the price for that item
6. display the quantity, unit price and total price for each (i.e., 3 burgers @ $1.49 = $4.47, etc.) plus a subtotal, 7.25% sales tax and a grand total for the order to the screen
7. also print a hardcopy summary of the order to the printer as an order ticket for the cooks
8. prompt the user to ask if he/she has another order to input; if not, exit the program