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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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