Write a program that lets the user enter the loan amount and loan period in number of years and displays the monthly and total payments for each interest rate starting from 5% to 8%, with an increment of
Q: ?you finished your homework have O has is
A: Have is used with the pronouns I, you, we, and they, while has is used with he, she, and it
Q: D1,D2,trials) that takes as input the number of sides on die 1 (D1) and die2 (D2) and the number of ...
A: CODE import randomfrom collections import Counterimport numpy as np def diceSim(D1,D2,trials): ""...
Q: Create a file, called allfiles, which contains a list of all the files in your starting directory (i...
A: Given :- Exercise 2.2: Create a file, called allfiles, which contains a list of all the files in you...
Q: 1. Move the data from register B to the accumulator. Add the data that is in register D to the conte...
A: 1. Move the data from register B to the accumulator. Add the data that is in register D to the conte...
Q: What are the main advantages of MapReduce over classic parallel programming techniques like multithr...
A: MapReduce is a programming paradigm that enables massive scalability across hundreds or thousands of...
Q: Write a program that reads in a sequence of characters entered by the user and terminated by a perio...
A: The Answer is
Q: 3 Question 3 Write C code for a 3 processes A, B and C that communicate through shared memory segmen...
A: The following is the program written in c to process A, B & C processes using Fork Call .
Q: Create a C++ address book using the following information: The address should contain a Person cla...
A: I have answer this question in step 2.
Q: Describe the internet's significance in the realm of information and communication technology.
A: Introduction: The internet has evolved into a critical component of our daily lives. Our lives are ...
Q: The Bell-Lapadula and Biba models must be defined.
A: Introduction: The Bell-Lapadula and Biba models must be defined. A subject with a certain level of i...
Q: Given 10,000 URL visit records, design a hashing-based method so that we can quickly retrieve URLS t...
A: Here we have to implement it in a hashing-based model. So let me explain Hashing at first. Hashing-T...
Q: Data is transferred from a source to a destination via a network. The data cannot be sent until it h...
A: Networks have made information transmission and sharing easier. The Internet enables us to share inf...
Q: QUESTION 14 When getting ready to make changes to a file on the Depot, which action should you use? ...
A: Solution:-
Q: Create a Java class that displays that accepts a number and displays the left most digit The number...
A: import java.util.*;public class Main{ public static int lastDigits(int num){ // keep looping till o...
Q: ction that would return single digit sum of a number. Ex. Given: 195 the function returns 6 -> ...
A: Below function that would return single digit sum of a number.
Q: : How to link a Spring Boot application to an AWS S3 web service
A: Introduction: Create a new Spring Boot application with h2, spring boot dev tools, spring data jpa, ...
Q: You want to make the best use of your network addresses as the network administrator for a growing I...
A: Introduction You want to make the best use of your network addresses as the network administrator fo...
Q: List the truth table of the function F = abc + a’c’.
A: Given F = abc + a'c' The number of variables in F are 3 For 3 variables, there are 8 possible truth ...
Q: In order to transfer traffic from one VLAN to another, what steps must be taken?
A: Introduction: VLANs enable network administrators to automatically limit access to a set of users by...
Q: Suppose we are using gradient descent to learn linear regression. The hypothesis is ho(x) = 00 + 01x...
A: h(x) = 1 + 2x at x = 10 h(10) = 21. alpha = 0.5
Q: takes as input a string (array of characters) and, returns as output the mirror view of the string. ...
A: Find Your Answer Below
Q: 4. List sensory techniques in virtual reality, explain any one by your own imagination 5. Describe a...
A: List sensory techniques in virtual reality, explain any one by your own imagination? Virtual reality...
Q: The student is preparing for the exam Controller of examinations has prepared a slot-based timetable...
A: SInce nothing is mentioned about number of slots, I am assuming there are 26 slots named from A-Z Fr...
Q: What are some instances where you may anticipate machine intelligence to exceed human intellect?
A: Introduction: In comparison to humans, computers have a variety of benefits. They have more memory, ...
Q: What single MIPS instruction (replacing the comment in line 3) will complete the following code bloc...
A:
Q: C++ program 5 Requirements Each menu option should be a separate function. Your program should use 2...
A: Below is the complete solution with explanation in detail in C++ Programming Language.
Q: Q-2. What is actput of this logic gatu? A F=?
A:
Q: What is the process of implementing multifactor authentication? What role does it play in the preven...
A: Introduction: A physical token or card is a second element in the multi-factor authentication proces...
Q: Write the appropriate SQL queries a) List the sailor who made the highest number of reservations for...
A: a) select DISTINCT b.name ,s.name,COUNT(*) from boat b JOIN reservation r on b.id =r.bid ...
Q: write an if command to choose between apple or orange c language by using replit
A: Code: #include <stdio.h> int main() { int a; printf("Press 1 to choose apple\n"); pri...
Q: In a C# Console Ap Write a method that takes an int and a double and returns their product.
A: The requested C# program by using a method is provided in next step.
Q: Discuss the benefits and drawbacks of dynamic linking.
A: DYNAMIC LINKING: dynamic linking is a process to load the external files or libraries into our progr...
Q: Write a program that prompts the user to enter the number of students and each student’s name and sc...
A: Given :- Write a program that prompts the user to enter the number of students and each student’s na...
Q: Computer Science Information on the processing of processes and threads in the operating system "VM ...
A: Actually, OS is a system software that manages computer hardware and software.
Q: What are IP addresses that begin with 10, 172.16, or 192.168 known as?
A: This question explains about IP addresses that begin with 10, 172.16, or 192.168 known as?
Q: Design an algorithm and write its C++ code. Keep your code commented and readable whenever required....
A: PROGRAM INTRODUCTION: Include the required header files. Start the definition of main function. Dec...
Q: A foreign key must not be null under what circumstances?]
A: In other words, a foreign key is utilized to uniquely identify a row in another table.
Q: PP 8.3 Write a program that creates a histogram that allows you to visually inspect the frequency di...
A: Answer : CODE: import java.io.*; class Scratch { //main method public static void main(String...
Q: What are the advantages and disadvantages of e-commerce?
A: Please find the detailed answer in the following steps. Note: As per the Bartleby guideline I can o...
Q: What form of IP address is issued to a machine set for dynamic IP addressing when it joins to the ne...
A: Introduction of DHCP:
Q: Convert 2AC base 16 to base 10. Please break this down in steps
A: Before going to the Answer, You should know the value of A and C. Value ...
Q: The notion of reusability is used in any software corporation to improve performance and lower overa...
A: The notion of reusability is used in any software corporation to improve performance and lower overa...
Q: t process is sup
A: Traditional system development The process of designing and developing simple software is known as ...
Q: describe three ways that a payer can leverage information technology
A: Given:
Q: Two channels one with a bit rate of 190Kbps and another with a bit rate of 180 Kbps are to be mu
A: The answer is
Q: what is aet put gf this logic gati?
A: 1. First write output of first gate i.e. first gate is AND gate hence Y1 = A.B 2. Write out...
Q: With the progression of knowledge on radio-active materials, we now know that the decay of activity ...
A: # Python program def calculateB(x, y, n): sx = sum(x) sy = sum(y) sxsy = 0 sx2 = 0 for i in ra...
Q: Q1. what is adt put f this logic gatiz A F=?
A:
Q: Step 1: Write a function that takes as input the following parameters: 1. The gender of the child 2....
A: Note -As per the Bartleby process we have to attempt only one question. Program Explanation- Func...
Q: p-flops and a PLA implement a 3-bit Gray code up/down counter. The single bit input X = 0 de...
A: Answer:-
Solve the Problem with C++
(Financial application: compare loans with various interest rates)
Write a program that lets the user enter the loan amount and loan period in number of years and displays the monthly and total payments for each interest rate starting from 5% to 8%, with an increment of 1/8.
Sample Run
Loan Amount: 10000
Number of Years: 5
Interest Rate Monthly Payment Total Payment
5.000% 188.71 11322.74
5.125% 189.28 11357.13
5.250% 189.85 11391.59
...
7.875% 202.17 12129.97
8.000% 202.76 12165.83
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- In C++ using endl; Write a program that can be used to calculate the federal tax. The tax is calculated as follows: For single people, the standard exemption is $4,000; for married people, the standard exemption is $7,000. A person can also put up to 6% of his or her gross income in a pension plan. The tax rates are as follows: If the taxable income is: Between $0 and $15,000, the tax rate is 15%. Between $15,001 and $40,000, the tax is $2,250 plus 25% of the taxable income over $15,000. Over $40,000, the tax is $8,460 plus 35% of the taxable income over $40,000. Prompt the user to enter the following information: Marital status If the marital status is “married,” ask for the number of children under the age of 14 Gross salary (If the marital status is “married” and both spouses have income, enter the combined salary.) Percentage of gross income contributed to a pension fund Your program must consist of at least the following functions: Function getData: This function asks the user…Write a program in C++ that should calculate the insurnace for a house. use questions below to write your programm. what is your first? what last name? how many people are living in the houes? how much did you bought the house for? how many bedrom does it have? what is the lenght in squre feet? - use Loop so everyone can repeat the programm. use function like "viod" and any other function. and finally use this formula: X/150*y/*50 x is the total price of the house y is the number of bedrooms s is the lenght in square feet.In C++ just do the problems in simple, not complicated code. Even if a problem does not directly tell you to use a function, you should aim to do so regardless. 1. Create a function that takes in a number n and outputs all the odd numbers from 1 to n. 2. Create a function that takes in a int number and outputs each of the digits backwards 3. Create a function that counts backwards from 100 to 1. 4. If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.Find the sum of all the multiples of 3 or 5 below 1000. Use a function to do this. Return the total to main.
- In C++: Examine the code segment. What will be printed? If there are any errors indicate the nature of each error. int a[7] = {31, 12, 32, 14, 25, 16, 27}; int *ptr; ptr = & a[2]; for ( i=1; i<=5; i=i+2) cout << *(ptr +i); cout << a[0] << *ptr << *ptr - 2 << *(ptr -1)) << endl;In C++, write a program that calculates and prints a monthly paycheck for an employee. The net pay is calculated after taking the following deductions from the employee's gross salary: Federal Income Tax: 17.5% State Tax: 9.1% Social Security Tax: 6.2% Medicare Tax: 1.45% Retirement Plan: 9.29% Health Insurance: $51.48 Life Insurance: $3.71 Your program will prompt the user to input the employee ID, the employee name, and the employee's monthly gross salary. The program will calculate the deductions listed above, along with the percentage of take home pay (defined as the net pay divided by the gross salary). After calculating each deduction and percentage, the output will be printed to the screen (see example output below). Requirements All decimal numbers must be formatted to 2 decimal places. Ask for the employee's ID first, then full name (can include spaces), then the salary. The prompt to enter the salary must include the employee name. The employee ID MUST be…Write code in C++ There are two scientists working on set of numbers. The first person is looking for two numbersspecifically. The second person is responsible for entering all data. Help the first person to know ifthe numbers set entered by the second person includes the two numbers he is looking for!InputThe first person shall enter two numbers. The second person enters set of numbers of any size. S/hecan enter any range of numbers (up to you how to read those numbers).OutputMessage showing if both numbers entered by the first person have been found or not. If one of thenumbers was found show which one has been found. Hint: you may need to use flag-controlled loop.
- Q7/ Write a program in C++ that asks the user to enter two numbers and prints the sum, product and difference of the two numbers by using function (Where there are three functions, the first for addition, the second for multiplication, and the third for subtraction).Q13/ Write a program in c++ that asks the user to input two numbers. If the first number entered is greater than the second number, the program should print the message: "The first number is greater." Otherwise, it should print the message: "The first number is smaller." .By using functionsin c++ ; Given a positive integer nDigits received from the user, list all binary numbers you can represent withthe given digits, along with their decimal representation. Format your output as it follows:binary_number -> decimal_numberMake sure the value is nDigits in the range [1, 10].Remember to comment the code such that it is easy for other developers to understand it.
- Write a C99 function that includes the following sequence of statements:x = 21;int x;x = 42;Run the program and explain the results. Rewrite the same code in C++and Java and compare the results.In C++ Write a program that can be used to calculate the federal tax. The tax is calculated as follows: For single people, the standard exemption is $4,000; for married people, the standard exemption is $7,000. A person can also put up to 6% of his or her gross income in a pension plan. The tax rates are as follows: If the taxable income is: Between $0 and $15,000, the tax rate is 15%.Between $15,001 and $40,000, the tax is $2,250 plus 25% of the taxable income over $15,000.Over $40,000, the tax is $8,460 plus 35% of the taxable income over $40,000. Prompt the user to enter the following information:Marital statusIf the marital status is “married,” ask for the number of children under the age of 14Gross salary (If the marital status is “married” and both spouses have income, enter the combined salary.)Percentage of gross income contributed to a pension fund Your program must consist of at least the following functions:Function getData: This function asks the user to enter the…Here's my Instructions for my C++ program: Write a program to implement the algorithm that you designed in Exercise 19 of Chapter 1.Your program should allow the user to buy as many items as the user desires. Instructions for Exercise 19 of Chapter 1 have been posted below for your convenience.Exercise 19 Jason typically uses the Internet to buy various items. If the total cost of the items ordered, at one time, is $200 or more, then the shipping and handling is free; otherwise, the shipping and handling is $10 per item. Design an algorithm that prompts Jason to enter the number of items ordered and the price of each item. The algorithm then outputs the total shipping and handling fee, and the billing amount. Your algorithm must use a loop (repetition structure) to get the price of each item. (For simplicity, you may assume that Jason orders no more than five items at a time.) An example of the program is shown below: Enter the number of items ordered: 3 Enter the price of item no. 1:…