Write a simple program to validate passing by value and passing by reference

For this assignment, prepare two related programs as .cpp files and submit them in a single zipped file.

Program #1 Instructions:

  1. Write a simple program to validate passing by value and passing by reference.
  2. Initialize a variable and display its value.
  3. Pass the variable by value to a function. Change the value of the variable in the pass by value function. Display the modified value inside the function.
  4. After the pass by value function returned, display the value again in the main function.
  5. Pass the same variable, now passing by reference to another function. Change the value of the variable in the pass by reference function. Display the modified value inside the function.
  6. After the pass by reference function returned, display the value again in the main function
find the cost of your paper

I need help for homework

Question Description I’m studying for my Calculus class and don’t understand how to answer this. Can you help me study? I need someone to help me with my calculus 2….

Humanities Question

Question Description I don’t understand this Humanities question and need help to study. Write an essay of more than three-hundred fifty words/one page plus on the following topic to display….

Writing Question

Question Description I’m working on a Writing question and need guidance to help me study. Hello! Thanks for helping me with my politics essay last time! I have received the….