Consider the following program:
#include
using namespace std;
void func1();...
Computers and Technology, 04.04.2020 06:05 madiburnss
Consider the following program:
#include
using namespace std;
void func1();
void func2();
int main()
{
int num;
cout << "Enter 1 or 2: ";
cin >> num;
cout << endl;
cout << "Take ";
if (num == 1) func1();
else if (num == 2) func2();
else cout << "Invalid input. You must enter a 1 or 2" << endl;
return 0;
}
void func1()
{
cout << "Programming I." < }
void func2()
{
cout << "Programming II." < }
1. What is the output if the input is 1?
2. What is the output if the input is 2?
3. What is the output if the input is 3?
4. What is the output if the input is -1?
Answers: 1
Computers and Technology, 21.06.2019 17:30, staz13wiggins
How many pairs of chromosomes do human body cells contain?
Answers: 2
Computers and Technology, 22.06.2019 08:00, luclaymom805
Aplan to budget time for studying and activities is referred to as a study routine. study habits. study skills. a study schedule.
Answers: 1
Computers and Technology, 23.06.2019 13:00, torresnoemi899
Which of the following statements is false? a. a class can directly inherit from class object. b. if the class you're inheriting from declares instance variables as private, the inherited class can access those instance variables directly. c. a class's instance variables are normally declared private to enforce good software engineering. d. it's often much more efficient to create a class by inheriting from a similar class than to create the class by writing every line of code the new class requires.
Answers: 3
Computers and Technology, 23.06.2019 15:00, ryleerose255
Idon’t understand the double8 coding problem. it is java
Answers: 1
Biology, 30.05.2020 17:59
Mathematics, 30.05.2020 17:59
Social Studies, 30.05.2020 17:59
Mathematics, 30.05.2020 17:59