Flow chart question

1209 views 7 replies

assume that the postal charges for a letter are calculated as follows:

20 paise for first 10 gms.

30paise for every additional 5 gms upto next 40 gms.

40 paise for every additional 5 gms thereafter.

draw a flow chart which reads the weight of the letter and display the charges.

Replies (7)

1. draw a start button.

2. draw a input box n put the charges and Weight.

3. draw a check box and put weight= <10, if yes than (charges C1) = .10*weight.

if no than draw a check box put grams =<40, if yes than (charges C2)= C!+ (.30*weight/5)

4. if not than (charges C3)= C1+C2+(.40*weight/5).

5. Draw  box (processing) and put total charges TC= C1+C2+C3

5. Conncet the boxes of charges with print box n put Charges n Weight.

6. Draw stop button.

 

Originally posted by : kamal kishor sen

1. draw a start button.

2. draw a input box n put the charges and Weight.

3. draw a check box and put weight= <10, if yes than (charges C1) = .10*weight.

if no than draw a check box put grams =<40, if yes than (charges C2)= C!+ (.30*weight/5)

4. if not than (charges C3)= C1+C2+(.40*weight/5).

5. Draw  box (processing) and put total charges TC= C1+C2+C3

5. Conncet the boxes of charges with print box n put Charges n Weight.

6. Draw stop button.

 

while dry run and debugging flow chart is not proper as you told pls eloborate it....and thanks for your support......looking forward......

step 1 : Start

step 2: let charges =0, a=0

step 3: Read weight

step 4: If weight <= 10 gram

        yes. charges = 20 paise. GOTO step 5

        no.   If weight <=50 gram

                   yes. a=roundup {(weight-10)/5}

                            charges = 20+ a*30; GOTO step 5

                    no. a=roundup {(weight - 50)/5}

                             charges = 20+ 8*30 + a*40

step 5: Print "For a weight of"  weight " the charges are "  charges " paise"

step 6: Stop

 

for the flowchart cited above by Kamal Kishor, there are few mistakes;

1. its asking for input of charges also. it is something that is required to be found out by the flowchart

2. if weight =10 gram, then charges will be Rs. 1.00

    if weight = 8 gram, then charges will be  Rs 0.80

3.  also i think the entire flowchart goes wrong

Yes sorry for wrong solution...
stull not getting proper flow chart after debugging it or after dry run

Leave a Reply

Your are not logged in . Please login to post replies

Click here to Login / Register  

Company
16 June 2026
Sr. Associate / Assistant Manager | TAS / FDD

Boutique Investment Bank & Transaction Advisory Firm

Gurgaon

CA

View Details
Company
25 June 2026
Accounts & Taxation Executive

Dindukurthy & Associates

Hyderabad

MBA

View Details
Company
ARTICLESHIP 09 June 2026
Article Trainee

Numbertree LLP

Mumbai

CA Inter

View Details
Company
24 June 2026
Senior Account (VA Client Operations)

Karbon Business

Bengaluru

CA Inter

View Details
Company
19 June 2026
Accounts Executive

Getfive Advisors Pvt. Ltd.

Ahmedabad

CA Inter

View Details
Company
Featured 15 June 2026
Senior Auditor

N. Dhawan & Co

New Delhi

CA Inter

View Details
Company
ARTICLESHIP 31 May 2026
Article Assistant

KPRS And Associates

New Delhi

CA Inter

View Details
Company
Featured 24 June 2026
HEAD - AUDIT AND TAXATION

A R JADHAV AND ASSOCIATES

Mumbai

CA Inter

View Details