This commit is contained in:
Leon Wilzer 2022-11-06 22:38:48 +01:00
parent 1ca9ed617f
commit 3b81665ba4
5 changed files with 6 additions and 3 deletions

3
.gitignore vendored
View File

@ -34,3 +34,6 @@
# VSC
.vscode
# build
build

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -17,19 +17,19 @@ int main()
//std::cout << "Please specify the price of a single pizza in cents: ";
//std::cin >> price_single;
std::cout << "Please specify the diameter of a single Pizza in cm: ";
std::cout << "Please specify the diameter of a single pizza in cm: ";
std::cin >> diameter_single;
//std::cout << "Please specify the price of a family pizza in cents: ";
//std::cin >> price_family;
std::cout << "Please specify the diameter of a family Pizza in cm: ";
std::cout << "Please specify the diameter of a family pizza in cm: ";
std::cin >> diameter_family;
area_single = pi*diameter_single*diameter_single/4;
area_family = pi*diameter_family*diameter_family/4;
family_to_single_quotient = area_family/area_single;
std::cout << "The Family Pizza has " << family_to_single_quotient << " times more area than a single pizza.\n";
std::cout << "The family pizza has " << family_to_single_quotient << " times more area than a single pizza.\n";
std::cout << "Please specify the amount of each variety.\n Enter \"DONE\" in caps to finish.\n";
while(ordering)