Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Choose from the options the correct order of instructions 1 #include 2 #include 3 using namespace std; 4 5 int inputvalues(string); 6 char input(string) 7
Choose from the options the correct order of instructions 1 #include 2 #include 3 using namespace std; 4 5 int inputvalues(string); 6 char input(string) 7 void calculate(char); 8 void add(int, int); 9 void sub(); 10 int mul(int, int), 11 int div) 12 int nl,n2; 13 char op 14 15 int main() { 16 n1=inputValues("first"); 17 n2-inputValues ("second") 18 op-input("Enter operator? +1-1/1* "); 19 calculate(op); 2e return 13 21 21 22 int inputValues(string s){ cin>>val; return val; char_[2] (3) cout> return ci 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 (4) calculate(char ) switch() { case '+': add(n1, n2); break; case sub(); break; [5]. 42 43 .(?)K cout
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started