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
Otrada [13]
3 years ago
10

Suppose you have a certain amount of money in a savings account that earns compound monthly interest, and you want to calculate

the amount that you will have after a specific number of months. The formula is as follows:
f = p * (1 + i)^t

• f is the future value of the account after the specified time period.
• p is the present value of the account.
• i is the monthly interest rate.
• t is the number of months.

Write a program that takes the account's present value, monthly interest rate, and the number of months that the money will be left in the account as three inputs from the user. The program should pass these values to a function thatreturns the future value of the account, after the specified number of months. The program should print the account's future value.

Sample Run

Enter current bank balance:35.7↵
Enter interest rate:0↵
Enter the amount of time that passes:100↵ 35.7
Computers and Technology
2 answers:
svetoff [14.1K]3 years ago
5 0

Answer:

See code below and explanation.

Explanation:

We can use Python for this wih the program Spyder to create the following code:

# INPUTS

p = float(input("Enter current bank balance: "))

i = float(input("Enter interest rate in %: "))

t = int(input("Enter the amount of time that passes: "))

# OUTPUTS

f=p*(1+ (i/100))**t

print("The future values is:", f)

We assume that the interest rate given is in % and we divide by 100 in order to convert to fraction.

And the example result obtained is given below:

Enter current bank balance: 35.7

Enter interest rate in %: 0

Enter the amount of time that passes: 100

The future values is: 35.7

Alecsey [184]3 years ago
4 0

Answer:p=float(input("Enter current bank balance:"))

i=float(input("Enter interest rate:"))

t=float(input("Enter the amount of time that passes:"))

print((p ((1+i)*t)))

Explanation:if this answer it looks weird its my phones fault

You might be interested in
Choose the web design factor from the drop-down menus that best represents each statement. A. Good web pages stick to the point,
Paladinen [302]

Choose the web design factor from the drop-down menus that best represents each statement.

Answer:

A. Good web pages stick to the point, do not have useless information, and showcase important information.

  • Useful content

B. The best websites clearly present a reason for the creation of the site.

  • Purpose

C. The best websites are pleasing to look at and make you want to click further through the pages.

  • Visually appealing

D. It is important for the web designer to understand the needs, interests, and technology level of the target web page visitor.

  • Audience

E. Good websites make it easy to navigate from one page to the other with relevant links in obvious places.

  • Easy to use
4 0
4 years ago
Respond to the following in three to five sentences. Select the workplace skill, habit, or attitude described in this chapter th
Serjik [45]

A skilled and successful worker is any worker who has special skill, training, knowledge, and (usually acquired) ability in their work. A skilled worker may have attended a college, university or technical school. Or, a skilled worker may have learned their skills on the job. Examples of skilled labor include engineers, software development, paramedics, police officers, soldiers, physicians, crane operators, truck drivers, machinist, drafters, plumbers, craftsmen, cooks and accountants. These workers can be either blue-collar or white-collar workers, with varied levels of training or education.

1. They Think About the Skills They Need for the Next Job

We all (OK, most of us) try to be awesome at the skills in our job descriptions, but the most successful people also focus on what they’ll need to know to succeed in their next jobs. Not sure what skills you should be developing? Check out career expert Laura Katen’s tips for honing in on exactly what to reach for next.

2. They Speak Up in Meetings

Especially if you’re in a large meeting, intimidated by the higher-ups there, or don’t know much about what’s going on, it’s easy to sit tight and listen. But the people who get ahead don’t wait for permission or an invitation to speak—they make sure everyone in the room knows they have something to contribute. Even if you don’t have a suggestion? “Speaking up to advocate for a co-worker’s point of view or asking a well thought-out question can go just as far,” says leadership coach Jo Miller.

3. They Dress for the Job They Want

You’ve heard it a thousand times—but it consistently holds true. People who get ahead at work look to those above them and emulate not only the clothes they wear, but the ways in which they present themselves in the office, interact with others, and approach their work.

4. They Get to Know the Higher-Ups

It’s pretty hard to get promoted if your boss’ boss doesn’t know who you are—so make it a point to get to know the higher-ups in your department. Check out Sara McCord’s tips for talking to your boss’ boss the right way.

5. They Know How to Communicate With Those Higher-Ups

If you’ve ever been in an executive-level meeting, you know that c-suiters communicate a bit differently than the rest of us. So, if you want to make it there someday, it’s key to learn how to talk the talk. Career coach Lea McLeod gives a few tips for getting started.

8 0
4 years ago
Read 2 more answers
Write a program that takes as input a number of kilometers and prints the corresponding number of nautical miles. Use the follow
Dmitrij [34]
<h2>Answer:</h2>

import java.util.Scanner;

public class NauticalMiles{

   public static void main (String [ ] args){

      Scanner input = new Scanner(System.in);

      System.out.println("Please enter the number of kilometers");

      double km = input.nextDouble();

      double nm = 0.54 * km;

      System.out.println("The corresponding number of nautical miles is "  + nm);

    }

}

