Sie sind auf Seite 1von 8

#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 Hotel.exe

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 hotel.exe

Main Menu
5. Flowchart for look
Start

Display background
Close hotel.exe

Assign value to
Some variable

Food items purchased

Open hotel.exe

Read hotel.exe & assign


variables for its content
N

Display food items and price Are all food


stored in variable items read ?

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$ ?

Store the food item & price


in the file New.exe
N
Are all food
Y items read ?

Delete hotel.exe

Rename new.exe
as hotel.exe

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 hotel.exe
Close hotel.exe In input mode

Read content Store


price in variable b N

Declare variable a Are all food


a=a+b items read ?

Close hotel.exe

Stop

Das könnte Ihnen auch gefallen