forked from CISC2200-Fall-24-Fordham/CS2-Review
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRectangle.cpp
More file actions
38 lines (35 loc) · 1.11 KB
/
Copy pathRectangle.cpp
File metadata and controls
38 lines (35 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include "Rectangle.h"
// For more on Doxygen comments, see:
// https://github.com/cme212/course/blob/master/notes/lecture-03/specifications.md
namespace ds {
/**
* @brief Calculate the area of the rectangle.
*
* @return int The area of the rectangle.
*/
int Rectangle::area() const {
// TODO: Implement the area function.
}
/**
* @brief Print the rectangle.
*
*/
void Rectangle::print() const {
// TODO: Implement the print function.
// * BASIC:
// * Print the width and height of the rectangle
// * BONUS:
// * Print the shape of the rectangle using the width and height
// * For example, if the width is 3 and the height is 2, print:
// * ---
// * ---
// * For example, if the width is 2 and the height is 3, print:
// * --
// * --
// * --
// * Try:
// * Adding color (random color per character?)
// * Adding a border / empty middle
// * Adding a fill
}
} // namespace ds