1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
svlad2 [7]
3 years ago
9

Write a program that calculates the amount of money in a savings account that earns a guaranteed yearly interest rate. The progr

am will accept from the user the account is present value (i.e. what is in the savings account now), the annual interest rate (in a percentage), and the number of years the money will be left in the account (years). The program should display the savings account future value and the number of years the money will be left in the account.
Computers and Technology
1 answer:
White raven [17]3 years ago
7 0

Solution :

# Reading principle amount from user

$\text{accountPresentValue}$ = eval($\text{inpu}t("$Enter principle amount: "))

# Reading time duration in number of year from user

years = eval(input("Enter time duration in number of year: "))

# Reading interest rate from user

annualInterestRate = eval(input("Interest rate: "))

# calculating futureValue using user input data

futureValue = accountPresentValue * (1 + annualInterestRate / 100) ** years

# printing calculated futureValue to console

print("Final balance =",futureValue)

You might be interested in
What is thisssssssss please answer
True [87]

Answer:

first of all, are you a snake? And also that is a spotlight.

Explanation:

3 0
3 years ago
Discuss Hashing and how it is utilized within the IT industry. Also, discuss how Hashing can improve our sorting and searching r
shusha [124]

Answer:

Hashing can be termed as the alteration of a string of characters into a frequently smaller fixed-length value or key that represents the original string.

Explanation:

Hashing are utilized to catalog and recover digital items in a database since it is quicker to find the item using the shorter hashed key than finding the items using the original value.

5 0
3 years ago
Which feature of spreadsheet software can display numerical data in a visually appealing and easily understood format
Bad White [126]
A table maker makes visually appealing tables such as line graphs, bar graphs, venn diagrams on a spreadsheet software. 
8 0
3 years ago
Read 2 more answers
Create a function, return type: char parameters: int *, int * Inside the function, ask for two integers. Set the user responses
iris [78.8K]

Answer and Explanation:

In C programming language:

char fun(int*a, int*b){

printf("enter two integers: ");

scanf("%d%d",a,b);

int e;

printf("please enter a character: ");

e=getchar();

return e;

}

int main(int argc, char *argv[]) {

int d;

int f;

int g;

fun();

printf("%d%d%d", d, f, g);

}

We have declared a function fun type char above and called it in main. Note how he use the getchar function in c which reads the next available character(after the user inputs with printf()) and returns it as an integer. We then return the variable e holding the integer value as char fun() return value.

4 0
3 years ago
How to break and argument at a certain symbol in python.
Dima020 [189]

Answer:push both of the people away from each other and try to solve things out

Explanation:

3 0
2 years ago
Other questions:
  • A few questions related to power point.
    8·1 answer
  • Using data from a tal distribution database, define a view named toplevelcust. it consists of the number, name, address, balance
    14·2 answers
  • A merge is _____.
    5·2 answers
  • Given the availability of an ofstream object named output, write the other statements necessary to write the string "3.14159" in
    8·1 answer
  • 16^2-8xy+y^2-25(x-y)^2
    13·1 answer
  • Is there any app that understands fake photos<br><br><br>help me i need to know it​
    9·2 answers
  • Name and describe one of three types of sensitive information.
    9·1 answer
  • Which printing options are available in the Print menu? Check all that apply.
    11·2 answers
  • Pleasee telllllllllllllllllll​
    15·1 answer
  • Which option identifies the type of engineers described in the following scenario?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!