Flow chart question

1221 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
ARTICLESHIP 11 July 2026
Article

SNCO

Mumbai

CA Inter

View Details
Company
Featured 16 July 2026
CA Inter, CA Intermediate, CA IPCC, CA CPT, CA SemiQualified

Vakilsearch.com

Chennai

CA Inter

View Details
Company
ARTICLESHIP 23 July 2026
Article

Gianender & Associates

New Delhi

CA Inter

View Details
Company
16 July 2026
CA Inter, CA Intermediate, CA IPCC, CA CPT , CA SemiQualifie

Vakilsearch.com

Chennai

CA Inter

View Details
Company
13 July 2026
AVP / VP - PCG Advisory

Workforce Connect

Mumbai

MBA

View Details
Company
06 July 2026
Senior Accountant

Arvindkumar Maniar & Co.

Rajkot

CA

View Details
Company
ARTICLESHIP 16 July 2026
Article Assistant

Sahil Agarwal & Company

Mumbai

CA Inter

View Details
Company
06 July 2026
Accountant

Agarwal Anoop and Associates

Noida

CA Final

View Details