subject

Write a program that takes an integer from the user via the keyboard and passes the integer by Reference to a void method or function. The method or function should determine if the number is odd or even. If the integer is even the method adds 2 to the number and keeps it even. If the integer is odd the method adds five to the number to make it even. Once the program returns to main, output to the screen the new number.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 16:30
How to do this programming flowchart?
Answers: 3
question
Computers and Technology, 24.06.2019 23:00
Why is it preferable to code web pages in html format? a. to create more lines code b. to apply general formatting rules c. to display properly as search results in all browsers d. to add meaning to the document
Answers: 1
question
Computers and Technology, 25.06.2019 05:30
In our new car, we were able to drive 30 miles in a half an hour. from this information, we can determine the car's a. acceleration. b. velocity. c. speed. d. direction.
Answers: 1
question
Computers and Technology, 25.06.2019 06:10
In your pest busters game, how does player 2 move the ship_2 object? a pressing the w and s keys b. pressing the up arrow and down arrow keys c. moving the mouse from side to side d. moving the mouse up and down select the best answer from the choices provided
Answers: 3
You know the right answer?
Write a program that takes an integer from the user via the keyboard and passes the integer by Refer...
Questions
question
Biology, 24.08.2020 18:01
question
Health, 24.08.2020 18:01
question
Chemistry, 24.08.2020 18:01
question
Mathematics, 24.08.2020 18:01
Questions on the website: 13722360