#18
Computer Project
On
QBASIC
(Flowchart)
By: Nischit P.N. Pradhan
Class: 10B
To: Prakash Pradhan
1. Flowchart for Home Page
Start
Call sub background
Welcome to the Pradhan Hotel
Call main
Stop
2. Flowchart for Continue
Start
Display background
Get order$
Out of range
Lower case order$
Else
Read order$ Y or N ?
Y
N
Thank you
Display Main Menu
Stop
3. Flowchart for Main Menu
Start
Display background
Menu
Make [Link]
Main menu Options
N Declare Variable &
get choice
In range?
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
Declare variable &
get choice
N
Food in
Read choice record?
Let Variable be the chosen
food item & price
The requested food item
has been ordered
Store the food item & price
in the file [Link]
Main Menu
5. Flowchart for look
Start
Display background
Close [Link]
Assign value to
Some variable
Food items purchased
Open [Link]
Read [Link] & assign
variables for its content
N
Display food items and price Are all food
stored in variable items read ?
Close [Link]
Stop
6. Flowchart for Edit Start
Display look
Make [Link]
Get variable to
cancel order
Read variable
Y
Read [Link] &
let a$= name of the
food items Is variable=a$ ?
Store the food item & price
in the file [Link]
N
Are all food
Y items read ?
Delete [Link]
Rename [Link]
as [Link]
Stop
Start
7. Flowchart for Bill
Display look
The Pradhan Hotel
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)
Construct & paint
Rectangle around the
screen
Stop
9. Flowchart for Total Start
Open [Link]
Close [Link] In input mode
Read content Store
price in variable b N
Declare variable a Are all food
a=a+b items read ?
Close [Link]
Stop