Question: Lab 15 For Loop with Lists Purpose: In this lab you will use for loops to iterate over a range, calculating squares and cubes. Learning
Lab 15 For Loop with Lists Purpose: In this lab you will use "for" loops to iterate over a range, calculating squares and cubes. Learning Objectives: Use for loops Implement the range command Use lists Lab Materials: Computer with Visual Studio installed. Procedure: Write a C++ program that will use a 'for' loop to a table. Create a table that has numbers, their squares, and cubes from 0 to a number entered by the user. Create another table that has the same information in reverse order. Print both tables. Deliverables: Please submit a document with your lab results in the appropriate format. For Python programs, this is the .py file. For CH 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
Get step-by-step solutions from verified subject matter experts
