Thursday, March 28, 2013

Written Homework 5

Text book:
page 299 problem 1,2,3,4
page 300 problem 8,9,10,11,12,13

You should submit your answer through the Google form which is sent to you by Email.

Due: next Wednesday Class time 04/03/13 10:10



Wednesday, March 20, 2013

Project 6: Prime Number output

Write a void function that uses two nested for loops and the modulus(%) operator to detect and print to a specified output file, the first n prime integers. Recall that a prime number is a number that is evenly divisible only by 1 and itself.
Hint: the function prototype is : void primeGen(int n, ofstream& file);
and a precondition is that file is defined.

Due: next Wednesday, 3/27/13 midnight