Exercise 3.5 Write a program that calculates the sum of the integers from 1 to 10. Use the while statement to loop through the calculation and increment statements. The loop should terminate when the value of x becomes 11. Exercise 3.8 Write a C program that calculates x raised to the y power. The program should have a while repetition control statement. Exercise 3.20 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. Here is a sample input/output dialog: Enter loan principal (-1 to end): 1000.00 Enter 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 interest rate: .08375 Enter term of the loan in days: 224 The interest charge is $51.40 Enter loan principal (-1 to end): 10000.00 Enter interest rate: .09 Enter term of the loan in days: 1460 The interest charge is $3600.00 Enter loan principal (-1 to end): -1 Exercise 3.23 Write a program that utilizes looping to print the numbers from 1 to 10 side by side on the same line with three spaces between numbers. Exercise 3.24 The process of finding the largest number (i.e., the maximum of a group of numbers) is used frequently in computer applications. For example, a program that determines the winner of a sales contest would input the number of units sold by each salesperson. The salesperson who sold the most units wins the contest. Write a program that inputs a series of 10 numbers and determines and prints the largest of the numbers. Hint: Your program should use three variables as follows: - A counter to count to 10 (i.e., to keep track of how many numbers have been input and to determine when all 10 numbers have been processed) - The current number input to the program - The largest number found so far Exercise 3.27 Modify the previous program to find the two largest values of the 10 numbers. [Note: You may input each number only once.] exercise 3.25 Write a program that utilizes looping to print the following table of values: N 10*N 100*N 1000*N 1 10 100 1000 2 20 200 2000 3 30 300 3000 4 40 400 4000 5 50 500 5000 6 60 600 6000 7 70 700 7000 8 80 800 8000 9 90 900 9000 10 100 1000 10000 The tab escape sequence, \t, may be used in the statement to separate the columns with tabs.