PF Assignment 1
PF Assignment 1
Instructions:
Assignment must be submitted handwritten.
Assignment must have a cover page including students registration number, name,
discipline (BSSE, BSAI, BSCS) and section
Copied assignment will be marked 0
Assignment must be submitted in second lecture of week 7
After dead line assignment will not be accepted
You are also required to solution file of your assignment in lab.
Note: In above sample execution 7 and 2 are two random numbers that can be any random
numbers code for random number generation is given below
#include <iostream>
#include <cstdlib> // Include the necessary header for rand() and
srand()
#include <ctime> // Include the necessary header for time()
void main() {
// Seed the random number generator with the current time
srand(static_cast<unsigned>(time(0)));
system("pause");
}