Answer:
#include <iostream>
using namespace std;
void PrintPopcornTime(int bagOunces) {
if(bagOunces < 3){
cout << "Too small";
cout << endl;
}
else if(bagOunces > 10){
cout << "Too large";
cout << endl;
}
else{
cout << (6 * bagOunces) << " seconds" << endl;
}
}
int main() {
PrintPopcornTime(7);
return 0;
}
Explanation:
Using C++ to write the program. In line 1 we define the header "#include <iostream>" that defines the standard input/output stream objects. In line 2 "using namespace std" gives me the ability to use classes or functions, From lines 5 to 17 we define the function "PrintPopcornTime(), with int parameter bagOunces" Line 19 we can then call the function using 7 as the argument "PrintPopcornTime(7);" to get the expected output.
Don't repeat yourself (DRY, or sometimes do not repeat yourself) is a principle of software development aimed at reducing repetition of software patterns,[1] replacing it with abstractions or using data normalization to avoid redundancy.
I’m sure the answer is correct and it is below
“ A catapult works because energy can be converted from one type to another and transferred from one object to another. ... This energy is stored in the launching device as potential, or stored, energy. The catapult you are about to make uses elastic potential energy stored in a wooden stick as you bend it.”
Answer:
the internet is a need everywhere to do work and games systems is a technology that is just a want.
Explanation:
Answer:
hi
Explanation:
the answer would be I dont know