5. In main(), using the monthly payment that you just calculated, call a function to create an amortization schedule for the loan using these specifications: a. Create a function called Amortize. It should receive as parameters: currentPeriod, totalPeriods, paymentAmount, monthlyInterestRate, currentBalance. b. The function MUST be recursive to receive credit for producing the Amortization Schedule. c. The function should print out the Amortization Schedule to the screen using good formatting (including spelling and grammar where appropriate)
Q: The number of parameters provided in function call can be different as defined in the function…
A: The number of parameters provided in function call must be same as function definition. so, given…
Q: Question 2: Write a function called number_matrix(r,c) that takes two parameters r and c and PRINTS…
A: In given problem it has been asked to write a function number_matrix(r,c) that takes two parameter r…
Q: create a function randChar() in C++, the function should return a random char value just like the…
A: C++: It is a general purpose, high level and compiler based programming language. It is designed and…
Q: Write a function potentialcontacts (person_a, person_b) that identifies all of the potential…
A: Program Approach: In this python code three methods "add_time, convert_to_minutes, and…
Q: Exercise 9-6: Pass by Reference and Pass by Address In this exercise, you use what you have…
A: a. double price 22.95, increase .10; void changePrice(doubl e&, double); function call and the…
Q: Define a function game_result(move1, move2) that takes two string parameters. If move1 wins return…
A: Below is the code in python with sample output:
Q: When arrays are supplied to functions as parameters: A They are never passed by reference. B.…
A: An array is a data structure consisting of a collection of elements each identified by at least one…
Q: Write a function NewCalculateGrade that takes a double score and uses reference parameter to return…
A: Reference Parameter: - These reference parameters are primarily used for sending the value back.…
Q: Consider the definition of the function main. int main() { double rate, hours, amount; . . . } Each…
A: Importing header files. Definition of function getHoursRate Inside this function accept no of hours…
Q: 9. The following function is supposed to calculate basexP, where base and exp are positive integers.…
A: #include <iostream> using namespace std; void power(int& base, int& exp, int&…
Q: Given the following comments and function declarations, write matching function definitions.…
A: Main concept used here. Pointer:- A variable which points to address. To access pointer variable ,…
Q: To convert between Celsius and Fahrenheit, the following formula is used, where C = Celsius…
A: In this program, you need to write function called toCelsius() which will convert Fahrenheit…
Q: (Use Python) Use the Design Recipe to define a function called black_jack which consumes to 2 int…
A: Answer Python Code : def black_jack(a, b): if a>21 and b>21: return 0 if a>21:…
Q: Language C++ Write a function to find the norm of a matrix. The norm is defined as the square root…
A: The Norm of a matrix is defined as the square root of a sum of the squares of all elements in the…
Q: You are creating a function that manipulates a number. The function has the following requirements:…
A: Please find the answer below :
Q: 2. Write a function void decrement (int* a) to decrease the value of the argument in the main…
A: As per our guidelines we are allowed to answer 1 question at a time. If you want a answer of some…
Q: Write a python program that implements at least 3 functions and does the following: Create a global…
A: EXPLANATION: - def update_global_variable(): This function does modifies the global variable…
Q: Pick the incorrect statement about inline functions in C++? a) They reduce function call overheads…
A: Question. Pick the incorrect statement about inline functions in C++? a) They reduce function call…
Q: Consider the following function. What is the purpose of the function f? Please do explain and…
A:
Q: Question 1) You are writing a program that determines the hypotenuse of a right triangle. Through…
A: /*C program to find Hypotenuse and ParkingCharge based on user inputs*/#include…
Q: 6. Write a program to do the following:- 1) Define the function BasicAllowanceCalc that takes the…
A: Given:- a function named BasicAllowanceCalc() that take argument salary in float…
Q: Define a function ComputeGasVolume that returns the volume of a gas given parameters pressure,…
A: Inside main function, read pressure, temperature and number of moles as a user input. Call…
Q: Assume that we have a function "double getDistance(struct point p1, struct point p2)" that…
A: The formula for Euclidean distance between two points P(x1,y1), Q(x2,y2) is (x2-x1)2 + (y2-y1)2…
Q: Define a function: Void Insert(char str1[], char str2[], int pos) to insert str2 to str1 from pos.…
A: Code: #include <stdio.h>#include <string.h>//Defining the required functionvoid…
Q: Exercise 4 (.../45) Use the function design recipe from Chapter 3 of Practical Programming to…
A: Input : List of points with x and y coordinate values. Output : Sum of the y coordinate of all…
Q: Write a function dispense_bills(). The function determines the minimum number of bills to dispense…
A: C program that demonstrates the function, dispense_bills . The program prompts the user to enter the…
Q: Consider the following statements: Class objects in C++ can be passed to a function, but cannot be…
A: I have given an answer in step 2.
Q: a. You can use variable as a global identifier, but you cannot use a constant as global identifiers…
A: Actually, variable is a the value which is stored in particular location.
Q: 2. Create a function called GET_ANNUAL_COMP to return the annual salary computed from an employee's…
A: Solution Q. a) 1. SQL code- CREATE OR REPLACE FUNCTION GET_ANNUAL_COMP(p_sal IN…
Q: 13. Let the function fun be defined as int fun (int*k) { *k +- 4; return 3 * (*k) - 1; Suppose fun…
A: According to the Question below the Solution:
Q: 11. Give definition for overloading functions, provide some examples. 12. A program contains the…
A: Solution
Q: Exercise 3.5 Write a function reprRealImag (x) that will represent the complex sequence x as two…
A: Algorithm: 1. Create a list of complex numbers 2. Create a list of the real and imaginary parts of…
Q: Create a function EnergyConversion.m which takes two input arguments, E and and returns one output…
A: function C = EnergyConversion(E, units)% Function to convert the given energy values of some unit…
Q: 1. Give 2 examples of numeric functions and write general purpose of them to use.
A: Just as is the case for other programming languages, such as C++ or S-Plus, a SAS function is a…
Q: Q2 / I write a program in C ++ to calculate the value of the following relationship, using the…
A: Algorithm: 1. Start 2. Read k value 3. Write factorial function to calculate factorial of the number…
Q: Write an anonymous function which square its argument.
A: As per our company guideline we are suppose to answer only one question. Kindly repost another…
Q: An awake politician has made it a habit to make excuses by blaming other countries whenever…
A: As the programming language is not mentioned, but according to the sample code, it can be in c or…
Q: false true int fx(char &x) is a function with parameter passed by value int fx(char x) is a function…
A: Below is the answer:
Q: 2. Given the function prototypes, what local variables will need to be declared and in which…
A: ANSWER: Function Prototype: 1) It tells the return sort of the information that the function will…
Q: 4- The function sum_n_avg computes the sum and the average of three input arguments and relays its…
A: Given function is double one, two, three, sum_of_3, avg_of_3; printf("Enter three numbers> ");…
Q: Write a function that updates the year of a student, i.e. if year is “Year1”, then update to…
A: Code: #include <iostream>#include<cstring>using namespace std;//require function…
Q: 3. You are expected to write a recursive function called powy(base, exponent) that, when called,…
A: EXPLANATION: - The function powy(int base, int exponent) is defined with two parameters of integer…
Q: Please finish function between. Function between have two parameter a and b which are both the…
A: EDITABLE CODE: #include <bits/stdc++.h>using namespace std;int between(int *pointer1,int…
Q: In this excersie the main function calls Series1 and/or Series2 functions and you are required to…
A: Code is given below #include <iostream> using namespace std; int fact(int n)…
Q: Consider the following function call: min(x, y) What is the function name and what is the first…
A: Please find the answer below :
Q: 2. Create a function called GET_ANNUAL_COMP to return the annual salary computed from an employee's…
A: Given:
Q: 11Given the code segment below, what should be the data type of a in the function prototype of…
A: Here the function call is func(aData) ; Here the passed parameter is name of array whose datatype is…
Q: Consider the function definition: void GetNums(int howMany, float& alpha, float& beta)…
A: When GetNums function is calledWhen the GetNums function is called, then at first the run time…
I need help creating a function that creates an amoritization schedule for a loan.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images
- 6 Cell Phone PackagesCell Solutions, a cell phone provider, sells the following packages:300 minutes per month: $45.00 per month800 minutes per month: $65.00 per month1500 minutes per month: $99.00 per monthThe provider sells the following phones (a 6 percent sales tax applies to the sale of a phone):Model 100: $29.95Model 110: $49.95Model 200: $99.95Customers may also select the following options:Voice mail: $5.00 per monthText messaging: $10.00 per monthWrite an application that displays a menu system. The menu system should allow the userto select one package, one phone, and any of the options desired. As the user selects itemsfrom the menu, the application should show the prices of the items selected.Saira owns a small business and she frequently makes transactions. Sometimes she makes payments and other times payments are credited in her account. One of her customer Tania purchased a product and credited payment while another payment by Saira was in progress. Now the sequence of transaction is as follows:1. Tania’s account read amount in saira’s account2. Saira’s account read amount in saira’s account3. Tania added Rs. 500/- in original amount (that was lets suppose Rs. 60,000/ 4. Saira’s account subtracted Rs. 2000/- that she debited in someone else’s account form the original amount (that was Rs. 60,000) 5. Tania’s account committed the transaction 6. Saira’s account committed the transaction Draw the above-mentioned sequence in form of a table and see if there is a problem. What this problem is called and how can we avoid such kind of problem? Propose some solutions (at least two) and then explain which one is better and why?account.json "1000001": { "accountType": "Chequing", "accountBalance": 0 }, "1000002": { "accountType": "Savings", "accountBalance": 0 }, "1000011": { "accountType": "Chequing", "accountBalance": 0 }, "1000022": { "accountType": "Savings", "accountBalance": 0 }, "1000031": { "accountType": "Chequing", "accountBalance": 0 }, "1000032": { "accountType": "Savings", "accountBalance": 0 }, "1000051": { "accountType": "Chequing", "accountBalance": 13.699999999999989 }, "1000052": { "accountType": "Savings", "accountBalance": 0 }, "1000071": { "accountType": "Chequing", "accountBalance": 0 }, "1000081": { "accountType": "Savings", "accountBalance": 0 }, "1000091": { "accountType": "Chequing", "accountBalance": 0 }, "lastID": "1000091"} ------- var express =…
- please fix the following , when user log in with debit# and pin and choose 1 for deposit and you choose negative amount , it accept it, i need it to only accpet positive amount import tkinter as tkfrom datetime import datetime, timedeltaclass ATM: def __init__(self): self.accounts = {} def create_account(self): # Get user inputs first_name = first_name_entry.get() last_name = last_name_entry.get() dob = dob_entry.get() address = address_entry.get() debit_card = debit_card_entry.get() while len(debit_card) != 16 or not debit_card.isdigit(): debit_card = input("Invalid debit card number. Enter debit card number (16 digits): ") pin = pin_entry.get() while len(pin) != 4 or not pin.isdigit(): pin = input("Invalid pin. Enter 4-digit pin: ") # Create account and update GUI self.accounts[debit_card] = {"first_name": first_name, "last_name": last_name, "dob": dob,…A school has 100 lockers and 100 students. All lockers are closed on the first day of school. As the students enter, the first student, denoted as S1, opens every locker. Then the second student, S2, begins with the second locker, denoted as L2, and closes every other locker. Student S3 begins with the third locker and changes every third locker (closes it if it was open and opens it if it was closed). Student S4 begins with locker L4 and changes every fourth locker. Student S5 starts with L5 and changes every fifth locker, and so on, until student S100 changes L100. After all the students have passed through the building and changed the lockers, which lockers are open? Write a program to find your answer and display all open locker numbers separated by exactly one space. (Hint: Use an array of 100 Boolean elements, each of which indicates whether a locker is open (true) or closed (false). Initially, all lockers are closed.)Public Key Authority is one such instance. The Public Key Authority must prepare a request for B's public key before delivering a message to A (E(PRauth[PUB || Request || Time1]). It is debated if the letter A should be used to decipher the message.
- school has 100 lockers and 100 students. All lockers areclosed on the first day of school. As the students enter, the first student, denotedas S1, opens every locker. Then the second student, S2, begins with the secondlocker, denoted as L2, and closes every other locker. Student S3 begins with thethird locker and changes every third locker (closes it if it was open and opens it ifit was closed). Student S4 begins with locker L4 and changes every fourth locker.Student S5 starts with L5 and changes every fifth locker, and so on, until studentS100 changes L100.After all the students have passed through the building and changed the lockers,which lockers are open? Write a program to find your answer and display all openlocker numbers separated by exactly one space.calculate_new_balance Given a starting balance (a number), and a list of transaction tuples, calculate the final balance for an account. Transaction tuples are of the shape ("description", amount, "withdrawal") , or ("description", amount, "deposit"). The last entry in the tuple will be either "withdrawal" or "deposit". Every withdrawal decreases the balance of the account by the specified amount, and every deposit increases the balance. The return value is the new account balance, as a number. (which could be negative) Sample calls should look like: >>> calculate_new_balance(100, [("payday", 20, "deposit"), ("new shoes", 50, "withdrawal"), ("illicit winnings", 200, "deposit")])270>>> calculate_new_balance(100, [])100voting application app c# it would ask if the person would like to login as a admin or voter if admin 1. Add/Delete Candidate and automatically generate candidate ID. 2. Add/Delete Voters and automatically generate voter ID. 3. ask for an user and password if voter 1. it would ask them to login and register 2. Allow voters to vote using registered ID and an ID which has not voted yet. 3. When voter ID is deleted, its vote will also be deleted.
- CSC 385 –Assignment 4 –Faster SortingAlgorithms .This problem is taken from a hackerrank programming challenge. The problem is tagged as having medium difficulty in hacker rank:(https://www.hackerrank.com/challenges/fraudulent-activity-notifications) Problem Description—Fraud DetectionHackerLand National Bank has a simple policy for warning clients about possiblefraudulent account activity. If the amount spent by a client on a particular day is greaterthan or equal to 2 ×the client's medianspending for the last d days, they send the client a notification about potential fraud. The bank doesn't send the client any notificationsuntil they have at least d prior days of transaction data.Given the value of d and a client's total daily expenditures for a period of n days (where n>d) write amethod which returns the number of times the client will receive a notification over all days.Note: Your algorithm time efficiency should not exceed O(nd) where n is the total number of daily…Assume an Oracle database administrator has connected to a pluggable database. What will be the statements the DBA use to create a password verification function emp_pass_verify to enforce a password to conform to all the following rules:• contains at least 8 characters• contains at least one letter, at least one digit, and at least one specialcharacter (that is not a letter or a digit)• starts with an upper-case letter• does not contain the username as a substringImplement the DBS Share Price Index System in Python as per Figure 2 below which allows users toadd, delete, update and lookup Share Prices. The System should store the Company Name and SharePrice. Your program should not allow users to add the same company more than once. On adding,deleting, updating or looking up a Share Price, your program should let the user know if theoperation was successful or not. On looking up a Share Price return the Company Name and SharePrice of the company; if the company is not found give the user the option to add the details theyare looking up. The user can perform multiple actions; they can add a new entry and subsequentlydelete an entry without having to stop and start the program until they decide to quit