The terms in the formula are as follows: • P is the present value, or the amount that you need to deposit today. •Fis the future value that you want in the account. (In this case, F is $10,000.) r is the annual interest rate. •n is the number of years that you plan to let the money sit in the account. Write a method named presentValue that performs this calculation. The method should accept the future value, annual interest rate, and number of years as arguments. It should return the present value, which is the amount that you need to deposit today. Demonstrate the method in a program that lets the user experiment with different values for the formula's terms.
Q: structions. subtractBigInteger() – When an integer has more than a certain number of digits, it is…
A: the code is an given below :
Q: Need help. Thanks in advance. Herbert’s Home Repair estimates each job cost as the cost of…
A: please upvote for my efforts ! answer: code package com.company;import java.util.Scanner;public…
Q: Write a method called DisplayHorizontalStars(int numberOfStars). This method will output the number…
A: Coded using C#.
Q: Herbert’s Home Repair estimates each job cost as the cost of materials plus $35 per hour while on…
A: import java.uti.Scanner; public class JobPricing{ public static void main(String[] args) {…
Q: write an application that calculates and display the weekly salary for an employee.the main()…
A: logic:- calculate overtime only when overtime hour is not zero otherwise display normal result by…
Q: Celsius Temperature Table - prog 6 pg 291 * formula for fahrenheit to celsius is c = 5/9(f-32) *…
A: I give the code in java along with output and code screenshot
Q: Declare an integer variable named "variables with an initial value of 10. // write a method named…
A: Please find the answer below :
Q: c# uppose there is a method called Current Deposit is your project class. The method header is as…
A: we have to write a write one statement for the above prblem in which we will declare a variable call…
Q: Question 1) Write a method that takes continuously a positive number from the user and then returns…
A: Here, Code instruction is given.
Q: Write a program that asks the user to enter a distance in meters. The program will then present the…
A: Actually, given information: the following menu of selections: 1. Convert to kilometers 2. Convert…
Q: Create a method that transforms a time given in seconds to a String that shows the hours, minutes,…
A: logic:- read totalSeconds p1=totalSeconds%60 (gives seconds) p2=totalSeconds/60 p3=p2%60…
Q: Financial Application:• Write a program that computes future investment value at a given interest…
A: Program plan:Import necessary packages.Define a class named “Investment”.Define a method named…
Q: If the strMsg variable contains the string "Happy New Year", what will the IndexOf method return in…
A: IndexOf(): The method "IndexOf()" returns the zero-based index of the specified string’s first…
Q: QUESTION 2 A prime number is a number that is evenly divisible only by itself and 1. For example,…
A: A prime number is a number that is evenly divisible only by itself and 1. For example, the number 5…
Q: a program to calculate Item's sale price 1) Ask user to enter the name of item e.g t-shirt 2) Ask…
A: code import java.util.Scanner; class Main{ public static void main(String args[]){ double…
Q: Toll roads have different fees based on the time of day and on weekends. Write a method calcToll()…
A: First we will convert both the time intervals given (i.e. Weekdays and Weekends) into minutes only.…
Q: Retail price calculator Write a program that asks the user to enter an item’s wholesale cost and its…
A: Step 1 : Start Step 2 : Define a method calculateRetail() to calculate and return the retail price…
Q: C# Create an application for a library and name itFineForOverdueBooks. TheMain() method asks the…
A: Given:- Create an application for a library and name itFineForOverdueBooks. TheMain() method asks…
Q: need help creating this Java Program it has to match the sample run exactly thank you !…
A: import java.util.Scanner; public class Main{ public static double futureInvestmentValue(double…
Q: this assignment wants me : Herbert’s Home Repair estimates each job cost as the cost of materials…
A: Below is the modified java program: - Explanation: - In the given code, there are two errors that is…
Q: Pass both variables to a method named computePercent() that displays the two values and the value of…
A: Required: Modify the Percentages application whose main() method holds two double variables.…
Q: Write method headers (not the bodies) for the following methods: a. Return a sales commission, given…
A: a) public static double getCommission(double salesAmount, double commissionRate) b) public static…
Q: n netbeans, Write a method named costAfterDiscount that is passed 2 double parameters named Cost…
A: Dear Student, Your asked method is provided below
Q: When an object is falling because of gravity, the following formula can be used to determine the…
A: Note: Programming language is missing in the question. So we will answer this program in Java…
Q: Herbert’s Home Repair estimates each job cost as the cost of materials plus $35 per hour while on…
A: Code snippet:
Q: 5. Falling Distance When an object is falling because of gravity, the following formula can be used…
A: PROGRAM CODE: import java.util.Scanner; // import utility packagepublic class Main…
Q: Write a standard mode application that calculates and displays the weekly salary for an employee.…
A: A required program is as follows, import java.util.Scanner; public class Salary { //Define the…
Q: i need help with my last method studentSearch() the main idea of the method is to make sure not…
A:
Q: Write a program in java that asks the user to enter a distance in meters. The program will then…
A: Step-by-step solution 1. Step 1 of 3 Program Plan: Define the class Meter_Converter. o Define…
Q: Write an application that displays the result of dividing two numbers and displays any remainder.…
A: Introduction Write an application that displays the result of dividing two numbers and displays…
Q: The first method of the class will ask the user to input two numbers. Four methods will return their…
A: The question is to write java code for the given problem.
Q: You invoke a method by its name followed by a pair of brackets and the usual semi-colon, PLEASE USE…
A: Coded using C#.
Q: In this programming question, you are required to implement five methods according to the following…
A: The solution to the given problem is below.
Q: e windChill method accepts the temperature and wind speed as whole numbers and returns the…
A: Here the function windChill is returning a whole number. So return datatype has to be int. The…
Q: Methods with an empty parameter list and do not return a value: [Questions 1-8 required] You invoke…
A: Coded using C#.
Q: This program inputs the names of 5 students and the (integer) grades they earned in 3 tests. It then…
A: The program will need five methods as follows: Method names() will input the names and return the…
Q: C++ write an application that enable users to enter student id and three exam scores. Provide a…
A: The program has two function one for calculating average and snother for printing values. The main…
Q: Write a method called CaculateTuitionFee(int numberOfCourses, double costPerCourse = 449.99). This…
A: Coded using C#.
Q: Write the method header for a method named ShowRetailPrice. The method should include parameter…
A: Actually, method is a procedure, technique or way of doing something.
Q: 3. write a method which calculate the Earns as following: If the Job is Teaching assistance : Earns…
A: Required: C# program to calculate earning and print the results. All code and screenshots have…
Q: Please don;t change anything. put your code line 5. Java Write a static method named toCelsius that…
A: Below is the static method of converting fahrenheit to celsius in java.
Q: Financial Application:• Write a program that computes future investment value at a given interest…
A: Program plan:Import necessary packages.Define a class named “Main”.Define a method named…
Q: You can declare a void method as follow; public void int calculateSalary() { int num1=89; int…
A: WE have to find weather the syntax is correct or not.
Q: Select the header of a method that displays whether a character is a letter or a digit. * public…
A: Answer : -- option B) publi static void isVowel( char ch)
Q: Write a program that asks the user to enter a distance in meters. The program will then pre-sent the…
A: import java.util.*;import java.lang.*;public class Main { static double showKilometers(double…
Q: This program will ask a user to enter their favorite color. Your program will tell the user what…
A: Program Approach: Import necessary header files create a class the main method create a scanner…
Q: The area of a rectangle can be computed using the following formula:…
A: The program is written in Java. Check the program screenshot for the correct indentation. Please…
Q: Write the below method. Explain all parts of the method thoroughly: Contains Digit: • This method…
A: The given problem is related to Java programming where a function is to be implemented as per the…
Q: write a pseudo code and read a patient number, blood pressure figures (systolic or diastolic), and…
A: To write: To write a java program that displays the level of cholesterol and its level using the…
Q: QUESTION 2 A prime number is a number that is evenly divisible only by itself and 1. For example,…
A: A prime number is a number that is evenly divisible only by itself and 1. For example, the number 5…
Java
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- 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 greaterScenario As you surely know, due to some astronomical reasons, years may be leap or common. The former are 366 days long, while the latter are 365 days long. Since the introduction of the Gregorian calendar (in 1582), the following rule is used to determine the kind of year: if the year number isn't divisible by four, it's a common year, otherwise, if the year number isn't divisible by 100, it's a leap year. otherwise, if the year number isn't divisible by 400, it's a common year. otherwise, it's a leap year. none of the above year int(input("enter the year")) if (year%4 1-0) and (year%400 -0) or (year % 1000): print (year is common year") else: print(year, is leap year") year= int(input ("enter the year")) if (years !-0) or (year480 1-0) and (year % 1001-0): print(year is common year") else: print(year, "is leap year") D year= int(input("enter the year"))Interest on a credit card’s unpaid balance is calculated using the average daily 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 x d1-payment x d2d1 If the interest rate per month is, say, 0.0152, then the interest on the unpaid balance is: Interest= averageDailyBalance * 0.0152 Write a program using c++ compiler that accepts as inputnetBalance, 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, and thenleave it alone to draw interest for the next 10 years. At the end of 10 years, you would like tohave $10,000 in the account. How much do you need to deposit today to make that happen?You can use the following formula, which is known as the present value formula, to find out:The terms in the formula are as follows: [5 marks]• P is the present value, or the amount that you need to deposit today.• F is the future value that you want in the account. (In this case, F is $10,000.)• r is the annual interest rate.• n is the number of years that you plan to let the money sit in the account.Write a method named presentValue that performs this calculation. The method should accept the future value, annual interest rate, and number of years asarguments. It should return the present value, which is the amount that you need to deposit today.Demonstrate the method in a program that lets the user experiment with…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…38. The geometric mean g of n numbers x; is defined as the nth root of the product of x;: g=Vx1x2X3•…Xn (This is useful, for example, in finding the average rate of return for an investment which is something you'd do in engineering economics). If an investment returns 15% the first year, 50% the second, and 30% the third year, the average rate of return would be (1.15*1.50*1.30)") Compute this.
- Assume you work as a cashier in a restaurant. You must keep track of the amount of money your restaurant earns each day and report it to your boss. If a customer purchases something, that amount is added to the daily income book.Take a customer's order and if a customer enters an "X," the order is complete, and print "Total cost of the items: ". In this way, 3 customers can order at maximum as your restaurant only serves three customers per day; after the service, print the day's total income; if the total money exceeds 500tk, print "Great Work". Otherwise, print "Do Best Next Day."Note: Write a function called “take_order()” that asks users to input food names, calculate the amount and show it to the customer. When the last customer buys, you need to also calculate the total income of the day and show it at the end. Assume that no customers enter invalid food names.The Dictionary ‘price_list’ is set for you and use it in the code for your convenience.price_list={'Juice':30, 'Fried…Lael is always on the lookout for students who might be interested in running for office in student groups.In cell M2, enter a formula using a nested IF function and structured references as follows to determine first if a student has already been elected to office in a student group, and if not, whether that student meets the qualifications to run in the future: If the value in the Elected column is equal to the text "Yes", the formula should display Elected as the text. Otherwise, the formula should determine if the value in the Finance Certified column is equal to the text "Yes" and return the text Yes if true And No if false. what is the formula to enter into excel?-A laboratory test was performed to obtain the change of concentration with time. Test results are shown on the table. The student noticed that one datum at t=20s is missing. Concentration Time (s) (mg/L) 194 - Use interp1() function to predict the missing value using different methods: 10 246 15 369 >linear 25 384 > cubic > spline • Plot the results on the same figure. 30 271 40 24
- Calculate the salary of employee on the basis of attendance of employee which you have already compute in abovetasks. Formula to calculate the salary is given below: Salary = (working-hours per day * total days per month)*1000; Note: 2 days off per week. Per week total attendance must be 5 of days. And deduct salary on the basis of absentees.1000 rupees per absent.3. Given that x is an integer, what does if(x % 2 == 0) check for?USE R STUDIO TO SOLVE: Assume that I am a manager of an ice-cream business. I have four sales agents: Ashley, Jude, Leslie and Skylar. They each work six days per week and have access to a portable kiosk to sell my ice-cream. On the days they work, they sell my ice cream at one of three permitted locations: the beach, the market or the park. My strategy so far has been to randomly determine the six days that each agent works and to randomly assign the location for each agent daily. I now want to know if randomly determining the days and randomly assigning the location is the right decision to maximise sales revenue. To help answer this, I collected some data over a 20 week period. However, I don't know what to do with the data. For this reason, I have recruited you as a consultant in data analytics to: i. help me make sense of the data; ii. provide evidence that randomly assigning workdays and locations is a suboptimal strategy; iii. to advise me on a more optimal…