Question

In: Computer Science

Calculate interest on balances up to 30,000( 3.25% interest) and above 30,000(.25% interest). In this program,...

Calculate interest on balances up to 30,000( 3.25% interest) and above 30,000(.25% interest). In this program, we prompt the user for the balance and output the dividends earned. (example a 10,000 deposit earning 1.15% would earn 10,000*1.15%=$115)

In this program we prompt the user for the anticipated balance and then output the dividends earned.

What formula would you create if you prompt the user for the balance and then display dividends earned?(you can use variable constants, if then statements.

Solutions

Expert Solution

Code

#include <iostream>

using namespace std;

int main()
{
   int balance;
   float interest, dividends;
   cout << "Enter the balance value\n";
   cin >> balance;

   if (balance <= 30000)
       interest = 3.25;
   else
       interest = .25;

   dividends = (balance * interest) / 100; // Formula for calculating dividend
  
   cout << "Dividends earned is: $"<<dividends;
   return 0;
}



Test Output


Related Solutions

If you borrowed $30,000 at 25% annual interest. You agreed to repay the loan with five...
If you borrowed $30,000 at 25% annual interest. You agreed to repay the loan with five equal annual payments. How much of the total amount repaid is interest? How much of the third annual payment is interest, and how much principal is there? If you decided to pay off your loan after the third payment, how much will you pay? please i want the result step by step by hand not using excel! thanks in advance
Using the revenue function given in the earlier question above, at an interest rate of 25%,...
Using the revenue function given in the earlier question above, at an interest rate of 25%, if the firm makes it optimal choice, then its total profit would be? Revenue equal to $4.7k^0.5 A) 4.4 B) 4.85 C) 5.33 D) 5.75 previous question: A firm uses capital, K, to produce revenue. The revenue function is given as Revenue = $4.7K0.5. If the interest rate is currently 21%, what is optimal K for the firm to choose? Group of answer choices...
how to make a program in c++ that has an array that holds up to 25...
how to make a program in c++ that has an array that holds up to 25 digits.Then have a user input 25 values and check to see if each input value is between 10 and 50?
In java Create a program to calculate interest rate and total balance - the program consists...
In java Create a program to calculate interest rate and total balance - the program consists of (a) A class that encapsulates the interest rate and total balance calculation Constructor should accept initial balance and interest rate Methods: Returns interest rate Returns total balance Set interest rate Set initial balance (b) A test program that uses class from step (A) to perform the following: Set interest rate to 5% and initial balance to 1000 Print interest amount and total balance...
Calculate Interest in a Java program. If you know the balance and the annual percentage interest...
Calculate Interest in a Java program. If you know the balance and the annual percentage interest rate, you can compute the interest on the next monthly payment using the following formula: interest = balance * (annualInterestRate/1200) Write a program that reads the balance and the annual percentage interest rate and displays the interest for the next month. Create a scanner Prompt the user to enter a name and create variable for scanner Prompt the user to enter a balance and...
Calculate the IRR for the following proposal: Machine cost $4,500,000 Set up cost $30,000 Training cost...
Calculate the IRR for the following proposal: Machine cost $4,500,000 Set up cost $30,000 Training cost $30,000 Annual maintenance cost $15,000 Anticipated annual savings $477,000 Annual labor savings $40,000 Useful life in years 8 Overhaul cost in year 4 $30,000 Annual operating cost $27,000 Hurdle rate 8% Salvage value $50,000 Depreciation method straight line
Two entreprenuers borrowed $50,000 at 10% interest from members of families and each put up $30,000...
Two entreprenuers borrowed $50,000 at 10% interest from members of families and each put up $30,000 in equity capital. Retail space was rented and $60,000 was spent for fixtures and store equipment. For their venture after one complete. year of operation, they asked you to do a financial ratio analysis. Here are the data you collected until today. Calculate the operating return on assets. Sales: $320,000. Operating Costs: 285,000. Depreciation: 10,000. Interest: 5,000 Taxes: 6,000. Cash: $20,000. Receivables: 30,000. Inventories:...
Two entrepreneurs borrowed $50,000 at 10% interest from members of families and each put up $30,000...
Two entrepreneurs borrowed $50,000 at 10% interest from members of families and each put up $30,000 in equity capital. Retail space was rented and $60,000 was spent for fixtures and store equipment. For their venture after one complete. year of operation, they asked you to do a financial ratio analysis. Here are the data you collected until today. Calculate the net profit margin. Sales: $320,000. Operating Costs: 285,000. Depreciation: 10,000. Interest: 5,000 Taxes: 6,000. Cash: $20,000. Receivables: 30,000. Inventories: 50,000....
A mortgage is set up for $115000 and is amortized over 25 years at 7.95% interest....
A mortgage is set up for $115000 and is amortized over 25 years at 7.95% interest. Approximate the following payments:) a) monthly b) semi-monthly c) weekly d) biweekly e) accelerated weekly
a) Given effective quarterly interest rate equal to 3.25%, findthe equivalent monthly interest rate.Ans:...
a) Given effective quarterly interest rate equal to 3.25%, find the equivalent monthly interest rate.Ans: 1.078%. Show all work.b)Given effective annual discount rate equal to 9.2%, find the nominal interest rate compounded quarterly.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT