anonymous
  • anonymous
Write a main program that prompts the user for two integer numbers (num1 and num2). Then, the main program calls the function doIt with num1 and num2 as parameters. The main program will finally print the content of num1 and num2 on the screen.
Computer Science
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
schrodinger
  • schrodinger
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
what im confused
anonymous
  • anonymous
well i have this question and i can't figure it out
anonymous
  • anonymous
Let’s consider the following function: void doIt(int& a, int b) // Please not the & symbol { a = a * 2; b = b * 2 } Write a main program that prompts the user for two integer numbers (num1 and num2). Then, the main program calls the function doIt with num1 and num2 as parameters. The main program will finally print the content of num1 and num2 on the screen.

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
I use the program language visual basic.Net What will after ''//'' symbol, it is the annotation for you to easily understand what the program is doing at a particular line. Dim num1, num2 as integer // the program shall recognise those variables as whole numbers num1=-1 num2=-2 // I set those values into a rogue value Number: InputBox(''Input first number''_''num1'') Number: InputBox(''Input second number''_''num2'') FUNCTION Dolt (num1, num2 as integer) as integer // The function dolt is called to take parameters num1 and num2 which are as integer and the output of the function has to be in integer form. MsgBox: ('' The values input are'' & ''num1'' & ''num2''_ ''Answer'')// to output num1 and num2 ENDFUNCTION

Looking for something else?

Not the answer you are looking for? Search for more explanations.