Assignment Factorial and Power
Last updated
Last updated
This assignment is to help you review C-programming for Numerical Programming.
==Do NOT use Chat-GPT and online materials. You can do it by yourself==.
Q1. Create power(x,N) function that returns
Q2. Create factorial(x) function that returns
Hint
You must complete the following tutorials first.
Create a new project “ Assignment_powerNfactorial” with Visual Studio Community.
It should be under the designated folder of \NP\assignment\
C:\...\...\source\repos\NP\assignment\Assignment_powerNfactorial\
Create a new source file and name it as “Assignment_powerNfactorial_yourName.cpp”
Copy the source code below or from this link: Assignment_powerNfactorial_student.cpp
Fill in the definitions of power() and factorial()
Run the code and check the answers
Capture the output window and paste in the report
Submit as “Assignment_powerNfactorial_yourName.zip” that includes
(1) Report: “Assignment_powerNfactorial_yourName.pdf”
A report that shows the results by capturing the output screen
Download a simple report template
(2) Source code
submit only “Assignment_powerNfactorial_yourName.cpp”