BOX
Thursday, September 30, 2010
Thursday, September 23, 2010
Saturday, September 18, 2010
TECHNO-ED
RED ALERT
msg about CG LAB AND VIVA
Wednesday, September 15, 2010
15-09-2010 COMPILER LAB WORK
#include
int lookahead;
void main(){
lookahead = getchar();
do {expr();}
while(lookahea!=0);}
void term(){
if(isdigit(lookahead)){
putchar(lookahead);
match(lookahead);}
elseerror();}
void error(){
printf("syntexerror\n");
exity(1);}
void expr(){
term();
while(1){
if(lookahead=='+')
{match('+');
term();
putchar('+');
}
else if (lookahead=='-')
{
match('-');
term();
putchar('-');
}
else break;
}
}
void match(int t)
{
if(lookahead == t )
lookahead =getchar();
elseerror();
}
Tuesday, September 14, 2010
MID TERM SHEDULE OF COMPUTER GRAPHICS SECTION-A
Instructions:
1. Cheated/Copied assignments may make you ineligible to appear in final exam.
2. Absence in viva is not acceptable.
3. All of your work should be in folder named with your name and seat number.
4. CG Projects must be saved as whole running project to save time.
5. Topics: CG Chapters 1, 2 3, 10 + Lectures + Labs.
6. Maximum 20 marks for CG will be finalized at this stage.
7. Following Grading criteria will be followed:
Regular Lab Attendance & Lab Performance | Satisfactory | 3 marks |
Complete running Labs/File + c ode | Satisfactory | 3 marks |
2D Assignment | Satisfactory | 6 marks or extra |
Numerical | Handwritten Neat & proper solution. | 4 marks |
Extra class assignments like teardrop, Ogee arc, case study 2.6 | Soft copy for coding assignments | Marks depends on submission |
Viva |
| 4 marks |
Total = 3+3+6+4+4 = 20 (plus extra marks depending on your submissions)
Schedule for CG Section A:
Seat No. Range | count | Day- Date(Time) |
B07101001 ------- B07101040 | 12 | Tuesday - 21st Sept 2010 (8:30 ----11:00 pm) |
B07101041 ------- B07101070 | 10 | Wednesday - 22nd Sept 2010 (8:30 ----10:30 pm) |
B07101071 ------- B07101110 B07101111 ------- B07101121 | 10 8 | Tuesday - 28th Sept 2010 (8:30 ----11:00 am) Tuesday - 28th Sept 2010 (12:30 ----2:00 am) |
All BS09XXXX | 9 | Wednesday - 29th Sept 2010 (8:30 ----10:30 pm) |
All BS06XXXX | 6 | Thursday - 30th Sept 2010 (10:30 -----12:30 pm) |
Wednesday, September 8, 2010
NEWS ALERT ::MADAM HUMERA TARIQ`s MESSAGE
Miss Humera Tariq announced today about CG and Simulation labs :Both Labs divided into 2 parts* The 1st part of CG will be conducted from 21st September ( of 1st 30 students) it cover up 25-30 marks.& The 1st part of Simulation will probably be start from 24th September.The GRADING CRITERIA for Both will be:1. Lab Attendance + Lab performance( about 3marks)2. Complete Lab file in soft copy ( Running code of CG ) & simulation Lab file should be in hard copy also.3. 2D Assignment of CG.4. Viva5. Neat & proper Numerical Solutions ( Hand Written) of all the numericals discussed or given in class ( Both of CG & simulation)
Saturday, September 4, 2010
SIMULATION LAB 5
#include
using namespace std;
int main(void)
{
cin.get();//pause
return 0;
}//end main
*/
TASK 2 add RNG.h
#include
#include
#include
//wrapper class to the built in C rand() function
class RNG
{
public:
RNG();
~RNG();
// the point of using const on a parameter to a function should be to let your compiler know
// that the parameter shouldnot be modified during your program
// this alllow your to keep your code safe and bug-free
int generate(const int &lower, const int & upper );
double generate(const double & lower,const double &upper);
protected:
time_t seconds; //seed value
};
RNG::RNG()
{ // the constructor seeeds the RNG number generator that is in
time(&seconds); //get value from system clock and place in seconds variable
srand((unsigned int) seconds);
}
RNG::~RNG()
{
}
int RNG::generate(const int &lower, const int &upper)
{
return((rand()%(upper-lower))+lower); // Genereate a number between 'lower' and 'upper'
}
double RNG::generate(const double &lower, const double&upper)
{
return ((double) rand()/((RAND_MAX)+1.0)) * (upper-lower)+lower;
}
//TASK 3 RNG in main
#include
#include "RNG.h"
using namespace std;
int main(void)
{
RNG r ;
for(int i=0; i<10;i++)//test simple int random
cout << r.generate(0,12)<
cout <
cin.get(); //pause
return 0;
}
//end main
NEWS ALERT
Networking ka midterm Eid ka baad wali class mien hoga .
ARSALAN SHAHID
BSCS -III SECTION A