Chapter 3 Exam (My Answer)

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Input Processing Output

Block_length Prompt for block measurements Mowing_time


Block_width Get block measurements
House_length Prompt for house
measurements
House_width Get House measurements
Calculate mowing area
Calculate mowing area

Defining Diagram

Solution algorthim
Calculate_Mowing_time

Prompt for Block_length, Block_width

Get Block_length, Block_width

Prompt for House_length, House_width

Get House_length, House_width

House_area = House_length * House_width

mowing_area = Block_area-House_area

mowing_time= mowing_area/2

Output mowing_time to screen

End

Flowchart on next page


Calculate_Mowing_time
Start

Block_length, Block_width, House_length, House_width

Prompt

Block_length, Block_width, House_length, House_width

Get

House_area = House_length * House_width


Calculate
mowing_area = Block_area-House_area

mowing_time= mowing_area/2

Display mowing_time to screen

End
Stop

You might also like