Create a program that will calculate the monthly payment

Assignment Help Programming Languages
Reference no: EM131321656

Assignment

A finance company provides loans for motorcycles at different rates depending on how much the total loan amount is and how many payments will be made on the loan. Using the information in the table below, write a program that will calculate the monthly payment based on user inputs of loan amount and number of monthly payments. The user will NOT input the percentage rate, as this will be determined by the program code based on user input of loan amount and number of payments. The output will display the loan amount, number of payments, monthly payments and the interest rate of the loan. Use a loop to allow users to enter as many sets of data as desired. At the end of each loop, ask the user if he or she would like to Continue the program (Y for Yes or N for No). If yes, clear the variables and repeat the input, processing and output loop. If no, exit the program. NEVER call "main" from inside your program. Use a loop that keeps your program running.

Problem Statement

Amount of Loan # ***** Payments Interest Rate Applied

$500 - $ 2,500 6-12 8%

13-36 10%

37-48 12%

$2,501 - $10,000 6-12 7%

13-36 8%

37-48 6%

$10,001 or above 6-12 5%

13-36 6%

37-48 7%

If the user enters data that is "out of bounds" (loan amount/number of payments below or above minimum/maximum in table), display an error message explaining the situation to the user and ask for the loan amount or number of payments (whichever one was out of bounds) again. Message Example: "We do not finance loans below $500."

You MUST use Modular Programming techniques by using Sub Modules (Sub Charts in RAPTOR) in your program. Your "main" module should not be very large. Again, NEVER call "main" from inside your program. Also, do not use "recursion" in this program (submodules that call themselves). You are only allowed to use looping techniques to repeat sections of your submodules.

Reference no: EM131321656

Questions Cloud

Wave function into a modulated wave : Devise a system for converting a monochromatic optical wave with complex wave function into a modulated wave of complex wave function by use of an acousto-opticcell with an acoustic wave . Hint:Consider the use of upshifted and downshifted Bragg r..
Discuss three most common sources of virus infections : In this chapter, we did not discuss the likely sources of computer viruses. Discuss four most likely sources of computer viruses.
Arguments for and against the use of animals in research : What are the arguments for and against the use of animals in research? What steps are taken to ensure the health and welfare of research animals?
Aluminum calorimeter cup containing : What will be the equilibrium temperature when a 215 g block of copper at 245 °C is placed in a 155 g aluminum calorimeter cup containing 855 g of water at 13.0 °C?
Create a program that will calculate the monthly payment : Using the information in the table below, write a program that will calculate the monthly payment based on user inputs of loan amount and number of monthly payments.
What role do the accountants play in risk management : What role do the accountants play in risk management - Why is it important to hire accountants that understand the unique needs of a healthcare organization?
How research have violated principles of ethical behavior : How the research may have violated principles of ethical behavior, and what, if any, alternative research methods for testing the research hypothesis might have been used:
Describe how a virus is moved on the internet : What are the difficulties faced by a community that wants to filter the Internet content?
What is mcdonaldization : What is McDonaldization? What are some examples of McDonaldization given in the book?What are some of the advantages of McDonaldization? Discuss efficiency, calculability, predictability, and control.What is rationality and how does it relate to Rit..

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a complete program to calculate the angle

Write a complete program to calculate the angle, the perimeter, the area, the radius of the inscribed circle, the radius of the circumscribed circle of a polygon, and the positive difference of the two radii given the input of the length of one si..

  How can you be sure your source is credible

Submit a proposed reference list of at least eight sources that are properly cited according to APA format. I would like to see a variety of sources, for example not just articles from one journal.

  Define and create an exception

Quotient throws an exception to the higher-level function main to decide whether or not the program should be terminated. Main catches the divByZero and prints out an appropriate comment on the screen. Also include in main a try block to catch the..

  Write program for department of motor vehicles

Department of motor vehicles has finally decided to computerize its list of licensed drivers. Program you write must make use of existing file call Licenses with records of given form. Name, License Number

  Use the concepts of file reading

This program requires you to use the concepts of file reading, parallel arrays and sorting. Your program should read the string content into a string array and the integer content into an integer array

  Write a program to compute the probability

Write a program (or a peudocode) to compute the probability that at least 2 people have the same birthday, given there are 2, 3, 4,....,60 people in the room.

  Rewrite the extract.pl using bioperl

Rewrite the "extract.pl" using BioPerl, including the use of Bio::SeqIO to read the genome FASTA file ("mystery_seq1.fas") and the use of Bio::Seq for obtaining coding sequences and translating sequences.

  Generate code for the given three address statements

Generate code for the given three-address statements assuming a and b are arrays whose elements are 4-byte values.

  Supporting activity and security personnel

Write a 100- to 200-word short-answer response for the following: Supporting Activity: Security Personnel. Do you think that security personnel require specific skills. Should security practices by an organization be used to prevent the misuse of ..

  Write program that calculate and prints the monthly paycheck

Write a program that calculates and prints the monthly paycheck for an employee. The net pay is calculated after taking the following deductions: Federal Income Tax: 15%.

  Create an example of a nested if structure

Create an example of a nested IF structure and build it into a small project. Compile and execute the program, and discuss any challenges you encountered. Post the code of the program

  Displays the total amount of money entered into slot machine

The program will ask whether the user wants to play again. If so, these steps are repeated. If not, the program displays the total amount of money entered into the slot machine and the total amount the user won.

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