New game
Download
Get Academic Plan
Share game
Fill in the Blanks
Fill in the Blanks

Programming

Integrate it into your platform

You can integrate the game into an LMS compatible with LTI 1.1 or LTI 1.3 such as Canvas, Moodle, or Blackboard. This way, the scores will be automatically saved into the platform’s gradebook.
Download
You have exceeded the maximum number of games you can integrate into Google Classroom with your current Plan.

To integrate as many games as you want in Google Classroom, you need an Academic Plan or a Commercial Plan.

You have exceeded the maximum number of games you can integrate into Microsoft Teams with your current Plan.

To integrate as many games as you want in Microsoft Teams, you need an Academic Plan or a Commercial Plan.

Downloading games is an exclusive feature for users with an Academic Plan or a Commercial Plan.

Get your Academic Plan or your Commercial Plan now and start integrating your games into your LMS, website or blog.

If you wish, you can download a demo game here and test its integration:

Programming

Fill in the Blanks

Played 5

About this activity

Practice Programming

Created by

United States

Download the paper version to play

Make your own free game from our game creator
Compete against your friends to see who gets the best score in this game

Top Games

%
Anonymous
Anonymous
%
%
%
You have exceeded the maximum number of games you can print with your current Plan.

To print as many games as you want, you need an Academic Plan or a Commercial Plan.

Print your game
Programming
 

Fill in the Blanks

ProgrammingOnline version

Practice Programming

by Liz Smith
1

square initSide #include side is void side const operator> side int s1 GetSode endl initSide side bool namespace side Square return s1 SetSide The s2 cout area of GetArea

Purpose : Overload operators for a class type as inline number functions


/ / for standard i / o
using std ; / / reserve library objects for standard use

/ / declare the Square class type to model a square
class Square
{
public :
Square ( ) { = 1 ; } / / the default constructor that initialize the side to 1
Square ( ) { = ; } / / the explicit constructor that initialize the side to a parameter
int ( ) { return side ; } / / get the side of the square
( int newSide ) { side = newSide ; } / / change the side of the
int GetArea ( ) const { return * ; } / / get the area of the square
( Square rhs ) const { > rhs . side ; } / / the greater operator
private :
int side ; / / the side of a square
} ;

int main ( )
{
, / / declared ( created ) by us the default constructor
s2 ( 3 ) ; / / declare ( created ) by using the explicit constructor
/ / display the area of s1 and s2
cout << " " << s1 . GetArea ( ) << endl ;
<< " The area of s2 is " << . ( ) < s2 )
cout << " s1 is bigger than s2 " < ( s2 ) )
else ;
cout << " s1 id not bigger than s2 " << ;

/ / successfully done
return 0 ;
}

Are you sure you want to leave the page?

If you leave the page, you will lose your game progress.