Question: 3. Short Questions from Array o store the following decimal numbers into an array. Declare and initialize the atispay the 3 data using proper C++
3. Short Questions from Array o store the following decimal numbers into an array. Declare and initialize the atispay the 3 data using proper C++ statement using the array name you selected in part (a). b) Numbers to be stored are : 3.4, 7.9,1.6,25.2,4.8 Now c) Write suitabl e program segment to add all the numbers and store in Sum. Use a loop and the array name to do that. d) W rite of all the values in the array. a function that can take the array and determine which one is the largest element 4. W a value return function that can be used to compute the compound interest based orn the given formula: Total compounded interest = P (1 + r) (t)-P Where P is the principal loan amount r is the annual interest rate (decimal number) n = no of times per year the interest is compounded (if monthly, them n will be 12) t = number of years the loan is borrowed for. The function should return the total compound interest
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
