```
#!/usr/local/bin/python3
import sys
def print_factorial( user_val ):
if( user_val < 1 ):
return( 1 )
else:
return( print_factorial( user_val - 1 ) * user_val )
if( __name__ == "__main__" ):
if( len( sys.argv ) == 2 ):
print( print_factorial( int ( sys.argv[ 1 ] ) ) )
else:
sys.stderr.write( "usage: %s <integer>\n" % sys.argv[ 0 ] )
exit( 0 )
```
Answer:
future value = 232369.1361
return % = 384.10 %
Explanation:
given data
principal = $100 per month
time = 40 year = 480 months
rate = 6.25 % yearly = 0.0625 yearly = 0.005208 monthly
to find out
total amount of capital at the end of your investment and percentage is your total return
solution
so here future value formula is
future value = P
..........1
here r is rate and t is time and P is principal
so put all value
future value = 100
future value = 232369.1361
so
Total capital at the end of investment-Total principle invested over the years
232369.1361 - 100 ( 12 × 40 )
184369.1361
so
Return % =
× 100
return % = 384.10 %
Answer:
B
Explanation:
give answers next time pls so i can help you!!
Solution:
It is important because, it has to do operation on so without, data structures and algorithms.
It performs these operation:
1)Take an input
2) Process it
3) Give back the output.
The input can be in any form, for ex while searching for directions on google maps, the starting point and the destination as input to google maps, while logging in to any social sites, We have to give our email and password as input and so on.
Similarly, in the third step, the computer application gives us output in some form or the other.
To make this process efficient, we need to optimize all the three steps.