Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Browse C

Alphabetical listing with fast deep pagination.
81169 items • Page 1574 / 1624

All 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
class Node { public: int data; Node * next; }; Node *p1, *p2, *p3; Assume also t
class Node { public: int data; Node * next; }; Node *p1, *p2, *p3; Assume also that the following statements have been executed: p1 = new(nothrow) Node; p2 = new(nothrow) Node; p3…
class Node: def __init__(self, value): self.value = value self.left = None self.
class Node: def __init__(self, value): self.value = value self.left = None self.right = None    def mirrorTree(root): new_root = Node(root.value) assign_tree(root, new_root) retur…
class NodeList { public int item; public NodeList next; public NodeList( int val
class NodeList { public int item; public NodeList next; public NodeList(int val) { item = val; //initialize data } public NodeList(){ } public void printNode() { System. out.print…
class NodeList { public int item; public NodeList next; public NodeList(int val)
class NodeList { public int item; public NodeList next; public NodeList(int val) { item = val; //initialize data } public void Print() { System.out.print("{" + item + "}"); } }//e…
class NodeList { public int item; public NodeList next; public NodeList(int val)
class NodeList { public int item; public NodeList next; public NodeList(int val) { item = val; //initialize data } public void Print() { System.out.print("{" + item + "}"); } }//e…
class NodeList { public int item; public NodeList next; public NodeList(int val)
class NodeList { public int item; public NodeList next; public NodeList(int val) { item = val; //initialize data } public void Print() { System.out.print("{" + item + "}"); } }//e…
class Node{ int num; Node next; Node( int n ){ num = n; } }//end Node class clas
class Node{ int num; Node next; Node( int n ){   num = n; } }//end Node class class LList{ Node root = null; public LList join(LList L1, LList L2) { LList f = newLList(); Node r1=…
class Ocean Instance variables ships a collection of ships on the ocean shotsFir
class Ocean Instance variables ships a collection of ships on the ocean shotsFired - The total number of shots fired by the user. hitCount The number of times a shot hit a ship. I…
class Point { private int x, y; public Point() { x = y = 0; } public Point(int x
class Point     {         private int x, y;         public Point()         {             x = y = 0;         }         public Point(int xC, int yC)         {             x = xC;   …
class Point2D { public: /* * Default Constructor * Places point at (0, 0) */ Poi
class Point2D { public: /* * Default Constructor * Places point at (0, 0) */ Point2D() { x = 0; y = 0; } /* * Constructor * Places point at (xCoord, yCoord) */ Point2D(int xCoord,…
class Point: def __init__ (self, x = 0, y = 0): self.__x = x self.__y = y def ge
class Point: def __init__ (self, x = 0, y = 0): self.__x = x self.__y = y    def get_x(self): return self.__x def get_y(self): return self.__y    def move(self,dx,dy): self.__x +=…
class Point: def__init__(seIf, init_x, init_y): sel f.x = init_x # self.x is an
class Point: def__init__(seIf, init_x, init_y): sel f.x = init_x # self.x is an instance variable self.y = init_y # self.y is an instance variable def__str__(self): return '({}, {…
class Polygon { protected: int width, height; public: void set_values (int a, in
class Polygon { protected:     int width, height; public:     void set_values (int a, int b)       { width=a; height=b; } }; class Rectangle: public Polygon { public:     int area…
class ProductDB { // Get the connection string from an external file public stat
class ProductDB { // Get the connection string from an external file public static string ConnectionString() { return File.ReadAllText(@"....DBConnStr.txt", Encoding.UTF8); } // G…
class Rational { public: Rational(int num, int den); Rational(int whole_number);
class Rational { public: Rational(int num, int den); Rational(int whole_number); Rational(); friend istream& operator>> (istream&, Rational &); friend ostream&am…
class Rectangle { public: void setLenthWidth (double x, double y); //Postconditi
class Rectangle { public: void setLenthWidth (double x, double y); //Postcondition: length = x; width = y; void print() const; //Output length and width; double area() const; //Ca…
class RentalCarBill ­­main() // Declarations ________ customerName ________ numb
class RentalCarBill ­­main() // Declarations ________ customerName ________ numberOfDays ________ carType ________ tax ________ billSubtotal ________ totalBill ________ RENTAL_RAT…
class Robot { public: int x,y; char heading; Robot(int start_x,int start_y, char
class Robot { public: int x,y; char heading; Robot(int start_x,int start_y, char start_heading) { x = start_x; y = start_y; heading = start_heading; } void setX(int i) { x = i; } …
class Stack private: int size; // size of stackArray int top; I/ top of stackArr
class Stack private: int size; // size of stackArray int top; I/ top of stackArray int *stackArray; public: Stack(int newSize) size newSize; // set array size stackArray-new int […
class StackX { private int maxSize; // size of stack array private long[] stackA
class StackX { private int maxSize; // size of stack array private long[] stackArray; private int top; // top of stack //---------------------------- -----------------------------…
class Student(object): ##\"__init__() functions as the class constructor\" def _
class Student(object): ##"__init__() functions as the class constructor" def __init__(self, name=None, prev=None, nxt=None): self.name = name self.prev = prev self.next = nxt Usin…
class SubscriptionYear You are to write a class called SubscriptionYear that con
class SubscriptionYear You are to write a class called SubscriptionYear that contains the following attributes and methods. Attributes: Instance variable called year of type int ,…
class SubscriptionYear You are to write a class called SubscriptionYear that con
class SubscriptionYear You are to write a class called SubscriptionYear that contains the following attributes and methods. Attributes: Instance variable called year of type int ,…
class SubscriptionYear You are to write a class called SubscriptionYear that con
class SubscriptionYear You are to write a class called SubscriptionYear that contains the following attributes and methods. Attributes: Instance variable called year of type int ,…
class Tag: #Constructor - initializes the instance variables __tag_name and __ta
class Tag: #Constructor - initializes the instance variables __tag_name and __tag_type def __init__(self,tag_name,tag_type): self.__TYPE_LIST = ["start","end","empty"] self.__tag_…
class Test { public synchronized void foo() throws InterruptedException { wait()
class Test { public synchronized void foo() throws InterruptedException { wait(); System.out.println("Goodbye"); } public synchronized void bar() throws InterruptedException { wai…
class Test { public synchronized void foo() { bar(); System.out.println(\"Goodby
class Test { public synchronized void foo() { bar(); System.out.println("Goodbye"); } public synchronized void bar() { System.out.println("Hello"); } } When a thread invokes the f…
class Test2{ public Test2(int i){ System.out.println(i); } } class Test3 extends
class Test2{ public Test2(int i){ System.out.println(i); } } class Test3 extends Test2{ } This is a test review slide.. it asks is how you would fix this? I'm curious what's wrong…
class TicTacToe { /* Declare one integer for each sqaure of the game. The first
class TicTacToe { /* Declare one integer for each sqaure of the game. The first square is 1 and the last 9 s1 | s2 | s3 ----+-----+---- s4 | s5 | s6 ----+-----+---- s7 | s8 | s9 V…
class Time { private: int hr, min; public: Time operator+ (Time); Time(int x, in
class Time {    private: int hr, min; public: Time operator+ (Time);              Time(int x, int y) {hr =x; min = y; }               void show( ) { cout << hr <<":" &…
class WarGame(object): \'Implement a Luck Seven Game. A lucky seven is defined a
class WarGame(object): 'Implement a Luck Seven Game. A lucky seven is defined as 3 or more 7s being rolled.' def __init__(self,sh): 'Constructor that takes a mandatory shaker as a…
class awesomeClass { std::list myList; //... void fillList(); }; awesomeClass
class awesomeClass {     std::list<A> myList;     //...     void fillList(); }; awesomeClass::awesomeClass() {     fillList(); } void awesomeClass::fillList(){     //...    …
class bagType { public: void set (string, double, double, double, double); void
class bagType { public: void set (string, double, double, double, double); void print () const; string getStyle () const; double getPrice () const; void get (double, double, doubl…
class bagType { public: void set(string, double, double, double, double); void p
class bagType { public: void set(string, double, double, double, double); void print() const; string getStyle() const; double getPrice() const; void get(double, double, double, do…
class below queue with a linked points) The with a tail pointer as the circular
class below queue with a linked points) The with a tail pointer as the circular list-30 linked list is at the head of implements a first-in-first-out queue. It uses a circular sin…
class bookType { public: void setBookTitle(string s); //sets the bookTitle to s
class bookType { public:         void setBookTitle(string s);      //sets the bookTitle to s     void setBookISBN(string ISBN);      //sets the private member bookISBN to the para…
class bookType {public: void set BookTitle (string s)//sets the bookTitle to s v
class bookType {public: void set BookTitle (string s)//sets the bookTitle to s void set BookISBN (string ISBN)//sets the private member book ISBN to the parameter void setBookPric…
class cashRegister { public : int getCurrentBalance() const; void acceptAmount (
class cashRegister { public :    int getCurrentBalance() const;    void acceptAmount ( int amountIn );    cashRegister( int cashIn = 500 ); private:    int cashOnHand; }; // end c…
class cashRegister { public : int getCurrentBalance() const; void acceptAmount (
class cashRegister { public :    int getCurrentBalance() const;    void acceptAmount ( int amountIn );    cashRegister( int cashIn = 500 ); private:    int cashOnHand; }; // end c…
class cashRegister { public : int getCurrentBalance() const; void acceptAmount (
class cashRegister { public :    int getCurrentBalance() const;    void acceptAmount ( int amountIn );    cashRegister( int cashIn = 500 ); private:    int cashOnHand; }; // end c…
class cashRegister { public : int getCurrentBalance() const; void acceptAmount (
class cashRegister { public :    int getCurrentBalance() const;    void acceptAmount ( int amountIn );    cashRegister( int cashIn = 500 ); private:    int cashOnHand; }; // end c…
class collegeCourse private Scourseld private Senrollment private Srequired / ge
class collegeCourse private Scourseld private Senrollment private Srequired / getters getCourseldot l code to retrieve Scourseld / code to retrieve Senrellment .getRequiredOt l co…
class counter { friend ostream &operator
class counter { friend ostream &operator<<(std::ostream &, const counter &) // stream insertion operator friend istream &operator>>(istream & in, c…
class cumulative relative frequency 150 up to 200 0.18 200 up to 250 0.21 250 up
class                             cumulative relative frequency 150 up to 200                     0.18 200 up to 250                     0.21 250 up to 300                     0.6…
class dateType Download source and header files of the class dateType from Black
class dateType Download source and header files of the class dateType from Blackboard. Rewrite the definitions of the function setDate and the constructor so that the values for t…
class employee //Line 1 { //Line 2 public: //Line 3 employee(); //Line 4 employe
class employee                                                //Line 1 {                                                                      //Line 2 public:                     …
class encapsulating the concept of statistics for a baseball team, which has the
class encapsulating the concept of statistics for a baseball team, which has the following attributes: a number of players, a of number of hits for each player, a list of number o…
class frequency 0 13 1 23 2 28 3 24 4-7 28 8-11 50 12-16 37 17-19 22 20-27 9 28-
class                 frequency 0                            13 1                             23 2                            28 3                            24 4-7               …
class heap{ public : /** TO DO:: default constructor perform new to reserve memo
class heap{ public: /** TO DO:: default constructor perform new to reserve memory of size INITIAL_CAPACITY. set num_items = 0; */ heap(){ // write your code here darray[INITIAL_CA…
class hierarchy program in C++ : animal protected: char sound[10]; // contains \
class hierarchy program in C++ : animal   protected:   char sound[10];              // contains "moo", "quack" unsigned char data; // 0 - cannot fly, 1 - can fly // number of legs…