Create variables for for each of the components

Assignment Help Computer Engineering
Reference no: EM133548047

  1. Writee a program to calculate the future value (the variable A above). Use the following values:
    1. Principal amount of $5,000
    2. Annual nominal interest rate of 4.5% (Don't forget to convert this to a decimal value. Example: 15% = 0.15).
    3. Compounded monthly - This means the number of compounding periods per unit of time is 12, for 12 months per year
    4. Time period of 40 years

      Create self-documenting good variable names in snake case or camel case. 
      For example, if I were storing a value such as total sales per store in Texas, I could name the variable 'total_sales_per_store'.
      DO use variable names with multiple words - make your code as clear and self-explanatory as possible.

      Create variables for for each of the components of the formula, and initialize them with the values in steps a through d above. 
      DO NOT USE LITERALS IN YOUR FORMULAS - USE VARIABLES.

      IMPORTANT: DO NOT PROGRAM THE ENTIRE FORMULA IN ONE LINE
      USE THESE STEPS IN ORDER: 
    5. First calculate the periodic interest rate - this is the 'r/n' portion of the formula. Name this variable periodic_interest_rate.
    6. Second, calculate the total number of interest periods - this is the 'nt' portion (multiply) portion of the formula. Name this variable 'total_interest_periods'.
    7. Third, finish the formula by plugging in your variables with intermediate results from steps e and f.
    8. Use parentheses to control the order of mathematical operations.
    9. Use print statements to display all 4 of the input values in the console, with an appropriate text label. 
        For example, an output label for my store sales example above could be: 
           'Total sales per store: 34677'
    10. Use a print statement to display the final result, with an appropriate label

Reference no: EM133548047

Questions Cloud

Write a code snippet that computes the original image : write a code snippet that computes the original image, storing it as the variable corrected. Hint: You can use np.linalg.inv to compute the inverse of a matrix
Why was the election of 1824 so important : Why was the Election of 1824 so important? If you were alive in 1824 who would you have voted for and why?
How do you handle the juveniles who tried to steal the beer : How do you handle the juveniles who tried to steal the beer? Do you punish them for attempted robbery, for possession of alcohol, for both, or for neither?
What is the content in each of the files : what is the content in each of the files? Provide screenshots. Are they all the same? If yes, why?
Create variables for for each of the components : Create variables for for each of the components of the formula, and initialize them with the values in steps a through d above
Explain what make some people more suitable targets for : Explain what make some people more suitable targets for motivated offenders? Watch Secrets To Avoid Getting Mugged: A Veteran Thief Reveals All
How critical thinking were involved in changing of history : Explain how the Untied States first launch space shuttle in 1981 problem solving, inquiry, and critical thinking were involved in the changing of history?
Should softly press their index finger : should softly press their index finger on the camera lens while covering the flash light. From the variation of the red coloration in the image we will derive
What about being the victim of an assault and being : Would you consider the event "being the victim of a kidnapping/abduction" and the event "being the victim of a convenience store crime" as independent

Reviews

Write a Review

Computer Engineering Questions & Answers

  Show the volume of a rectangular pool of constant depth

A contractor needs a program that calculates and shows the volume of a rectangular pool of constant depth. Complete an IPO chart for this problem. Use pseudocode in Processing column.

  Draw a k-map for a function in two variables

What are the minterms represented by cells adjacent to this cell?

  How many bits would the tag field be in this case

Assume 64-bit addresses and the layout from chapter 4. How many bits would the tag field be in this case?

  The default text-based command-driven communication

If you need to create clean Web pages, which of the following is the best choice. If you need to create a text document with some graphics and format it for printing, which of the following is the best choice. Computer directories or folders are use..

  Write a function that takes a set of tweets

Write a function that takes a set of tweets (given as a list of one string for each tweet), and outputs a network where the edges represent.

  How would you use information technology

As an IT professional, how would you use information technology to improve the efficiency the three levels of management hierarchy?

  Write down the syntax using a loop to print out

Write down the syntax (one line) to declare an int array with 7 values which are all 10.

  Show total distance traveled and total gas consumed

Allow the user to keep entering data in 5 minute increments until the user has no more data to enter. Show total distance traveled, total gas consumed.

  Show that in ricart-agrawalas algorithm

Show that in Ricart-Agrawalas algorithm, the critical section is accessed according to the increasing order of timestamps (discuss why it is impossible

  Were you able to see the malware at both vendor

Using a Web Browser, perform some research on a newer malware variant that has been reported by a major malware container vendor. Using a search engine.

  You work for a regional forensic computer lab and have been

you work for a regional forensic computer lab and have been tasked with recovering all data from a suspects cellular

  Identify the problem you would like to address

Identify the problem you would like to address. Create a 3D model of your prototype using paper or cardboard and upload a picture of the 3D model.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd