We need a program to calculate future cost of a loan taken by a user. The financial institution charges the following interest rates for loans. The user inputs are the amount of loan desired, the loan period (number of years), and the number of compounding per year. Your program should determine the interest rate based on the amount of the loan. Your program should calculate the future dollar amount of this loan. The total amount of interest at the end of the loan period. Your program should incorporate a looping structure so that the user could check out many loan scenarios. You need to determine how to stop the loop. Interest rate schedule is per following schedule: Loan < 10k rate = 2% 10k =

Answers

Answer 1

Answer:

Follows are the code to this question:

#include<iostream>//defining the header file

#include<cmath>//defining the header file

using namespace std;

int main() //defining main method

{

   double p,a,r;//defining double variable  

   int n,t;//defining integer variable

   bool flag = true;//defining bool variable flag  

   while(flag) //defining while loop for input value

   {

       cout<<"Enter Present Worth: ";//print message

       cin>>p;//input value in p

       cout<<"Enter number of compounding: ";//print message

       cin>>n;//input value in n

       cout<<"Enter Loan Period: ";//print message

       cin>>t;//input value in t

       if (p<10000)//defining if block that check principle value is graeter then 10000

       {

           r = 0.02;//defining r varaible that store 0.02 value  

       }

       else if (p>=10000 && p<=50000)//defining else if that value of p is in 10000 to 50000  

       {

           r = 0.05;//defining r varaible that store 0.05 value

       }

       else if (p>50000)//defining else if that value of p is in 50000

       {

           r = 0.07;//defining r varaible that store 0.07 value

       }

       a = p*pow((1 + r/((double)n)), n*t);//defining formula for calculate A  

       cout<<"\nInterest Rate of Loan: "<<r<<endl;//print r rate value

       cout<<"Future Worth: $"<<a<<endl;//print A value

       cout<<"Total Interest: $"<<(a-p)<<endl<<endl;//print total interest value

       char c;//defining char variable c

       cout<<"Do you want to check for more loans(Press 'Y' for yes, otherwise press any other key): ";//print message

       cin>>c;//input char value

       if (c!= 'Y' && c!= 'y')//define if block that check c value is not equal to y

           flag = false;//use flag that hold  value false

   }

   cout<<"Thank you!!!"<<endl;//print message

   return 0;

}

Output:

please find the attched file.

Explanation:

In the code, inside the main method three double variables "p, a, and, r", two integer variable "n and t", a bool variable is defined, in which double variable "p, n, and t" is used to input the value from the user-end.

In the next step, a condition statement has used that check the p-value and set the value according to the "p" variable value.The formula is used that calculates the value and prints its value, and uses a char variable that takes input "y" for again run the code or input other value to exit the program.  
We Need A Program To Calculate Future Cost Of A Loan Taken By A User. The Financial Institution Charges

Related Questions

There are 12 inches in a foot and 3 feet in a yard. Create a class named InchConversion. Its main() method accepts a value in inches from a user at the keyboard, and in turn passes the entered value to two methods. One converts the value from inches to feet, and the other converts the same value from inches to yards. Each method displays the results with appropriate explanation.

Answers

Answer:

import java.util.Scanner;

public class InchConversion

{

public static void main(String[] args) {

    Scanner input = new Scanner(System.in);

   

 System.out.print("Enter inches: ");

 double inches = input.nextDouble();

 

 inchesToFeet(inches);

 inchesToYards(inches);

}

public static void inchesToFeet(double inches){

    double feet = inches / 12;

    System.out.println(inches + " inches = " + feet + " feet");

}

public static void inchesToYards(double inches){

    double yards = inches / 36;

    System.out.println(inches + " inches = " + yards + " yards");

}

}

Explanation:

In the inchesToFeet() method that takes one parameter, inches:

Convert the inches to feet using the conversion rate, divide inches by 12

Print the feet

In the inchesToYards() method that takes one parameter, inches:

Convert the inches to yards using the conversion rate, divide inches by 36

Print the yards

In the main:

Ask the user to enter the inches

Call the inchesToFeet() and inchesToYards() methods passing the inches as parameter for each method

What allows you to create a wireless connection among your smart devices.

Answers

Answer:

Probably Wi-Fi or a network but if you need more specific i'm not sure

Explanation:

Based on MLA guidelines, what is the correct line spacing?
O Double space
O Single space
O 1.5 lines

Answers

the answer is double space.

i always have to with my essay in MLA format and it’s double space,new times roman, and size 12 font

According to the Modern Language Association (MLA) guidelines, the correct line spacing for a document is double-spacing. This means that there should be a full blank line between each line of text in the document. Hence, option A is the correct answer.

Double spacing helps improve readability and makes it easier for readers to distinguish between different lines of text. It also allows for better legibility and makes it easier to add annotations or comments to the document.

It's important to note that the MLA guidelines may change over time, so it's always a good idea to consult the most recent edition of the MLA Handbook or check with your instructor or institution for any specific requirements regarding line spacing or formatting.

Hence, option A is the correct answer.

Learn more about MLA here:

brainly.com/question/32131813

#SPJ6

Microsoft
is one of the world's most popular operating systems.

Answers

Answer:

The answer is "Cooperation

"

Explanation:

Answer:

Microsoft Windows is one of the world most popular operating system

. answer is windows please mark me brain list

Write a Java program that will 1. Ask the user to type in a sentence, using a JOptionPane.showInputDialog(). 2. The program will examine each letter in the string and count how many time the upper-case letter 'E' appears, and how many times the lower-case letter 'e' appears. The key here is to use the charAt method in class String. 3. Using a JOptionPane.showMessageDialog(), tell the user how many upper and lower case e's were in the string. 4. Repeat this process until the user types the word "Stop". (Check out the method equalsIgnoreCase in class String to cover all upper/lower case possibilities of the word "STOP").
Please provide a code for this in JAVA.

Answers

Answer:

Here is the JAVA program :

import javax.swing.JOptionPane;   //to use JOptionPane  

public class Main {   //class name

public static void main(String[] args) { //start of main method

   int ECount= 0;   //counts number of upper case E

   int eCount= 0;  //counts number of lower case e

   String sentence;   //stores input sentence string

sentence = JOptionPane.showInputDialog(null, "Type a sentence (type stop to exit)");  //uses showInputDialog method to display a dialog box which prompts user to enter a sentence

 int length = sentence.length();  //stores the length of the sentence

 while (!sentence.equalsIgnoreCase("stop"))  //the loop continues to execute until the user types stop

{ for (int i = 0; i < length; i++) { //loops through the sentence

             if (sentence.charAt(i) == 'E')  //if the character is an uppercase E

                  ECount += 1;  //adds 1 to the count of Ecount

             if (sentence.charAt(i) == 'e')  //if the character in a sentence is lowercase e

                  eCount += 1;}  //adds 1 to the count of lower case e

JOptionPane.showMessageDialog(null, "There are " + ECount + " number of E's and " + eCount + "  number of e's in " +sentence);   //displays the number of times uppercase and lowercase (E and e) occur in sentence

sentence = JOptionPane.showInputDialog(null, "Type a sentence (type stop to exit");  //prompts user to enter the next sentence

length = sentence.length();  //stores the length of sentence at each iteration of while loop until user enters stop

eCount=0;  //resets the counter of lowercase e

ECount=0;  } } } //resets the counter of uppercase e

Explanation:

The program uses showInputDialog() method that displays a dialog box on output screen. This dialog box prompts the user to enter a string (sentence) Suppose user enters "Evergreen" as input sentence so

sentence = "Evergreen"

Next the length of this string is computed using length() method and stored in length variable. So

length = sentence.length();

length = 9

The for loop iterates through this input sentence until the variable i is less than length i.e. 9

At first iteration

if (sentence.charAt(i) == 'E') becomes

if (sentence.charAt(0) == 'E')

Here charAt() method is used which returns the character at the specified index i. This if condition is true because the character at 0-th index (first character) of the sentence Evergreen is E. So ECount += 1; statement adds 1 to the count of upper case E so

ECount = 1

At second iteration:

if (sentence.charAt(1) == 'E')

this condition is false because the character at 1st index of sentence is 'v' which not an upper case E so the program moves to next if condition if (sentence.charAt(i) == 'e') which is also false because the character is not a lower case e either.

At third iteration:

if (sentence.charAt(2) == 'E')

this condition is false because the character at 2nd index of sentence is 'e' which not an upper case E so the program moves to next if condition if (sentence.charAt(i) == 'e') which is true because the character is a lower case e. So the statement eCount += 1; executes which adds 1 to the count of e.

eCount = 1

So at each iteration the sentence is checked for an upper case E and lower case e. After the loop breaks, the program moves to the statement:

JOptionPane.showMessageDialog(null, "There are " + ECount + " number of E's and " + eCount + "  number of e's in " +sentence);

which displays the number of uppercase E and lower case e in a message dialog box. So the output is:

There are 1 number of E's and 3 number of e's in Evergreen.

Then because of while loop user is prompted again to enter a sentence until the user enters "stop". Now the user can enter Stop, StOp, STOp etc. So equalsIgnoreCase method is used to cover all upper/lower case possibilities of the word "stop".

The screenshot of the program and its output is attached.

Joe just joined a new team at his marketing firm, which has been working on a campaign ad for the new Elmo doll. Everyone in the group has children except for Joe, and thus they are familiar with the doll. Joe has never seen an Elmo doll before. How should he deal with the situation?

Answers

Answer: ask someone to show or explain the doll to him

Explanation:

edmentum

Answer: ask someone to show or explain the doll to him

Explanation:

If Joe asks his teammates to show or explain the doll to him, he too can contribute ideas for the successful completion of the project.

Raw facts, or ____
are the input for a computer process.
O data
O software
O output
O peripherals

Answers

data is the answer to this question

Shut down and unplug the computer. Remove the CPU case lid. Locate the various fans, and then use compressed air to blow dirt out through the internal slits from inside the case.
✔ cleaning the fan

Save files to an external storage device to aid in file recovery.
✔ backup

This process allows you to permanently delete files you no longer need.
✔ cleaning out unneeded files

This mini program may be an unwanted application.
✔ widget

Remove programs you accidentally downloaded when you purchased an e-book.
✔ removing unwanted applications

This application scans, locates, and makes needed repairs on the hard drive.
✔ checking the hard drive for errors

I DID THIS CAUSE TI COULDNT FIND THE ANSWERS SO I WANTED TO HELP ANYONE WHO NEEDS THIS

Answers

the answers are:

- cleaning the fan

- backup

- cleaning out unneeded files

- widget

- removing unwanted applications

- checking the hard drive for errors

What is a promotional activity for a film?

Answers

Answer:

Sometimes called the press junket or film junket, film promotion generally includes press releases, advertising campaigns, merchandising, franchising, media and interviews with the key people involved with the making of the film, like actors and directors.

Explanation:

What are sums of money that are given out for specific reasons?

conventional loans

grants

venture capitals

angel fundings

Answers

Answer:

B. grants

Explanation: This is the correct answer on Edge 2021, just did the assignment. Hope this helps ^-^.

ILL MARK BRAINEST.
What must a new object have in Turtle Graphics? O Export O Name Title O Rank​

Answers

Answer:

Name

Explanation:

Answer:

name

Explanation:

brain

How would you access the Format Trendline task pane?

A. clicking the Insert tab and Trendline group
B. double-clicking on the trendline after it’s added
C. adding the Chart Element called Trendline
D. clicking the Format contextual tab and Format Selection

Answers

Answer:

B. double-clicking on the trendline after it's added

Explanation:

I did the assignment on edge 2020

A format trendline task pane is a task pane that is used to format or change the settings of a trendline in a chart. The correct option is B.

What is the format trendline task pane?

A format trendline task pane is a task pane that is used to format or change the settings of a trendline in a chart.

The easiest way to access the format trendline task pane for an inserted trend line is to double-click on the trendline after it is added. A preview of the Format trendline task pane is attached below. Therefore, the correct option is B.

Learn more about Task Pane:

https://brainly.com/question/20360581

#SPJ2

Cam needs to turn her Turtle to the right 50 pixels. Which line of code should Cam use? O tom(50) O tom. turtle(50) Otom. forward(fifty) O tom.right(50) WILL MARK BRAINEST

Answers

Answer:

I believe it is D

Explanation:

Answer:

Its D

Explanation:

fill in the blanks to save a file in Paint used...... key combination​

Answers

I don’t see nothing .

You're a short-order cook in a pancake restaurant, so you need to cook pancakes as fast as possible. You have one pan that can fit capacity pancakes at a time. Using this pan you must cook pamCakes pancakes. Each pancake must be cooked for five minutes on each side, and once a pancake starts cooking on a side it has to cook for five minutes on that side. However, you can take a pancake out of the pan when you're ready to flip it after five minutes and put it back in the pan later to cook it on the other side. Write the method, minutes Needed, that returns the shortest time needed to cook numCakes pancakes in a pan that holds capacity pancakes at once.

Answers

Answer:

Explanation:

The shortest time needed means that we are not taking into account the amount of time it takes to switch pancakes, flip them, or take them out of the pan, etc. Only cooking them. Therefore, written in Java would be the following...

public static int minutesNeeded (int numCakes, int panCapacity) {

       int minutesNeededtoCook = 0;

       while (numCakes != 0) {

           if (numCakes > panCapacity) {

               numCakes -= panCapacity;

               minutesNeededtoCook += 10;

           } else {

               numCakes = 0;

               minutesNeededtoCook += 10;

           }

       }

       return minutesNeededtoCook;

   }

The code takes in the amount of pancakes and the pan capacity, then compares them and adds 10 minutes (5 on each side) per pancake batch that is being made until all the pancakes are made.

true false the table can have only one primary key​

Answers

where is the tableeeeeee

A non-abstract class that implements an interface: __________

a. can use any constants defined by the interface
b. must provide an implementation for each abstract method
c. defined by the interface must inherit the interface
d. all of the above
e. a and b only

Answers

Answer:

b

Explanation:

because i think i go with my gut

What is the shortcut for inserting fraction in word?(except insert equation)​

Answers

Answer:

\frac is the shortcut for inserting fraction in ms-word

e.g of a/b = \frac {a}{b}

Question 7 of 10
When is it more professional not to send a business email?
O A. When a number of people should be included.
B. When the content is highly sensitive or emotional.
O C. When a written record is needed.
D. As a cover letter for an attachment

Answers

Answer:

B. When the content is highly sensitive or emotional

Explanation:

B. When the content is highly sensitive or emotional.

Which of the following statements BEST describe why Agile is winning?

Answers

Where are the statements

Answer:

nunya

Explanation:

Let A, B, and C, and D be the following statements:
A The villain is French.
B The hero is American.
C The heroine is British.
D The movie is good.
Translate the following compound statements into symbolic notation.
a. The hero is American and the movie is good.
b. Athough the villain is French, the movie is good.
c. If the movie is good, then either the hero is American or the heroine is British.
d. The hero is not American, but the villain is French.
e. A British heroine is a necessary condition for the movie to be good.

Answers

what tha hell is that my bad i try lol im so dumb it is what it is

How do I give brainliest (I’m new) .Actually answer my question!

Answers

Answer: I’m sorry, but what is your question? Then, I may be able to help you. Also, add a link (image)!

Explanation: Thank You!

Answer:

Hi! There has to be two answers to your question. That is the only way you are able to give a brainliest. You can give a brainliest if you believe a person who wrote an answer to your question fully detailed and organized. It has to answer your question.

Hope this helps! :D

This program is to ask the user N number of math (using only +, -, *, and /) questions. Once the program start it asks the user to enter how many questions will be asked (N, which is between 3-10). Then, the program asks N questions to the user. Each question will be one of four math operations (+, -, *, and /). The operation and operands will be selected randomly in your program.Operand are "unsigned short" between 0 and 100. After N questions, program exits by showing success score (number of correct / number of all questions).
------Sample Run------
Enter number of questions I need to ask: 5
1) 3 + 4 = 6
Incorrect, 7 was the answer.
1) 8 - 4 = 4
Correct
1) 5 * 6= 30
Correct
1) 5 - 345= -300
Incorrect, it should be -340.
1) 0-0=0
Correct
Your success rate is 60%.

Answers

Answer:

Written in Python

import random

N = int(input("Enter number of questions I need to ask: "))

if N >2 and N < 11:

    signs = ['+', '-', '*', '/']

    correct = 0

    for i in range(1,N+1):

         num1 = random.randint(1,101)

         num2 = random.randint(1,101)

         sign = random.choice(signs)

         print(str(i)+":) "+str(num1)+" "+sign+" "+str(num2)+" = ")

         res = int(input(""))

         if sign == '+':

              result = num1 + num2

         elif sign == '-':

              result = num1 - num2

         elif sign == '*':

              result = num1 * num2

         elif sign == '/':

              result = num1 / num2

         if result == res:

              correct = correct + 1

    print("Your success rate is "+str(round(correct * 100/N))+"%")

Explanation:

I've added the source program as an attachment where I used comments to explain difficult lines

Next, copy in your strip_punctuation function and define a function called get_pos which takes one parameter, a string which represents one or more sentences, and calculates how many words in the string are considered positive words. Use the list, positive_words to determine what words will count as positive. The function should return a positive integer - how many occurrences there are of positive words in the text. Note that all of the words in positive_words are lower cased, so you’ll need to convert all the words in the input string to lower case as well.
punctuation_chars = ["", ","," 3 # list of positive words to use 4 positive_words = 0 5 with open ("positive_words.txt") as pos_f: for lin in pos_f: if lin[0] != ';' and lin[0] != '\n': positive_words.append(lin.strip) 6 7 8 9 10

Answers

Answer:

Here is the get_pos function:

def get_post(string):  #function that takes string as parameter

   string=string.lower() #converts the string to lower case                    

   string=strip_punctuation(string)  #calls strip_punctuation to remove punctuation from string

   string=string.split() #split the string into a list      

   count_positive=0  #counts the occurrences of positive words

   for word in string:  #loops through the string

       if word in positive_words:  #if a word in a string is a positive words

           count_positive=count_positive+1  #adds 1 to the count of count_positive each time a positive word appears

   return count_positive #returns the positive integer - how many occurrences there are of positive words in the string

Explanation:

In order to explain the working of this function lets suppose the punctuation_chars list contains the following punctuation characters:

punctuation_chars = ["'", '"', ",", ".", "!", ":","?", ";", '#']

Lets suppose the positive_words.txt file contains the following two words i.e. yes  okay

Lets suppose the string is Hi! I am okay, see you later.

string = " Hi! I am okay, see you later. "

string=string.lower()  statement converts the string to lower case:

string = hi! i am okay, see you later.

string=strip_punctuation(string)   this statement calls strip_punctuation method to remove the punctuation from string.

string = hi i am okay see you later

string=string.split() this statement splits the sentence into list

['hi', 'i', 'am', 'okay', 'see', 'you', 'later']  

for word in string: this loop iterates through the string

At first iteration if condition checks if word "hi" is in positive_words. This is not true because positive_words only contain the words okay and yes.

At next iteration if condition checks if word "i" is in positive_words. This is not true because positive_words only contain the words okay and yes.

At next iteration if condition checks if word "am" is in positive_words. This is also not true.

At next iteration if condition checks if word "okay" is in positive_words. This is true because positive_words contains the words okay. So count_positive=count_positive+1 statement executes which adds 1 to the count of count_positive so

count_positive = 1

At next iteration if condition if word in positive_words checks if word "see" is in positive_words. This is not true.

At next iteration if condition checks if word "you" is in positive_words. This is also not true.

At next iteration if condition checks if word "later" is in positive_words. This is also not true.

Now the statement:  return count_positive  returns the occurrence of positive words in the string which is 1. So the output of this is 1.

Here is the strip_punctuation method:

def strip_punctuation(word):  #removes punctuation from words

   New_word=""   #initializes new word string to empty

   print("Word is: ",word)  #prints the word

   for w in word:  #iterates through words

       if w not in punctuation_chars:  #if word is not in punctuation_char list

           New_word=New_word+w  #adds that word to new word string

   return  New_word #returns word after removing punctuation

what is cpu write its parts

Answers

Explanation:

hope it is helpful to you

Serveral cheetas are growling at each other while hunting for animals.for which need are they competing?

Answers

Answer:

prey

Explanation:

Answer:

food plis let me now if am wrong

Explanation:

As you apply to college when should you apply for financial aid

Answers

Answer:

after you are accepted in the college

Explanation:

You should apply for admission to the colleges you are interested in BEFORE filing your FAFSA. Once you are accepted to the colleges you have applied to, you can add those schools to receive financial aid award offers from when you file your FAFSA.

Please help on a timer!!

Answers

Answer:

I believe it is the Second Option as all the others are correct.

Consider a banking system with ten accounts. Funds may be transferred between two of those accounts by following these steps:

lock A(i); lock A(j);
Update A(i); Update A(j);
Unlock A(i); Unlock A(j);


Required:
a. Can this system become deadlocked? If yes, show how. If no, explain why not?
b. Could the numbering request policy (presented in the chapter discussion about detection) be implemented to prevent deadlock if the number of accounts is dynamic? Explain why or why not?

Answers

Answer:

qegfds

Explanation:

Which of the following section does not exist in a slide layout?
A. Titles
B. Lists
C. Charts
D Animations​

Answers

Answer:

D

Explanation:

Other Questions
Magna Carta: Petition of Rights : English Bill of Rights: What does all three of these items have in common? LOOK AT THE IMAGE ABOVE CAN SOMEONE PLEASE DO IT WITH FULL STEPS PLEASE I NEED IT TODAY PLEASE PLEASE I WILL MARK YOU BRAINLIST write a newspaper article on why students should use zoom for learning and discussions Look at the map aboveImage courtesy of NASAThe Isthmus of Panama is located at number _____ on the map above.A.1B.2C.4D.5Please select the best answer from the choices providedABCDMark this and return Which section of Texas is known for its many lakes, reservoirs, and hills?a.Llano Basinb.Edwards Plateauc.North High Plainsd.South High Plains A basketball player scored 30 times during one game. she scored total of 50 points, two for each two point shot and one for each free throw. How many two point shots did she make? How many free throws Help me solve this problem please What two elements have properties that are most similar 7.860.2 I need you to answer with step by step explaination Complete the paragraph proof to prove the statement.Given: ABC DEF and GHI DEFProve: mABC = mGHIWe are given that angle ABC and are congruent, and that angle GHI and angle DEF are congruent. By the , the measure of angle ABC is equal to the measure of angle DEF, and the measure of angle GHI is equal to the measure of angle DEF. By the substitution property, the measure of angle ABC is equal to . Which kind of CRM fits into the category of web analytics?"BLANK" fits into the category of web analytics. Select the correct answer.Olivier and Louise are telling Claire about their favorite activities, which sentence best expresses what they would say?.Nous faisons au football tous les jours parce que nous aimons a.B.Nous jouons au football tous les jours parce que nous aimons a.C.Elle joue au football tous les jours parce qu'elle aime a.D.Vous jouez au football tous les jours parce que vous aimez a. What is an equation of the line that passes through the points (-6,5) and (6,7) How many of Johann Sebastian Bach's family members were musicians? ill give brainliest you are at the grand canyon standing at the edge of a ledge 1857 m high you have a mass of 61 kg. you decide to take a selfie to share with your science teacher when you get home which causes you to wonder how much gravitational potential energy do you have standing at the edge of this cliff What is the meaning of the authors use of the word deliciously in the lines below? My head feels deliciously light and cool, and the barber said I could soon have a curly crop, which will be boyish, becoming, and easy to keep in order. Im satisfied, so please take the money and lets have supper. *1 pointdistastefulenjoyablehorribledispleasing What Colony made the alliances with the Native American? This colony intermarried and workedtogether with the Native Americans in the Fur Trade.1) Spanish2) British3) Dutch4) English 2560201. How many servings can be made with 25 cups of pasta, 30 cups of marinara, and 5cups of parmesan? Which of the following is NOT true of carbon? A. It is present in all organic compounds.B. It is a relatively small atom.C. It will do anything to fill up its electron shell.D. It can bond with multiple other atoms at once.Anybody know?