Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
C++ Language
This is to confirm my work, the wording throws me off a bit in understanding how interest works (i.e., whats the purpose of "interest to be paid" , why the deduction, #6, does it need to be displayed on the console, etc etc i don't understand this), I want to make sure I'm doing this right. Thanks.
Suppose a loan has a face value of $1,000, the annual interest rate is 15%, and the duration is 18 months.
- The interest-to-be-paid is computed by multiplying the face value of $1,000 by 0.15, yielding $150.
- That figure is then multiplied by the loan period of 1.5 years to yield $225 as the total interest owed.
- That amount is immediately deducted from the face value, leaving the consumer with only $775 (i.e. $1000 - $225).
- Repayment is made in equal monthly installments based on the face value (i.e. $1000 in this case).
- So the monthly loan payment will be $1,000 divided by 18, which is $55.56.
- This method of calculation may be alright if the client needs $775, but the calculation is a bit more complicated if the client needs $1,000.
- The discounted installment loan calculator will take two inputs:
- the amount the client needs to receive and
- the interest rate.
==
- The program should consider the duration of the loan being 30 months (i.e. a constant value), then calculate the face value required in order for the client to receive the amount needed.
- It should also calculate the monthly payment.
++
Expert Solution
arrow_forward
Step 1
code in C++
Trending nowThis is a popular solution!
Step by stepSolved in 3 steps with 1 images
Knowledge Booster
Similar questions
- Language is C++ Lab14A: The Architect. Buildings can be built in many ways. Usually, the architect of the building draws up maps and schematics of a building specifying the building’s characteristics such as how tall it is, how many stories it has etc. Then the actual building itself is built based on the schematics (also known as blueprints). Now it is safe to assume that the actual building is based off the blueprint but is not the blueprint itself and vice versa. The idea of a classes and objects follows a similar ideology. The class file can be considered the blueprint and the object is the building following the analogy mentioned above. The class file contains the details of the object i.e., the object’s attributes (variables) and behavior (methods). Please keep in mind that a class is a template of an eventual object. Although the class has variables, these variables lack an assigned value since each object will have a unique value for that variable. Think of a form that you…arrow_forwardA brief explanation of call by value versus call by reference would be helpful. Sincerely,arrow_forwardIt is not sufficient to declare a variable using the word "type" alone. Identifiers may be derived from a variable's data type as well as other aspects of its makeup. The next thing that has to be done is to find out how to characterise any given variable by employing this concept.arrow_forward
- Hi! I have a question here in C# programming How do I make the click event of the Add button to fire when the user presses the Enter Key, and the EXIT button fires when the user presses ESC key.arrow_forwardIn C++ Use naming conventions for variables, functions, methods, and more. This makes it easier to understand the code. Write simple code and do not over complicate the logic. Code exhibits simplicity when it's well organized, logically minimal, and easily readable. Write a program whose input is two integers, and whose output is the first integer and subsequent increments of 5 as long as the value is less than or equal to the second integer. Ex: If the input is: -15 10 the output is: -15-10-505 10 Ex: If the second integer is less than the first as in: 20 5 the output is: Second integer can't be less than the first.arrow_forwardSuppose that you have the following recursive function written in C++. I've intentionally written the function so that it doesn't use descriptive names for anything, though that's obviously not a good design practice, but I aim not to bias your understanding of the techniques you'll be using by assuming anything about what the function's goal is; to stay "on task" here, you should resist the temptation to try to figure that out first. void kaboom( const std::vector& v, std::vector& w, unsigned int i) { if (i < w.size()) { int q = 0; for (int j : v) { q += j; } w.at(i) - kaboom(v, w, i + 1); } = q; } 1. Using the techniques from our discussion of the Asymptotic Analysis of Recursion, write a recurrence that describes the time required to run the following call to kaboom for two vector v and w whose sizes are the same. Use the variable s in your recurrence to denote that size. kaboom(v, w, 0) 2. Using the repeated substitution technique, reduce the recurrence to a closed form, then give…arrow_forward
- Please help with this code and make sure to create in c++. Make sure it is 100% correct and works on Visual studios. Thxs. Write the code as described in the questions below. Submit your code electronically in the box at the bottom. You may only use Java, C# or C++. The economy is defined using a 2-dimensional data structure: A “payday” will be considered to be any region of $ values where all cells in the region are connected either vertically or horizontally. For example, the following illustrates a matrix with 5 rows and 8 columns containing three objects. $’s and P are used in the diagram to represent the two types of values: PPPP$PPPPPP$$PPPPP$$PPP$PP$PPPP$P$PPP$$$ a) Write a program to read in the data from the text file and store it into a data structure. Your program should output it to the screen after it has read in the file. (If you can’t get this to work hard-code the above example and continue to part b). Here is a sample text file (containing the above data):…arrow_forwardthis is related to a c++ flowchart by the way also here is a hint or other things you need to do hint 1:You will need to use at least one loop of some sort. hint 2:Since you don't know how a computer could tell if you have successfully deciphered the text, you will need to ask a human (a.k.a. a user) for their input on whether the resulting text makes sense. also you need to use google docs for this work and can you please explain each post very well thank you i would really appreciate itarrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY
Computer Networking: A Top-Down Approach (7th Edi...
Computer Engineering
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:PEARSON
Computer Organization and Design MIPS Edition, Fi...
Computer Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:9781337569330
Author:Jill West, Tamara Dean, Jean Andrews
Publisher:Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education
Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY