Sol/.vscode/settings.json
{
"files.associations": {
"iostream": "cpp"
}
}
Sol/info.txt
Hey, I am pulkit aggarwal expert which did your assignment. If you like my work and satisfy with my work you can connect with me directly.
You can just drop a mail or text me on whatsapp me.
Email -
[email protected]Mobile No - +918950481450
Sol/machine-problem-1-ifnwcpjb.docx
#include
#include
#include
#define PI 3.14159
using namespace std;
int main(void)
{
double pI= 3.14159;
cout
fixed
showpoint
setpercision(15) ;
cout
"length is"
length
endl;
function to find length,double square_area,double circle_area,double cube_volume,cube volume rounded up, lengthInMeters, user inputs length (in centimeters) as a floating point value
cout
"Geometry formulas by Jessica Rice\n";
cout
"Enter one floating point number for length:";
cin
length;
centimeters to meters
lengthInMeters=1000/100.00;
cout
"The Entered number is "
length
" " cm or "
(lengthInMeters)"
" m."
endl;
function to find square_area (length squared)
double square_area=lengthInMeters*lengthInMeters;
function to find circle_area(radius squared times PI)
double circle_area=(lengthInMeters*lengthInMeters)*PI;
function to find cube_volume (length cubed)
double cube_volume=lengthInMeters*lengthInMeters*lengthInMeters;
input echoe
cout
"Area of square"
"(double square_area)
"; sq.m"
endl;
cout
"Area of Circle"
"(double circle_area)
"; sq.m"
endl;
cout
"Difference is"
"(double square_area-double circle_area)"
; "sq.m."
endl;
cout
"Cube volume rounded up is "
ceil"(cube_volume)
" cu. m"
endl;
cout
"cube volume rounded down "
floor"(cube_volume)
"cu.m"
endl;
return();
}
Sol/machine-problem-1-questions-w0m
f0u-xklembzk.doc
Skills Needed: cin, cout, constants, arithmetic expressions, rounding, int main, meaningful variable names, spacing, indentation, documentation, output.
Computing Basic Geometric Formulas
Write a program to compute answers to some basic geometry formulas. The program prompts the user to input a length (in centimeters) specified as a floating point value. The program then echoes the input and computes areas of squares and circles and the volume of a cube. For the squares, you will assume that the input length value is the length of a side. For the circles, this same value becomes the diameter. Use the meter value input to calculate the results in square (or cubic) meters and then print the answers in square (or cubic)...