<h2>Explanation:</h2><h2></h2>

<em>1 => Pre-code analysis</em>

According to the question,

(a) <em>A nautical mile (nm) is 1 minute of an arc.</em>

=> 1 nm = 1 minute of an arc

(b)<em>There are 90 degrees, each containing 60 minutes of arc, between the North pole and the equator.</em>

=> Each of the degrees in 90 degrees has 60 minutes of arc

=> 1^{0} = 60 minutes of arc

=> 90^{0} = 90 x 60 minutes of arc

=> 90^{0} = 5400 minutes of arc

(c) <em>A kilometer (km) represents 1/10,000 of the distance between the North pole and the equator. </em>

=> A kilometer = (1 / 10000) x distance between the North pole and equator.

Remember that the distance between the North pole and the equator as shown in (b) above is 90 degrees which is equal to 5400 minutes of arc.

=> 1 km = (1 / 10000) x 5400 minutes of arc

=> 1 km = (1 / 10000) x 5400 x 1 minute of arc

As shown in (a) above, 1 minute of arc is 1 nautical mile(nm).

=> 1 km = (1 / 10000) x 5400 x 1 nm

<em>=> 1 km = 0.54 nm.</em>

=========================================================

<em>2 => The code analysis</em>

The code has been written in Java.

The following is the line-by-line explanation of the code written as comments.

// Import the scanner class to allow for user's inputs

import java.util.Scanner;

// Declare the main class to hold and run the application

public class NauticalMiles {

   // Write the main method where execution will begin

   public static void main (String [ ] args) {

      // Create an object <em>input </em>of the Scanner class  

      Scanner input = new Scanner(System.in);

     

      // Prompt the user to enter the number of kilometers

      System.out.println("Please enter the number of kilometers");

      // Store the user's input in a double variable called <em>km</em>

      double km = input.nextDouble();

      // Convert the input to nautical miles using the formula from the

      // pre-code analysis above. i.e 1km = 0.54nm.

      // Store the result in a double variable called <em>nm</em>

      double nm = 0.54 * km;

      // Print out the result (the nautical mile)

      System.out.println("The corresponding number of nautical miles is "  + nm);

    }       // End of main method

}            // End of class declaration

=========================================================

<em>3 => Sample output</em>

<em></em>

> Please enter the number of kilometers

>> <em>45</em>

> The corresponding number of nautical miles is 24.3

8 0
4 years ago
Research: Using the Internet or a library, gather information about the Columbian Exchange. Takes notes about the specific goods
Vlad [161]

Answer:

Small pox, cacao, tobacco, tomatoes, potatoes, corn, peanuts, and pumpkins.

Explanation:

In the Columbian Exchange, transportation of plants, animals, diseases, technologies, and people from one continent to another held. Crops like cacao, tobacco, tomatoes, potatoes, corn, peanuts, and pumpkins were transported from the Americas to rest of the world. Due to this exchange, Native Americans were also infected with smallpox disease that killed about 90% of Native Americans because this is a new disease for them and they have no immunity against this disease. Due to this disease, the population of native Americans decreases and the population of English people increases due to more settlement.

5 0
3 years ago
3.18: Pizza Pi Joe’s Pizza Palace needs a program to calculate the number of slices a pizza of any size can be divided into. The
alina1380 [7]

Answer:

#program in python.

#variables

slice_area=14.125

pi=3.14159

#read diameter

d=int(input("Enter diameter of pizza:"))

#area of pizza

area=pi*(d/2)*(d/2)

#number of slice

no_slice=int(area/slice_area)

#print slice

print("total silce are:",no_slice)

Explanation:

Declare and initialize a variable "slice_area" with 14.125 which is the area of a pizza slice.Initialize a variable "pi" with 3.14159.Then read the diameter of pizza.Find the area of pizza as "area=pi *d/2*d/2".Divide the total area with area of pizza slice.This will be the number of slice.

Output:

Enter diameter of pizza:20                                                                                                

total silce are: 22

6 0
3 years ago
Other questions:
  • When considering server consolidation, plan on running ___________ vCPUs per core.a. 1 to 2b. 3 to 4c. 4 to 6d. 6 to 8
    7·1 answer
  • Blood alcohol level is the ratio between the alcohol consumed and the blood in the body
    10·1 answer
  • All of the following are good reasons to attend a cummunity college except
    10·2 answers
  • In java, c or c++ code, when a number begins with a leading 0, what do you know about that number: (example: int zzz = 012;) in
    13·1 answer
  • _ is the use of a collection of computers, often owned by many people or different organizations, to work in a coordinated manne
    6·1 answer
  • In C++ Please :
    6·1 answer
  • Why is it important to recognize web adress endings ?
    13·1 answer
  • What adaptation Judy and her parents have that help them run from predators coming?​
    6·1 answer
  • When should students practice netiquette in an online course? Check all that apply.
    9·1 answer
  • Objective a right turn true or false?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!