I don't know why you needed to ask this but the answer is True
Answer:
candyCost = int(input("How much is the candy?"))
Explanation:
candyCost = input("How much is the candy?") → By default, this how you get input and store the value. And it is stored as a string
candyCost = str(input("How much is the candy?")) → This also gives you a string to store
candyCost = float(input("How much is the candy?")) → This gives you a float number, decimal number, to store
candyCost = int(input("How much is the candy?")) → This gives you an integer number, a non-decimal
a search engine is a tool that helps you reaserch information on the internet, because it is what you use to type in the info you want to learn more about
Answer:
The method in C++ is as follows:
double calcPyramidVolume(double baseLength, double baseWidth, double pyramidHeight){
double baseArea = calcBaseArea(baseLength, baseWidth);
double volume = baseArea * pyramidHeight;
return volume;
}
Explanation:
This defines the calcPyramidVolume method
double calcPyramidVolume(double baseLength, double baseWidth, double pyramidHeight){
This calls the calcBaseArea method to calculate the base area of the pyramid
double baseArea = calcBaseArea(baseLength, baseWidth);
This calculates the volume
double volume = baseArea * pyramidHeight;
This returns the volume
return volume;
}
<em>See attachment for complete program that include all methods that is required for the program to function.</em>