Colour Theme Font Size Options
 
 
 
Exercise 1

Write an Addition Program

Please use Visual Studio for both exercises today.
  1. Write a C++ program in Visual Studio. Name the C++ file ex1_addem.cpp .
  2. The output should be similar to the following. Please enter different numbers to test your program.
    This program adds two integers!
    Please enter the first number:   3
    Please enter the second number:  2
    The sum of the two numbers is:   5
  3. Compile and run ex1_addem.cpp in your IDE and test it with a few different pairs of numbers.
    Be sure to manually compile and run the program in the Console!
  4. Once you are happy with the program output, run it twice and take enough screenshots to capture your results.
    Name your screenshots like this ex1-1.jpeg or ex1-1.png.
    Update the second number if you took multiple screenshots.

Deliverables

  • Include the screenshots of your running program with your submission in UR Courses.