Data items are "local".
Consider the following example in C++.
class MyClass
{
public:
void setX(int x)
{
this->x = x;
}
private:
int x;
};
We have an integer variable local to the scope of the class declaration, and we have another integer variable local to our setX() function, though we have no global functions, that's something you want to try to avoid as a general rule of thumb.
Set a buget based on monthly income
Rajesh might want to avoid the use of a web app for the project due to connectivity issues. Hence, one reason he might want to avoid using the Webb app is slow or poor internet connection.
Collaborating on a web application relies very heavily on network connectivity which is the what establishes the link ms allows the apllications to achieve optimum performance.
Therefore, slow internet connection is a major reason whuhe might want to avoid using a web app.
Learn more : brainly.com/question/25531734
Answer:
def main():
principal = float(input("Enter the amount of principal amount to be deposited: "))
rate = float(input("Enter annual interest rate paid by the account: "))
num = int(input("Enter the number of times per year that the interest is compunded: "))
years = float(input("Enter the number of years the account will be left to earn interest: "))
amount = principal*(1+(rate*.01)/num)**(num*years)
print("The amount of money will be in the account after ", years, "years:", round(amount,2))
main()
Explanation:
- Calculating the balance of the account after a specified number of years with the help of the formula:
- amount = principal*(1+(rate*.01)/num)**(num*years)