Professional Documents
Culture Documents
CS602-Assignment No.1 100% Accurate Solution by M.junaid Qazi
CS602-Assignment No.1 100% Accurate Solution by M.junaid Qazi
Please Carefully Read the Following instructions before attempting the Assignment
Solution
NOTE
Don't copy-paste the same answer.
Make sure you can make some changes to your solution file before submitting copy
paste solution will be marked zero.
If you found any mistake then correct yourself and inform me.
Before submitting an Assignment GDB Check your assignment Requirement file.
#include <iostream>
#include <graphics.h>
#include <string>
using namespace std;
int main() {
int gd = DETECT, gm;
initgraph(&gd, &gm, (char*)"C:\\Turboc3\\BGI");
CONTACT ON WHATSAPP
03074960034
int maxMarks = 100.0; // Maximum marks for each subject (assuming 100)
// Calculate percentages
float percentA = (float)marksA / maxMarks * 360;
float percentB = (float)marksB / maxMarks * 360;
float percentC = (float)marksC / maxMarks * 360;
setfillstyle(SOLID_FILL, RED);
pieslice(x, y, startAngle, startAngle + percentA, 100);
setfillstyle(SOLID_FILL, GREEN);
pieslice(x, y, startAngle + percentA, startAngle + percentA + percentB, 100);
setfillstyle(SOLID_FILL, BLUE);
pieslice(x, y, startAngle + percentA + percentB, startAngle + percentA + percentB + percentC, 100);
delay(3000);
getch();
closegraph();
return 0;
}
CONTACT ON WHATSAPP
03074960034
Different Sample of OUTPUT:
CONTACT ON WHATSAPP
03074960034
CONTACT ON WHATSAPP
03074960034
Every Assignment GDB is change due to unique Student ID so Don’t Copy
That is truly perfect step by step idea solution get help easily.
By The Way if there is any Mistake you found, correct it yourself First Then Submit.
THANKS
M.juniad Qazi
WHATSAPP
+923074960034
CONTACT ON WHATSAPP
03074960034