Skip to content
  • 0 Votes
    2 Posts
    866 Views
    Wajahat AliW
    Solution.cpp #include <graphics.h> // driver code int main() { // gm is Graphics mode which is a computer display // mode that generates image using pixels. // DETECT is a macro defined in "graphics.h" header file int gd = DETECT, gm; int left = 200, top = 20; int right = 430, bottom = 460; // initgraph initializes the graphics system // by loading a graphics driver from disk initgraph(&gd, &gm, ""); setcolor(WHITE); settextstyle(DEFAULT_FONT, HORIZ_DIR, 2); outtextxy(10, 20, (char*)"BC123456789"); setcolor(WHITE); setfillstyle(SOLID_FILL,WHITE); rectangle(left, top, right, bottom); bar(200,20,430,460); setcolor(LIGHTRED); setfillstyle(SOLID_FILL,LIGHTRED); circle(left+100,top+280,50); floodfill(left+100,top+280,LIGHTRED); setcolor(LIGHTGREEN); setfillstyle(SOLID_FILL,LIGHTGREEN); circle(left+160,top+340,30); floodfill(left+160,top+340,LIGHTGREEN); setcolor(LIGHTBLUE); line(left,top+280,right,bottom-20); setcolor(LIGHTGREEN); line(left,top+300,right,bottom); setcolor(LIGHTRED); line(left,top+320,right-30,bottom); getch(); // closegraph function closes the graphics // mode and deallocates all memory allocated // by graphics system . closegraph(); } Download Complete Solution
  • 0 Votes
    4 Posts
    2k Views
    zareenZ
    @zareen 100% Solution Code #include <iostream> using namespace std; /* The Student class */ class Student { private: string firstname, lastname, VUID; int marks; Student *nextStudent; public: // constructor of Student class to initialize data members of class Student(){ VUID = ""; marks = 0; firstname = ""; lastname = ""; nextStudent = NULL; } // Student class method to set VU ID of Student void setVUID(string val){ VUID = val; }; //Student class method to get VU ID of Student string getVUID(){ return VUID; }; // Student class method to set first name of Student void setFirstName(string val){ firstname = val; }; //Student class method to get first name of Student string getFirstName(){ return firstname; }; // Student class method to set last name of Student void setLastName(string val){ lastname = val; }; //Student class method to get last name of Student string getLastName(){ return lastname; }; //Student class method to set the Marks of Student void setMarks(int val) { marks = val; }; // Student class method to get the Marks of Student int getMarks() { return marks; } //Student class method to point current Student to next Student void setNext(Student *nextStudent) { this->nextStudent = nextStudent; } // Student class method to get memory address where pointer is pointing Student *getNext() { return nextStudent; } }; /* The List class */ class List { private: Student * head; Student * current; public: // constructor of list class to initialize data members of class List() { head = new Student(); head->setNext(NULL); current = NULL; } // list class method to add Students into list void add() { Student *newStudent = new Student(); int loc_marks = 0; string loc_vuid = "", loc_fname = "", loc_lname = ""; cout<<"\nEnter VU ID: "; cin>>loc_vuid; newStudent->setVUID(loc_vuid); cout<<"Enter Marks: "; cin>>loc_marks; newStudent->setMarks(loc_marks); cout<<"Enter First Name: "; cin>>loc_fname; newStudent->setFirstName(loc_fname); cout<<"Enter Last Name: "; cin>>loc_lname; newStudent->setLastName(loc_lname); if(head->getNext() == NULL){ newStudent->setNext(NULL); head->setNext(newStudent); current = newStudent; } else{ Student *temp = head; while(temp->getNext() != NULL && temp->getNext()->getMarks() >= loc_marks){ temp = temp->getNext(); } current = temp; newStudent->setNext(current->getNext()); current->setNext( newStudent ); current = newStudent; } }; // list class method to get the information of Student void getInfo() { if (current != NULL){ cout<<"VU ID: "<<current->getVUID()<<endl; cout<<"Marks: "<<current->getMarks()<<endl; cout<<"First Name: "<<current->getFirstName()<<endl; cout<<"Last Name: "<<current->getLastName()<<endl<<endl; } }; // list class method to move current to next Student bool next() { if (current == NULL){ return false; } current = current->getNext(); }; // frient function to list class to show all students in the list friend void showStudents(List list){ Student* savedCurrent = list.current; list.current = list.head; for(int i = 1; list.next(); i++){ list.getInfo(); } list.current = savedCurrent; }; }; main() { int input = 0; List lst; while(input != -1) { cout<<"1. To Add New Student in Ranking"<<endl; cout<<"2. To Display Ranking"<<endl; cout<<"3. To Close"<<endl<<endl; cout<<"Enter Your Choice: (1, 2 or 3) "; cin>> input; if(input == 1) { lst.add(); cout<<"Student's information saved successfully.\n"; } else if(input == 2) { cout<<"\nRanking Chart"<<endl; showStudents(lst); return 0; } else { return 0; } } }
  • 0 Votes
    2 Posts
    1k Views
    zareenZ
    EDU654 Assignment 1 Solution & Discussion Fall 2020 Addressing Problems of Learning through Pedagogy and technology (EDU654) Total Marks: 20 Instructions: Late assignments will not be accepted. If the file is corrupt or problematic, it will be marked zero. Plagiarism will never be tolerated. Plagiarism occurs when a student uses work done by someone else as if it was his or her own; however, taking the ideas from different sources and expressing them in your own words will be encouraged. No assignment will be accepted via e-mail. The solution file should be in Word document format; the font color should be preferably black and font size should be 12 Times New Roman. Attempt all the given questions: If you are using discovery based learning, then what would be the role of teacher in the classroom? (5 marks) How can a teacher integrate the technology with pedagogy in the classroom? Give an example. (5 marks) Please share an example of how prior knowledge of students affects their learning. You can chose any subject and grade level. (10 marks)
  • 0 Votes
    5 Posts
    1k Views
    zaasmiZ
    @zaasmi said in MGT301 GDB 1 Solution and Discussion: As per the given case, which “ONE” of the following three demand situations do you think “Dettol” is currently facing and which strategies you think it should immediately employ to retain its target customers. Full Demand. Where demand is equal to supply Irregular Demand. Sometime increase the demand and sometime enhance supply but not equal Overfull Demand. Where demand is too much but not supply to more
  • 0 Votes
    2 Posts
    1k Views
    Ganza NadiG
    https://youtu.be/DSkQVScDH5s
  • 0 Votes
    2 Posts
    537 Views
    cyberianC
    https://youtu.be/BZinQLFv5KQ
  • 0 Votes
    4 Posts
    576 Views
    zaasmiZ
    @Maheen-Mughal please share gdb quiz
  • 0 Votes
    1 Posts
    312 Views
    No one has replied
  • 0 Votes
    3 Posts
    1k Views
    cyberianC
    https://youtu.be/htolGBci94U
  • 0 Votes
    1 Posts
    201 Views
    No one has replied
  • 0 Votes
    7 Posts
    2k Views
    Aqsa FarhatA
    @Bibi-Shamshad dear on (vu assignment solution vu ) youtube channal name answer is there
  • 0 Votes
    4 Posts
    849 Views
    zaasmiZ
    @zaasmi said in ECO403 Assignmnet 1 Solution and Discussion: Requirement # 3: Suppose the economy of Bangladesh produces only two goods; Wheat and apples. Price and quantity of wheat and apples has been given in table no.3 for the years 2013 and 2014. Calculate the following by using given information. a. Nominal GDP for the year 2014 b. Real GDP for year 2014 by taking 2013 as base year Table no.3: (Marking scheme: 2 + 2) Nominal GDP Price x Quantity + … =10 x 200 +15 x 110 =3650 Real GDP Base Price x Quantity + … =7 x 200 +11 x 110 =2610
  • 0 Votes
    3 Posts
    4k Views
    zaasmiZ
    PAK301 Assignment 1 Solution Spring 2021 Question No 1 Do you think that Two Nation Theory became the basis of creation or °Pakistan? Justify your Answer with five relevant points. Solution The two-nation theory is the basis of the creation of Pakistan. The Two-Nation Theory served as the basis of demand for Pakistan by the Muslims in British India. There are two major nations in British India. The Muslims are not a community but a Nation with a distinctive history, heritage, culture, civilization, and future aspirations. 5 Relevant Points: The Muslims wanted to preserve and protect their distinct identity and advance their interests in India. They wanted to order their lives in accordance with their ideas and philosophy of life without being overwhelmed by an unsympathetic majority. They demanded safeguards, constitutional guarantees, and a federal system of government with powers to the provinces for the protection and advancement of their heritage, identity, and interests. They demanded a separate state when neither the British nor the Hindu majority community was willing to offer those guarantees and safeguards. Muslims and Hindus are two separate nations, with their own customs, religion, and traditions; therefore, from social and moral points of view. They demanded separate electorates, but when they opined that Muslims would not be safe in a Hindu-dominated India, they began to demand a separate state. The League demanded self-determination for Muslim-majority areas in the form of a sovereign state promising minorities equal rights and safeguards in these Muslim majority areas. Question No 2 What were the socio-economic and religious causes behind the War of independence (1857)? Justify your answer with five relevant points. Solution The socio-economic and religious causes behind the War of Independence (1857): 5 Relevant Points: Rule of Law, socio-economic justice, equity and fair play. Equality of opportunity to all citizens irrespective of caste, sect, religion or region. Religious and Cultural tolerance. Respect for human dignity and rights. Protection of the rights and interests of non-Muslims and freedom to practice their beliefs and religions.
  • 0 Votes
    2 Posts
    964 Views
    zaasmiZ
    @zareen said in CS311 Assignment 1 Solution and Discussion: Q. Create an internal DTD and XML Document for the XML tree drawn below. DTD (10 marks) XML Document (10 marks) Solution Idea DTD: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE league [ <!ELEMENT league (franchise)> <!ATTLIST league name CDATA #REQUIRED> <!ATTLIST league year CDATA #REQUIRED> <!ELEMENT franchise (team+)> <!ATTLIST franchise name CDATA #REQUIRED> <!ATTLIST franchise owner CDATA #REQUIRED> <!ATTLIST franchise city CDATA #REQUIRED> <!ELEMENT team (win,losses,coach,player+)> <!ELEMENT win (#PCDATA)> <!ELEMENT losses (#PCDATA)> <!ELEMENT coach (#PCDATA)> <!ELEMENT player (name,age,runs,matches)> <!ELEMENT name (#PCDATA)> <!ELEMENT age (#PCDATA)> <!ELEMENT matches (#PCDATA)> <!ELEMENT runs (#PCDATA)> ]> XML: <?xml version="1.0" encoding="UTF-8"?> <league year="" name=""> <franchise owner="" name="" city=""> <team> <wins></wins> <losses></losses> <coach></coach> <player> <name></name> <age></age> <matches></matches> <runs></runs> </player> </team> </franchise> </league>
  • 0 Votes
    13 Posts
    3k Views
    zaasmiZ
    @Aqsa-Farhat You’r welcome
  • 0 Votes
    3 Posts
    1k Views
    cyberianC
    @sobia said in MGT503 GDB 1 Solution and Discussion: Point of Discussion: Being a student of management, you are required to suggest two decisional roles (Mintzberg’s Managerial Roles) suitable for the CEO to adopt in this situation. Also give two justifications for each role to resolve this issue. 1-Distuibinice flanler-In the meeting, inter-department conflict has been revealed. The managers of different departments blamed each other for the crisis. Therefore. CEO should handle this conflict. He has to play role of disturbance handler. 2-Resources AIlocator:- Departmental managers are unhappy for the available resources. They demand for more resources. Proper distribution of resources is required in current circumstances. Therefore, Mr. CEO should play the role of resource allocator to proper distribution of resources.
Reputation Earning
How to Build a $1,000/Month World CUP LIVE Matches Live Cricket Streaming
Ads
File Sharing
Stats

2

Online

3.0k

Users

2.8k

Topics

8.6k

Posts
Popular Tags
Online User
| |