Beruflich Dokumente
Kultur Dokumente
Computer Project
On
QBASIC
(Flowchart)
Call main
Stop
Display background
Get order$
Out of range
Lower case order$
Else
Read order$ Y or N ?
Y
N
Thank you
Stop
3. Flowchart for Main Menu
Start
Display background
Menu
Make Hotel.exe
Read choice
Y
View/Cancel
Drinks Snacks Meal Dessert Bill Order
Call look
Else
N
Input =y or n Want to cancel
order(y/n)?
Call edit Y
Stop
4. Flowchart for:
Drinks, Snacks, Meal, Dessert
Start
Display background
Menu options
Food in
Read choice record?
Main Menu
5. Flowchart for look
Start
Display background
Close hotel.exe
Assign value to
Some variable
Open hotel.exe
Close hotel.exe
Stop
6. Flowchart for Edit Start
Display look
Make New.exe
Get variable to
cancel order
Read variable
Y
Read hotel.exe &
let a$= name of the
food items Is variable=a$ ?
Delete hotel.exe
Rename new.exe
as hotel.exe
Stop
Start
7. Flowchart for Bill
Display look
Total
Final= total+(13*total)/100
Cost with
13%VAT, final
Amount
not enough
Get amount
N
Q=final-amount Is dec<= 0 ?
Dec=int(q*100+.5)/100
Y
Here is your
change, dec
Display continue
Stop
8. Flowchart for Background
Start
Declare variable
x = INT(RND * 640)
y = INT(RND * 480)
Paint Circle Construct Circle r = INT(RND * 100)
Stop
Open hotel.exe
Close hotel.exe In input mode
Close hotel.exe
Stop