In order to find my sense of belonging I’ve joined the Security Club and I’m planning on joining The Engineers Without Borders Club. I’m going to build my sense of community by attending these club meetings and try to make new friends at these meetings. I think this will help me find my sense of place because the more times I go to these meetings the more familiar I am with other members and a bond begins to grow.
• Code your algorithm
In the PY file
• Program Testing
Input Expected Actual meet expectation F1 Ask for summation or integration Yes, then it asks for integration or summation F2 Ask for summation or integration Yes, then it asks for integration or summation F3 Ask for summation or integration Yes, then it asks for integration or summation Other Print (“try again”) and ends the program Yes, then it prints try again and ends the program summation Return summation of previously identified function Yes, then it asks for start and end value then returns it Start value Will include this value when the summation function is called Yes, asks for end value End value Will include this value when the summation function is called Yes, then prints the summation of that function None integer for start or end value Ends program and prints try again No, the program instantly ends integration Asks for using rectangles or trapezoids Yes, then asks for the use of rectangles or trapezoids rectangles Returns integration with the use of rectangles for previously identified function with inputted values Yes, then asks for left or right Left Returns rectangle calculation for left side Yes, then asks for number of rectangles then the start value and then the end value Right Returns rectangular calculation for right side Yes, then asks for number of rectangles then the start value and then the end value Number of rectangles Will include this value when the integration function is called (for either right or left whatever is picked by the user) Yes, uses the users input for the number of rectangle Start value Will include this value when the integration function is called
(for either right or left whatever is picked by the user) Yes, uses the users input for the start value End value Will include this value when the integration function is called (for either right or left whatever is picked by the user) Yes, uses the users input for the end value Other(for summation or integration) Print “try again” and ends program Yes, prints try again and ends the program Trapezoids Returns integration with the use of trapezoids for previously identified function with inputted values Yes, then asks for the number of trapezoids Number of trapezoids Will include this value when the integration function is called for trapezoids Yes, then asks for the starts value Start value Will include this value when the integration function is called
for trapezoids Yes, then asks for the end value End value Will include this value when the integration function is called for trapezoids Yes, then it outputs the calculation for trapezoids (ask if they want to calculate again)
yes Start from the beginning asking which function they want to integrate or use summations Yes, it starts from the beginning No Prints(“okay come again”) and ends the program Yes, ends the program