Flow chart question

1215 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
05 July 2026
Financial Controller

NovumLake Partners

Mumbai

CA

View Details
Company
ARTICLESHIP 07 July 2026
Articleship

Jawahar and Associates Chartered Accountants

Hyderabad

CA Inter

View Details
Company
14 July 2026
Senior Executive/ Manager

H S SHARMA AND CO

Pune

CA Final

View Details
Company
25 June 2026
AUDIT MANAGER

JDAS & ASSOCIATES

New Delhi

CA

View Details
Company
ARTICLESHIP 08 July 2026
Article internship

AJAY SINGH AND CO LLP

Thane

CA Final

View Details
Company
20 June 2026
Chartered Accountant

ANV & Company

New Delhi

CA

View Details
Company
22 June 2026
Accountant

Global Image Technologies Private Limited

New Delhi

MBA

View Details
Company
29 June 2026
ACCOUNTANT

SANDEEP AASHISH & CO

Araria

B.Com

View Details