[Link]@torontomu.
ca
Homework Assignment 5
ITM207 Computer Enabled Problem Solving
Information Technology Management
Ted Rogers School of Management
Toronto Metropolitan University
Submission Policy
• Submit through D2L (submission through email is not allowed)
• Submit the report as a .docx or pdf file
• Your report should contain your Name and student ID number
Problem 1: 20 points
Design an algorithm/flowchart using Raptor that displays the product of first n natural numbers.
Use n as an input variable.
Hint: Product of first n natural number = 1 x 2 x 3 x 4 x … … … … x (n-1) x n
Note: Product of first n numbers is known as factorial and expressed as n!. You need this
knowledge to solve problem 3.
Test your code using n = 6.
Submit raptor files along with your report. Your report should include the screenshot of your
flowchart including sample input and output.
Problem 2: 30 points
Design an algorithm/flowchart using Raptor to compute the following sum. Use x and n as input
variables.
1 + x + x2 + x3 + … … … + xn-1 + xn
Test your code using, x = 4, n = 6.
Submit raptor files along with your report. Your report should include the screenshot of your
flowchart including sample input and output.
Problem 3: 50 points
Design an algorithm/flowchart using Raptor to compute the following sum. Use x and n as input
𝑥 𝑥2 𝑥3 𝑥𝑛−1 𝑥𝑛
variables.
1+ + + +……+ +
1! 2! 3! (𝑛 − 1)! 𝑛!
Here, n! represents factorial n i.e., the product of first n natural number.
Hence, n! = 1 x 2 x 3 x … … x (n-1) x n
[Link]@[Link]
Test your code using, x = 4, n = 6.
Submit raptor files along with your report. Your report should include the screenshot of your
flowchart including sample input and output.
Note:
- Late submissions are not allowed. So, submit the homework at least one or two days before the
deadline in order to avoid technical difficulties or unwelcome incidents.
- If you have any question regarding the homework please ask during class sessions or during
office hours. Please do not send emails.