Write a program that will compute for depreciation. The straight line formula for computing depreciation is given by the following: D = (F – S)/N Where D = depreciation F = Face Value S = Salvage Value N = Number of years
Q: Assume that: P(x) means: x is a person; T(y) means: y is a time F(x, y) means: you can fool x at…
A: Conversion of predicate to english
Q: Write a program for solving the system Ax=b
A: Here I've written a simple Matlab Code to find the value of x in (Ax = b) using Gauss-Jacobi Method.…
Q: [6] Your Problem: Write a program that finds the following for: y =x^2 + 2*x - 5 m(tan) = f'(x) at…
A: NOTE: Since programming is not mentioned. Therefore answering questions in Python language. In this…
Q: Suppose we can buy a chocolate bar from the vending machine for $1 each.Inside every chocolate bar…
A: Solution: Note : Since it is not mentioned what has to be calculated and which programming language…
Q: Write an algorithm that prompts the user for the radius, in inches, and price of a pizza, and then…
A: Algorithm to prompt user for radius and pizza price, compute and output pizza's cost per square…
Q: Write a program that takes five students' quizzes in a course. Consider each student has given ten…
A: Actually, program is an executable software that runs on a computer.
Q: Write a program that will compute a student's final equivalent grade in Mathematical Computing I.
A: Required: create a program that will solve for a final grade Required code with comments for…
Q: Write a program that finds summation of all factors of a given number x. For example, the factors of…
A: It is defined as programs can be asked from control statements, array, string, oops etc. Java basic…
Q: A student is tracing the following algorithm. The function INT gives the integer part of any number,…
A: b). The purpose of this algorithm is to find the remainder between the value of A and B and store…
Q: Write a computer program to compute the final value of A ,B AND F with keep the same arrangement.…
A: The answer is given below :
Q: Write a program that reads from the user the values of x and h to ent the equation below. -10x +2h,…
A: Here, Code instruction is given.
Q: Write a program to read X and print Sin X if X>0, square root X f X<0 and absolute X if X/2 is…
A: PROGRAM CODE: #include <iostream>using namespace std;#include <conio.h>#include…
Q: Give an example of program that calculate the following sum: n k ΣΣυ į=0 j=0
A: The given problem has given a notation and the requirement is to construct the equivalent program…
Q: Write a program that will accept the following details: a. Name b. Course c. Year d. Grades at least…
A: Following program is written in C++ langiage. Step2 has the code snippet with detailed explanation…
Q: I=I+1 C=B-A D= C**2+1.0E-2 I=3 F=(1.0+D)**(I-1) A=A+B+F
A: public class Calculate { public static void main(String args[]) { double a = 2.5;int i =…
Q: Suppose you went to a coffee shop and you want to drink some coffee. You decided to drink n cup of…
A:
Q: Write a Program that solves the following series and displays the result.…
A: //note this my c++ program #include<iostream>//header file using namespace std;int prime(int…
Q: Write a program that will compute for the saleman's commission based from his total sales for the…
A: Program code: #include <stdio.h> int main(){ long int n,a; printf("\nEnter the Total…
Q: Write a program that simulates flipping a coin to make decisions. The input is how many decisions…
A: The solution for he above given question is given below:
Q: Write a program that simulates throwing a die n times
A: Program : Dice Simulation Algorithm : 1. Input from user that how many times he/she wants to throw…
Q: A standard quadratic equation looks like this: ax? + bx + c = 0. To solve for roots , we use the…
A: #include <stdio.h>#include <math.h> void findRoot(int a, int b, int c){ float…
Q: Your task is to write a computer program that computes an approximation for e using the formula…
A:
Q: Write a simple program that takes in a numerator and denominator and then computes the GCD for that…
A: import java.util.Scanner;public class Main{ public static void main(String[] args) { Scanner…
Q: Write a program that does the following: Let f(x) = In(x) and carry 9 decimal places to find: a) Use…
A: Answer: using System;using System.Collections.Generic;using System.Linq;using System.Text;using…
Q: According to a study, the approximate level of intelligence of a person can be calculated using the…
A:
Q: Let's consider a variable NU has value 12, what are the different methods to reduce the value by 1…
A: Let's consider a variable NU has a value 12, what are the different methods to reduce the value by 1…
Q: Write a program that finds summation of all factors of a given number x. For example, the factors of…
A:
Q: Offer a program that knows how to find the solution of the jackpot price game in a way effective.…
A: Use nested while loop where inner loop is for validation and outer loop is to iterate till computer…
Q: Write a program in Python that will simultaneously flip three fair coins, nickel, penny, and dime…
A: Start Take the trails of three members Find the possibilities Print Stop
Q: Write a program that gives a discount of 100 pesos to a customer if the shirt bought is XL and the…
A: Take input from user for size and prize Than using conditional if statements check the prize and…
Q: Write a Python program for ....Mr Ramkumar has divided his property into 3 parts in the ratio of…
A: Python program to divide the property into 3 parts. The property division ratio is 13:12:11 The…
Q: if total sales is Commission is above 0 but below 10,000 2% of total…
A: Note: Since you have not provided the language to write the code so I am using java language to…
Q: suppose someone pays 100.00 during the first year and that yearly payment keeps on doubling. Display…
A: Summary: In this question, we have been given the yearly payment of a person and his payment doubles…
Q: Write a program that reads the price and the production date(month and year of an item) then prints…
A: % read price and production price = input('Enter price'); production_month = input('Enter production…
Q: Write a computer program to read x, y and z, and then compute Taccording to the following equations:…
A: As no programming language is mentioned, it is solved using basic C++
Q: Write a program that computes the following summation series using the Rational class:
A: Program approach:- Using the necessary header file. Using the standard namespace input/output.…
Q: Write a program that computes the following equation: 2 + ...+ n y = 1+-+ х x2
A: Logic: Initially assign y with 1. Accept x and n value from the user. Now calculate the series y…
Q: Write a program to solve the following: x1 = 10, yl=1 x2 = xl-yl, y2=xl+yl %3D z=y2+(yl/xl) *…
A: Start Read xl,yl values Compute X2,y2. Finally find z. Print Result of z Stop
Q: Write a program that can be used to compute the average exam grade for multiple students. Each…
A: You have not specified any particular programming language so, I have provided a python code…
Q: Write a program to solve tumor growth that can be modeled by the following equation over time :0 ≤t≤…
A: According to the information given:- we have to write a program to solve tumor growth that can be…
Q: Give an example of program that calculate the following sum: n k ΣΣ i=0 j=0
A: NOTE: Since programming, langauge is not mentioned. Therefore answering the question in Python…
Q: Write a program that calculates the cost per square inch of a circular pizza,given its diameter and…
A: We need to find the per square inch of any circular pizza where diameter and price of pizza will be…
Q: Write a program that given an amount of change less than $1.00 will print out exactly how many…
A: 1) Since you have not specified programing language, I have written program in python 2) Below is…
Q: Write a program that takes in three integers and outputs the largest value. Ex: If the input is: 1 2…
A: Algorithm: Start Read 3 numbers a,b,c If a>b and a>c, print largest number is a Else if…
Q: Write program in f# only Please solve it Asap Please write the program to returns the larger value…
A: Code let max n1 n2 : int32 = // function body if(n1>n2)then n1 else n2 let result = max 40 45…
Q: Write a program that computes and prints the value of the series f(x) using the following formula:…
A: Since no programming language is mentioned, I am using python. Algorithm: Start Read X value…
Write a
D = (F – S)/N
Where D = depreciation
F = Face Value
S = Salvage Value
N = Number of years
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- When you borrow money to buy a house, a car, or for some other purposes, then you typically repay it by making periodic payments. Suppose that the loan amount is L, r is the interest rate per year, m is the number of payments in a year, and the loan is for t years. Suppose that i = (r / m) and r is in decimal. Then the periodic payment is: You can also calculate the unpaid loan balance after making certain payments. For example, the unpaid balance after making k payments is: where R is the periodic payment. (Note that if the payments are monthly, then m = 12.) Instructions Write a program that prompts the user to input the values of L, r, m, t, and k. The program then outputs the appropriate values. Your program must contain at least two functions, with appropriate parameters, to calculate the periodic payments and the unpaid balance after certain payments. Make the program menu driven and use a loop so that the user can repeat the program for different values. Example of…In Saudi Arabia, the Kudai Parking Area is a parking lot that is next to the Ajyad Police Station and close to the Power Plant. Kudai is a well-known parking space near Masjid al-Haram. After parking there, you can take a taxi to Masjid al-Haram for 10-15 Riyals for a 10-minute drive. The parking is usually heavily occupied, and the following formula is used to compute the parking lot uțilization: Percentage of Parking Lot Utilized - Number of lots occupied + Total number of lots Write a program that calculates the occupancy rate for each zone of a massive parking lot like Kudai. The program should start by asking for the number of zones in the parking lot. A loop should then iterate once for each zone. During each iteration, the loop should ask the user for the number of lots in the zone and the number of them that are occupied. After all the iterations, the program should display the number of lots the parking has, the number of them that are occupied, the number that is vacant, and…When you borrow money to buy a house, a car, or for some other purpose, you repay the loan by making periodic payments over a certain period of time. Of course, the lending company will charge interest on the loan. Every periodic payment consists of the interest on the loan and the payment toward the principal amount. To be specific, suppose that you borrow $1,000 at an interest rate of 7.2% per year and the payments are monthly. Suppose that your monthly payment is $25. Now, the interest is 7.2% per year and the payments are monthly, so the interest rate per month is 7.2/12 = 0.6%. The first months interest on $1,000 is 1000 0.006 = 6. Because the payment is $25 and the interest for the first month is $6, the payment toward the principal amount is 25 6 = 19. This means after making the first payment, the loan amount is 1,000 19 = 981. For the second payment, the interest is calculated on $981. So the interest for the second month is 981 0.006 = 5.886, that is, approximately $5.89. This implies that the payment toward the principal is 25 5.89 = 19.11 and the remaining balance after the second payment is 981 19.11 = 961.89. This process is repeated until the loan is paid. Write a program that accepts as input the loan amount, the interest rate per year, and the monthly payment. (Enter the interest rate as a percentage. For example, if the interest rate is 7.2% per year, then enter 7.2.) The program then outputs the number of months it would take to repay the loan. (Note that if the monthly payment is less than the first months interest, then after each payment, the loan amount will increase. In this case, the program must warn the borrower that the monthly payment is too low, and with this monthly payment, the loan amount could not be repaid.)
- When you use a mortgage to purchase a home, the lending institution effectively owns the home. You buy back part ownership in the home with each monthly payment. The part you have bought back is your equity in the home. If the mortgage amount is P dollars, the monthly interest rate is r as a decimal, and the term of the mortgage is t months, then your equity after k payments is E(k) = P((1 + r)k − 1) (1 + r)t − 1 dollars. In this exercise, assume that the mortgage amount is $200,000, the APR is 6% so r = .06/12 and the term of the loan is 30 years (360 months). (a) Find a formula for the equity. (b) Make a graph of the equity over 360 months, the term of the loan. (c) Does the graph show that you have half-ownership in the home halfway through the term of the mortgage? Halfway through the term of the mortgage corresponds to k1 = _______ payments. From the graph, we see that E(k1) is ________ half of the mortgage amount, so we _______ have half-ownership in the home…2) A BMI Calculator: the body mass index (BMI) is a measure used to determine whether a person is overweight or not. We can calculate BMI from the weight of the person (in pounds) and the height (in inches) of the person. The formula for calculating BMI is: BMI = (weightInPounds 703) divided by (heightInInches squared) In this problem, you will have to create a BMI calculator, i.e., a Java program, that reads the user's weight in pounds and height in inches, then calculates and displays the user's body mass index BMI. Also, display the following information from the US Department of Health) so the user can evaluate his/her BMI: BMI values: Underweight: less than 18.5 Normal: between 18.5 and 24.9 Overweight: between 25 and 29.9 Obese: 30 or greaterInterest on a credit card’s unpaid balance is calculated using the averagedaily balance. Suppose that netBalance is the balance shown in the bill, payment is the payment made, d1 is the number of days in the billing cycle, and d2 is the number of days payment is made before billing cycle. Then, the average daily balance is:averageDailyBalance = (netBalance * d1 – payment * d2) / d1If the interest rate per month is, say, 0.0152, then the interest on the unpaid balance is:interest = averageDailyBalance * 0.0152Write a program that accepts as input netBalance, payment, d1, d2, and interest rate per month. The program outputs the interest. Format your output to two decimal places.
- Suppose you want to deposit a certain amount of money into a savings account with a fixed annual interest rate. We are interested in calculating the amount needed to deposit in order to have, for instance, $5000 in the account after three years. The initial deposit amount can be obtained using the following formula:this is a problem that I have how would I go about solving it? Stadium Seating There are three seating categories for a BC softball game. Class A seats cost $15, Class B seats cost $12, and Class C seats cost $9. Write a program that asks how many tickets for each class of seats were sold. Then display the total number of tickets sold, the amount of income generated from each class and the total ticket sales. Note: Use constants for the seat prices. Sample output: WELCOME TO THE BROWARD COLLEGE STADIUM!! Please enter the number of Class A seats sold: 100 Please enter the number of Class B seats sold: 200 Please enter the number of Class C seats sold: 150 ************************************************** Total number of tickets sold: 450 Income Generated: Class A:$1500.00 Class B: $2400.00 Class C: $1350.00 Total: $5250.00Give an example of program that calculate the following sum:
- The body mass index, BMI, is a measure used to determine if a person is overweight or not. We can calculate BMI from the weight of the person (in pounds) and the height (in inches) of the person.The formula for calculating BMI is:BMI = (weightInPounds * 703) divided by (heightInInches squared)In this problem, you will develop a Java program as a BMI calculator, that reads the user’s weight in pounds and height in inches, then calculates and displays the user’s body mass index BMI. Also, display the following information {from the US Department of Health} so the user can evaluate his/her BMI:BMI values:Underweight: less than 18.5Normal: between 18.5 and 24.9Overweight: between 25 and 29.9Obese: 30 or greaterOne way to determine how healthy a person is by measuring the body fat of the person. The formulas to determine the body fat for female and male are as follows: Body fat formula for women: A1=(body weight*0.732)+8.987 A2=wrist measurement(at fullest point)/3.14053 A3=waist measurement(at navel)*0.15753 A4=hip measurement(at fullest point)*0.24953 A5=forearm measurement(at fullest point)*0.434 B=A1+A2-A3-A4+A5 Body fat=body weight-BThe user must be able to enter the information for a number of bookings from the keyboard. Ask whether a booking must be made (Y or N). If a booking must be made, a random 3 digit flight number must be generated. The user must be asked to enter the type of seat, the price per seat and the number of seats to book. Example of input: