Question: this is (C programing) Q4: (A Better Simple Interest Loan Calculator) (20 points): The simple interest on a loan is calculated by the formula: interest

 this is (C programing) Q4: (A Better Simple Interest Loan Calculator)
(20 points): The simple interest on a loan is calculated by the
this is (C programing)

Q4: (A Better Simple Interest Loan Calculator) (20 points): The simple interest on a loan is calculated by the formula: interest = principal * rate * days / 365; The preceding formula assumes that rate is the annual interest rate, and therefore includes the division by 365 (days). Develop a program that will input principal, rate and days for several loans, and will calculate and display the simple interest for each loan, using the preceding formula. Use a sentinel value with a while loop to calculate the simple interest on as many loans as desired until the sentinel value is entered The exact prompts for your program can be found in the output below that your program should produce Enter loan principal (-1 to end): 1000.00 Enter annual interest rate: .1 Enter term of the loan in days: 365 The interest charge is $100.00 Enter loan principal (-1 to end) : 1000.00 Enter annual interest rate: 08375 Enter term of the loan in days: 224 The interest charge is $51.40 Enter loan principal (-1 to end): -1 Q5: (Flowchart: Tax Return) (25 points) This flowchart allows a single person to determine if he or she Q2: (Integer Sequences with While Loops) (25 points): Loops are very useful for counting and generating sequences of integers. If you can use a variable with a loop to count from 0 to n, then you can often transform that variablen using a formula or function such that f(n) results in a new integer sequence. Write a program that prompts the user to enter a number between 2 and 20, and then uses a series of while loops to generate some interesting integer sequences. The loop counters should all start at zero, but the transformed number may start at a number other than zero. The exact prompts and outputs needed can be found in the sample output given below. Use 2 spaces between each integer printed. Your program output should look as follows: Sample Input and Output: Enter a number between 2 and 20: 8 The first 8 whole numbers: 0 1 2 3 4 5 6 7 The first 8 even whole numbers: 0 2 4 6 8 10 12 14 The first 8 odd whole numbers: 1 3 5 7 9 11 13 15 The first 8 whole numbers counting by 7:0 7 14 21 28 first 8 perfect squares: 0 1 4 9 16 25 36 49 35 42 49 The

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!