diff options
| author | Andrei F <[email protected]> | 2022-10-19 22:12:39 -0700 |
|---|---|---|
| committer | Andrei F <[email protected]> | 2022-10-19 22:12:39 -0700 |
| commit | 9359d4fa0ad65edee8095fcaa306eb48467b1935 (patch) | |
| tree | c4b847f9f70e937e81762659bf80fa6aceceb99e /BlankConsoleLab/CST-116-Project1-Florea.cpp | |
| parent | Added output part 2 (diff) | |
| download | cst116-lab1-florea-9359d4fa0ad65edee8095fcaa306eb48467b1935.tar.xz cst116-lab1-florea-9359d4fa0ad65edee8095fcaa306eb48467b1935.zip | |
Added pseudo code
Diffstat (limited to 'BlankConsoleLab/CST-116-Project1-Florea.cpp')
| -rw-r--r-- | BlankConsoleLab/CST-116-Project1-Florea.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/BlankConsoleLab/CST-116-Project1-Florea.cpp b/BlankConsoleLab/CST-116-Project1-Florea.cpp index bde2914..5c3fb96 100644 --- a/BlankConsoleLab/CST-116-Project1-Florea.cpp +++ b/BlankConsoleLab/CST-116-Project1-Florea.cpp @@ -20,7 +20,7 @@ int main() float width = 0; float length = 0; float area, ratio; - double gravitatonal_pull; + double gravitational_pull; // This will take in input for width and length in the range of 1, 400 inclusive. If it's outside the range, // then the loop will repeat until given the correct values. @@ -45,8 +45,8 @@ int main() "it is calculated to weigh: " << mass << " kg/meter^2" << endl; - gravitatonal_pull = mass * 9.8; - cout << "Gravitational pull on your kite is: " << gravitatonal_pull << " (mass * 9.8 N/kg)" << endl; + gravitational_pull = mass * 9.8; + cout << "Gravitational pull on your kite is: " << gravitational_pull << " (mass * 9.8 N/kg)" << endl; ratio = width / length; // Finds aspect ratio of kite |