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)
Answer:
Ping
Explanation:
If working in an environment that uses Linux and Windows servers and the network using IP protocol, if an application you are using is unable to to connect to a windows server named FileSrv2, you will need to test network connectivity between your workstation and the server by using either the "ping" or "traceroute" command.
Answer: because computers are our main source of communicating and where we find a wide range of information to help us
Explanation:
Answer:
public class Class {
private String name ="";
private int score = 0;
//Method SetName
public void setName(String newName){
name = newName;
}
//Method SetScore
public void setScore(int newScore){
score = newScore;
}
//Method GetName
public String getName() {
return name;
}
//Method GetScore
public int getScore() {
return score;
}
}
Explanation:
- The class called Class is implemented in Java programming language
- It has two fields (instance variables name and score)
- Methods for setting the values of variables (mutator methods) or setters
- Methods for getting the values of the variables (accessor methods) getters