Comp 170

Homework: Area of Rectangle

Points: 10

Goals

  1. Verify that the student can create a c++ console project in Visual Studio.
  2. Verify that the student can compile their source code.
  3. Verify that the student can perform basic input and output of integers.

Assignment

Write a c++ program with the following functionality.  Compile, run and verify your program.

           

  1. Ask the user for two integers. (One to represent the height of a rectangle, one to represent the width of the rectangle)
  2. Display the area of the rectangle to the user.