Question: Lab 17 For Loops Purpose: In this lab you will use for loops to iterate over a range, calculating squares and cubes. Learning Objectives: Use

 Lab 17 For Loops Purpose: In this lab you will use
"for" loops to iterate over a range, calculating squares and cubes. Learning

Lab 17 For Loops Purpose: In this lab you will use "for" loops to iterate over a range, calculating squares and cubes. Learning Objectives: Use for loops Lab Materials: Computer with Visual Studio installed. Procedure: Write a C++ program that will use a "for loop to a table, Write a program to input principle (amount), time and rate (P, T, R) and find Compound Interest. Create a table that goes from 1 year to the time entered showing the principle and interest. Example Input Enter principle (amount): 1200 Enter time: 2 Enter rate: 5.4 Output Compound Interest - 1333.09 Formula to calculate compound interest annually is given by: R 7 CI = P( + 100 Where: Pis the principle amount Tis the time and R is the rate Format the output to 2 decimal places. Deliverables: Please submit a document with your lab results in the appropriate format. For Python programs, this is the .py file. For C++ this is a CPP file. (See lab submission document). Remember that a document without a name will receive a grade of O. Python programs without the proper comments will receive a 0. Please name your file based on lab submission rules. Upload the document to the drop box

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!