Thursday, July 9, 2009

actitivy no. 3 for Programming

Computer Programming: Design Program Logic
Decision Application

Create a flowchart and write the program of the following problems. Draw the flowchart on a short bond paper.

1.Accept two integers and determine if the values are equal, if the values are equal do not print anything, otherwise print the higher number.
2.Input three unique numbers and print the lowest number.
3.Input three unique numbers and print the difference of the highest and lowest numbers.
4.Create a flowchart that will accept a child’s age and print its equivalent education level. The age of a chil is considered 1 year old if it reaches 6 months. Given the condition of converting 6 months to a1 year, the flowchart should be able to identify the child’s education level. If a child was able to finish college, it is considered that he is not longer a child and is already a young adult and a professional. If the educational level is professional, the flowchart should not print anything. The education level in relation to the age is as follows:

Age 0 – 2 - Parental Age 7 – 12 - Elementary
Age 3 – 4 - Nursery Age 13 – 16 - Highschool
Age 5 – 6 - Pre-school Age 17 – 21 - College

No comments:

Post a Comment