Showing posts with label Centimeter into Meter and Kilometer Converter Pseudocode and Flowchart. Show all posts
Showing posts with label Centimeter into Meter and Kilometer Converter Pseudocode and Flowchart. Show all posts

Thursday, October 10, 2019

Centimeter into Meter and Kilometer Converter Pseudocode and Flowchart

Programming Problem

Write pseudocode and flowchart to input length in centimeter and convert it to meter and kilometer and display the result on the screen.

Pseudocode

Start
    Declare Real cm, meter, km
    Output "Centimeter into Meter and Kilometer Converter"
    Output "Give Length in Centimeter:"
    Input cm
    Assign meter = cm / 100.0
    Assign km = cm / 100000.0
    Output "Length in Meter = " &tofixed(meter,2) &" m."
    Output "Length in Kilometer = " &tofixed(km,2)&" km."
End



Flowchart of  Centimeter into Meter and Kilometer Converter