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:
#include <iostream>
#include <vector>
using namespace std;
void swapFrontBack(vector<int>& nums) {
if(nums.size() < 2) {
return;
}
swap(nums[0], nums[nums.size()-1]);
}
void printit(vector<int>& arr) {
for(int i = 0; i < arr.size(); i++) {
cout << arr[i] << " ";
}
cout << endl;
}
int main() {
vector<int> num1;
swapFrontBack(num1);
printit(num1);
num1.push_back(1);
swapFrontBack(num1);
printit(num1);
num1.push_back(2);
swapFrontBack(num1);
printit(num1);
vector<int> num2(10, 1);
num2[9] = 2;
swapFrontBack(num2);
printit(num2);
return 0;
}
Explanation:
Answer:
A file with extension ".exe".
or A system file
▪︎An onscreen camera for drawing virtual images is called "turtle" in python language.
The codes we will be using in the following algorithm are :
▪︎Turtle.left
▪︎Turtle.right
▪︎Turtle.move #upward
An algorithm to help the python turtle reach the finish line :
- Turtle.left
- Turtle.left
- Turtle.left
- Turtle.move#upward
- Turtle.move#upward
- Turtle.move#upward
- Turtle.right
- Turtle.right
- Turtle.move#upward
- Turtle.left
Answer: using video conferencing, electronic meeting systems, and groupware
Explanation:
Green computing simply means the use of computer in a way that's environmental friendly.
One way to achieve this is through using video conferencing, electronic meeting systems, and groupware. This allows the use of computers not to have a negative effect on the environment.