Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

tps://dccod. blackboard.com/webapps/blackboard/content/listContentjsp?course ids 223020 1cor Lab 9 te a class called Square using separate h and cpp files. Squares look something like this when drawn

image text in transcribed
tps://dccod. blackboard.com/webapps/blackboard/content/listContentjsp?course ids 223020 1cor Lab 9 te a class called Square using separate h and cpp files. Squares look something like this when drawn 2. Add a constructor that takes the size as a parameter. Store the size in a class variable 3. Add a Draw method that draws the square. The draw method does not take any parameters 4. Create a main) that instantiates a square of size 5 and draws it 5. Also instantiate a square of sze 8 and draw it Optional Chalenge Create a class called Triangle that draws triangles of a specified height. Here is a triangle of height 4 Checklist 1. Project/solution named correctly 2 Correct comments at top 3 Consistent indentation (Use Edit/Advanced/Format Document) 4 Good vaniable names 5 Overall neat organization 6 Comments in code explain what's being done 7 Correct division of code into h and cpp fles 8 Use of #pragma once in h ties (or #mden 9 #rciude "si darm" in cpp files (or suppress pch)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Which are non projected Teaching aids in advance learning system?

Answered: 1 week ago