Вы находитесь на странице: 1из 2

1. System will display menu 2. Prompt user to enter choice and the system will read it.

The choice must be in character. 2.1 If the user choose choice a. 2.1.1 The system will display the greeting message. 2.1.2 Prompt user to enter the shape and the system will read it. The shape must be in character. 2.1.2.1 If shape is square 2.1.2.1.1 Prompt user to enter symbol and the system will read it. The symbol must be in character. 2.1.2.1.2 Prompt user to enter the base and the system will read it. The base must be in integer. 2.1.2.2 If shape is triangle. 2.1.2.2.1 Prompt user to enter the symbol and the system will read it. The symbol must be in character. 2.1.2.2.2 Prompt user to enter the base and the system will read it. The base must be in integer. 2.1.2.3 If shape is rectangle 2.1.2.3.1 Prompt user to enter the symbol and the system will read it. The symbol must be in character. 2.1.2.3.2 Prompt user to enter the base and the system will read it. The base must be in integer. 2.1.2.3.3 Prompt user to enter the height and the system will read it. The height must be in integer 2.1.3 The system will display the shape 2.1.4 Prompt user to enter continue option and the system will read it. The continue option must be in character. 2.1.4.1 If continue option=y 2.1.4.1.1 Repeat step 2. 2.2 If the user choose choice b 2.2.1 The system will display greeting message 2.2.2 Prompt user to enter first upper and the system will read it. The first upper must be in integer. 2.2.3 Prompt user to enter first lower and the system will read it. The first lower must be in integer. 2.2.4 Prompt user to enter operator and the system will read it. The operator must be in character. 2.2.5 Prompt user to enter second upper and the system will read it. The upper second upper must be in integer. 2.2.6 Prompt user to enter second lower and the system will read it. The lower second lower must be in integer. 2.2.6.1 If operator + 2.2.6.1 The system will calculate the first fraction and the second fraction by using formula; first upper / first lower + second upper / second lower = (first upper* second lower + second upper * first lower ) / (first lower * second lower )

2.2.6.2 If operator 2.2.6.2.1 The system will calculate the first fraction and the second faction by using formula first number / first lower second upper / second lower = (first upper * second lower - second upper * first lower) / (first lower * second lower ) 2.2.6.3 If operator * 2.2.6.3.1 The system will calculate the first fraction and the second fraction by using formula; first upper / first lower * second upper / second lower = (first upper * second upper ) / (first lower * second lower ) 2.2.6.4 If operator / 2.2.6.4.1 The system will calculate the first fraction and the second fraction by using formula; (first upper / first lower) / (second upper / second lower) = (first upper * second lower ) / (first lower / second upper ) 2.2.7 2.2.8 The system will display answer of the calculation of fraction. Prompt user to enter continue option and the system will read it . The continue option must be in character. 2.2.8.1 If continue option y 2.2.8.1.1 The system will repeat step 2 . 2.2.8.2 If continue option n 2.2.8.2.1 The system will display the overall number of the task. 3. System terminate

Вам также может понравиться