% Homework 2

% 1. Place the single expression for computing the number of grains of
% wheat in place of the zero on the next line:
numGrains = 0;
fprintf('Number of wheat grains: %d\n', numGrains);

% 2. Place your plotting commands below.  Assign values to xl, xr, yb, yt,
% (e.g. xl = -.5; xr = .5;) and then create a plot of the square using
% those variables such that the square has a reasonable margin of space 
% around it in the plot.


% 3. 
N = [1, 1, 1, 1];
a = [5, 5, -5, -5];
b = [3, -3, 3, -3];
% Write your Boolean expression in place of the 0 below.
% It should be defined in terms of the given N, a, and b variables.
exp = 0;
fprintf('Boolean output: ');
disp(exp);

% 4.  Write your code to compute the number of leap years below, assigning
% the result to the variable numLeapYears before the given fprintf
% statement.

numLeapYears = 0;
fprintf('Number of leap years: %d\n', numLeapYears);