Solution:
initial = float(eval(input('Enter the monthly saving amount: ')))
x = (1 + 0.00417)
month_one = initial * x
month_two = (initial + month_one) * x
month_three = (initial + month_two) * x
month_four = (initial + month_three) * x
month_five = (initial + month_four) * x
month_six = (initial + month_five) * x
print('The sixth month value is: '+str(month_six))
Don't forget the saving amount, and initialize the balance with that amount. Inside the loop, work out and add the interest and then add the saving amount for the next month.
balance = 801
for month in range(6):
balance = balance * (1.00417)
print(balance)
Answer:
//here is the statement in java.
import java.util.*;
//class definition
class Solution
{
// main method of the class
public static void main (String[] args) throws java.lang.Exception
{
try{
// this statement will print the 3 2 1 Go! and go to newline
System.out.println("3 2 1 Go!");
}catch(Exception ex){
return;}
}
}
Explanation:
We can use "System.out.println()" to print the required output same as it required. After printing this, it will go to newline.
Output:
3 2 1 Go!
Answer:
ARPANET
Explanation:
It was the ARPANET sponsored by the US Department of Defense to enable scientists collaborate on research.
The chemical energy in food is transformed into mechanical energy through a process called respiration. This isn't really a computers and technology question though. Try Biology next time.