idk
This commit is contained in:
parent
1ca9ed617f
commit
3b81665ba4
3
.gitignore
vendored
3
.gitignore
vendored
@ -34,3 +34,6 @@
|
||||
|
||||
# VSC
|
||||
.vscode
|
||||
|
||||
# build
|
||||
build
|
||||
|
BIN
build/pizza
BIN
build/pizza
Binary file not shown.
BIN
build/sheet0
BIN
build/sheet0
Binary file not shown.
BIN
build/sheet01
BIN
build/sheet01
Binary file not shown.
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user