Flow chart question

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
09 September 2026
Semi Qualified CA / CA Inter - 2 Groups Cleared

Getmyca Consultant Pvt Ltd

New Delhi

CA Inter

View Details
Company
Featured 21 September 2026
Consultant - Reporting

Finrep Advisors LLP

Mumbai

CA

View Details
Company
22 September 2026
Account Assistant

Chirag P Shah & Co. Chartered Accountant

Pune

B.Com

View Details
Company
18 September 2026
Accounts & Finance Specialist

ULTRA CHEMICAL WORKS

Thane

CA Final

View Details
Company
09 September 2026
SENIOR AUDITOR & ACCOUNTS MANAGER

Anupam Parashar & Co.

Ghaziabad

CA Final

View Details
Company
ARTICLESHIP 21 September 2026
CA Article Assistant

KK & Company Chartered Accountant

Pune

CA Inter

View Details
Company
29 September 2026
Work at home

Lottery.sambad.tv

Bhopal

Others

View Details
Company
ARTICLESHIP 07 September 2026
Article/ Paid Assistant

Murali and Sumeet Chartered Accountant

Bengaluru

CA Foundation

View Details