// CST116_Project1_BROKEN_Schroeder.cpp : This file contains the 'main' function. Program execution begins and ends there. // Author: Benjamin Schroeder // Date: 10/13/2021 9:00pm // Email: benjamin.schroeder@oit.edu // /*Documentation of the meetings with your partner: when, where and what you discussed. Email: Wed. 10/12/2021 9:00p Topics discussed: -What documentation is needed psuedocode, actual code, errors, etc -How to submit our documentation -How to submit our code (working copy, error copy, corrected partner's, etc.) Email: Fri. 10/15/2021 8:34p Topics discussed: -Corresponding by swapping files via email. -Trouble getting Microsoft computer files to open on Mac - */ /*Agile Questions (before I started work on this project): * What SPECIFIC task will you complete in the next half hour? * -Make requested errors in code for my project partner * What do you know about this SPECIFIC task? * -I know what a syntax error is * -I know what a logic error is * What DON'T you know about this SPECIFIC task? * -I don't know how well I will hide my errors */ /*Psuedocode: * Get Height of cylinder * Get Radius of cylinder * Compute Volume = pi*r^2*height * Output "The volume of this cylinder is: " Volume; */ // ACTUAL CODE #include #include using namespace std; int main() { // Initialize variables float height; float radius; float pi = 3.141592654; Float volume; // Ask for dimensions of the cylinder cout << "******************************************************************"; cout << "\n This program will tell you the volume of a cylinder \n"; cout << "******************************************************************\n"; cout << "\n\tPlease enter the radius of the cylinder (cm): "; cin >> radius; cout << "\n\tPlease enter the height of the cylinder (cm): "; cin >> height; // Compute the volume of the cylinder volume = pi * radius * height; // Output to user cout << "\n\n\tThe volume of this cylinder is: " << volume << " cm^3\n\n\n "; return 0; }