CS602 Assignment no 1 Solution Fall 22

 

CS602 Assignment no 1 Fall 22 Full Solution Code 



#include <graphics.h>

 

#include <conio.h>

 

#include <iostream>

 

using namespace std;

 

int main( )

{

string Subject1;

int Number1;

 

cout << "Enter Subject 1: " ;

cin >> Subject1;

cout << "Enter Numbers of Subject1: " ;

cin >> Number1;

 

string Subject2;

int Number2;

 

cout << "Enter Subject2:" ;

cin >> Subject2;

cout << "Enter Numbers of Subject2:" ;

cin >> Number 2;

 

string Subject3;

int Number 3;

cout << “Enter Subject3: “;

cin >> Subject3;

cout << “Enter Numbers of Subject3: “;

cin >> Number3 ;

 

int gd = DETECT, gmj

 

initgraph(8gd, 8gm, “X:\ \TC\\BGI”);

settextstyle(BOLD_FONT,HORIZ_DIR, 2);

outtextxy(270,0, “BC123456789”);

 

setlinestyle(SOLID_LINE,0,2);

line(90,410,90,50);

line(90,410,590,410) ;

line(85,60,90,50) ;

line(95,60,90,50) ;

line(585,405,590,410);

line(585,415,590,410) ;

 

outtextxy (65,60, “Marks”);

outtextxy(570,420, “Subjects”);

outtextxy (70,415, “0”) ;

 

setfillstyle(SOLID_FILL, RED); bar3d(150,80,200,410, 15, 1);

bar3d(300, 120,350,410, 15, 1); bar3d(450,135,500,410, 15, 1);

getch();

closegraph();

return 0;

}


Click Here to Get Canva Pro Access with Urdu Fonts for lifetime

 Get Canva Pro