In the Modular Programming and Visual Logic Procedures Lesson, we learned to divide a problem into simpler and smaller sub-problems, tackle and solve each separately by creating/defining a procedure. Then call the procedure for each sub-problem in the proper order to solve the entire problem. The strategy of divide and conquer makes solving a complex problem much easier because once divided, we can be more focus on each sub-problem and less chance to overlook anything while doing it.
For this homework, a Visual Logic flowchart for the temperature conversion problem without using any Procedure is attached to get you started. Just right click on the attachment, save it onto your own computer, then open Visual Logic to open the saved file.
If you have gone through the Lesson on Modular Programming and Visual Logic Procedures, you would have already have at least one procedure put in place to the Temperature Conversion Problem. in addition to the Get_Input Procedure, complete what the Lesson has started by creating two more Procedures:
Conversion - This procedure will accept a By Value parameter (the degree in Fahrenheit) and return the converted degree in Celsius through a By Reference parameter.
Show_Celsius - This procedure will accept a By Value parameter (the degree in Celsius) and display it in the console Window.
Then, add three calling statements in the Main Procedure to solve the entire problem of temperature conversion.
Edited by LiiLii, 31 March 2012 - 12:23 PM.