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

Web development and programming

191828 questions • Page 16 / 3837

#include #include using namespace std; class Employee { priv
#include <iostream> #include <string> using namespace std; class Employee { private: char name[20]; public: Employee( )    {strcpy(name, "(no name)"); }           Empl…
#include #include using namespace std; class Person { privat
#include <iostream> #include <string> using namespace std; class Person { private: string name; //Name of a person public: Person(); Person(string theName); Person(con…
#include #include using namespace std; class Ship { private:
#include <iostream> #include <string> using namespace std; class Ship { private: string name; string built; public: Ship(string n, string y) { name = n; built = y; } s…
#include #include using namespace std; class Ship { private:
#include <iostream> #include <string> using namespace std; class Ship { private: string name; string built; public: Ship(string n, string y) { name = n; built = y; } s…
#include #include using namespace std; class StudentRecord{
#include <iostream> #include <string> using namespace std; class StudentRecord{ private:    string name;    string major;    string term;    double marks[5];   public:…
#include #include using namespace std; class binaryTree { pr
#include <iostream> #include <string> using namespace std; class binaryTree {     private:     struct treeNode     {         string name;         treeNode *left;      …
#include #include using namespace std; enum piece_t {EMPTY,
#include <iostream> #include <string> using namespace std; enum piece_t {EMPTY, PAWN, ROOK, KNIGHT, BISHOP, QUEEN, KING}; enum side_t {WHITE, BLACK}; int main() { //Se…
#include #include using namespace std; int checkwin(char squ
#include <iostream> #include <string> using namespace std; int checkwin(char square[]); void board(string player1Name, string player2Name, char square[]); bool validat…
#include #include using namespace std; int main() { const in
#include <iostream> #include <string> using namespace std; int main() {    const int sentinel = -1;    int itemNum;    int itemNo[]={341,342,343,344,345,346};    strin…
#include #include using namespace std; int main() { int coun
#include <iostream> #include <string> using namespace std; int main() { int count = 0; int occur = 0; string string1, string2; // Input string1 cout << "Please e…
#include #include using namespace std; int main() { int heig
#include <iostream> #include <string> using namespace std; int main() { int height = 0, weght = 0; double bmi; string name;    // prompt user for their data cout <&…
#include #include using namespace std; int main() { string z
#include <iostream> #include <string> using namespace std; int main() { string zipString; int value; do { cout << "Please enter a zip code with exactly five digi…
#include #include using namespace std; string STUDENT = \"ck
#include <iostream> #include <string> using namespace std; string STUDENT = "ckim84"; // Add your Blackboard login name extern string ASSIGNMENT; /** * Describe the pu…
#include #include using namespace std; struct person { strin
#include <iostream> #include <string> using namespace std; struct person { string name; double height; }; //merge function void mergeBack(person a[], int start, int mi…
#include #include using namespace std; struct stdRecord { st
#include <iostream> #include <string> using namespace std; struct stdRecord { string studentID; string studentName; int courseCode; int creditPoint; }; int menu(void);…
#include #include using namespace std; void count(string,int
#include <iostream> #include <string> using namespace std; void count(string,int&,int&,int&,int&,int&); int main() { string sentence; int i=0; int …
#include #include using namespace std; void print_all_suffix
#include <iostream> #include <string> using namespace std; void print_all_suffix(string s) {   int l = s.length();   for(int i = l; i >=0 ; i--)    {     string ss …
#include #include using namespace::std; // ASSUME ALL TREES
#include <iostream> #include <string> using namespace::std; // ASSUME ALL TREES ARE ORDERED AND THERE ARE NO DUPLICATE DATA ITEMS // SOME ALGORITHMS REQUIRE A COMPLETE…
#include #include using std::string; using std::cout; using
#include <iostream> #include <string> using std::string; using std::cout; using std::endl; static const int NUM_STUDENTS = 4; static const int NUM_GRADES = 5; int main…
#include #include #include #include us
#include <iostream> #include <time.h> #include <iomanip> #include <Windows.h> using namespace std; void gotoxy(int h, int w) {    HANDLE hConsole = GetStdH…
#include #include using namespace std; class BankAccount { p
#include <iostream> #include <time.h> using namespace std; class BankAccount { public: // constructors BankAccount(){}; BankAccount(int); // getters and setters void s…
#include #include #include #include using namespace
#include <iostream> #include <vector> #include <cmath> #include using namespace std; enum SquareLocation { TOP_LEFT = 0, TOP_CENTER = 1, TOP_RIGHT = 2, MIDDLE_LE…
#include #include #include using namespace std; vo
#include <iostream> #include <vector> #include <iomanip> using namespace std; void Eratos(int &length, vector< int > &); int main() {    int range;…
#include #include #include using namespace std; bool
#include <iostream> #include <vector> #include <stack> using namespace std; bool DFS(vector<vector<int> > &Graph) { vector<bool> visited(Gr…
#include #include #include #include #in
#include <iostream> #include <vector> #include <string> #include <algorithm> #include <iomanip> #include <fstream> //to read and write file #in…
#include #include #include #include #in
#include <iostream> #include <vector> #include <string> #include <algorithm> #include <iomanip> #include <fstream> //to read and write file #in…
#include #include #include #include \"DynamicArray.
#include <iostream> #include <vector> #include <string> #include "DynamicArray.h" using namespace std; // Sample class, to show a template can work with anything…
#include #include #include \"Queue.h\" using namespace std;
#include <iostream> #include <vector> #include "Queue.h" using namespace std; long k = 10; long f (long x){     return x % k; } int main() {        // Declare a vector…
#include #include using namespace std; class Node{ private:
#include <iostream> #include <vector> using namespace std; class Node{ private: int val; Node* left; Node* right; public: Node(); Node(int); bool set_left(Node*); Node…
#include #include using namespace std; class Shape { public:
#include <iostream> #include <vector> using namespace std; class Shape { public: virtual void printDescription()=0; // Prints the type of shape object virtual double a…
#include #include using namespace std; int leftChild(int i)
#include <iostream> #include <vector> using namespace std; int leftChild(int i) { return 2*i + 1; } void percDown(vector<int> & v, int i, int n) { int child;…
#include #include using namespace std; int main(){ vector
#include <iostream> #include <vector> using namespace std; int main(){ vector<string> friends{"Aisha Deaver", "Edmund Nazario", "Rayford Sabbagh",         "Letic…
#include #include \"2170_10_5a.h\" using namespace std; // Default Co
#include <iostream> #include "2170_10_5a.h" using namespace std; // Default Constructor for the DummyList class DummyList::DummyList() {     //create the dummy node     head…
#include #include \"Contact.h\" // constructors Contact::Contact(stri
#include <iostream> #include "Contact.h" // constructors Contact::Contact(string _name, int _phoneNumber):    name (_name),    phoneNumber (_phoneNumber),    emergencyContac…
#include #include \"Tree.h\" using namespace std; int main() { { Tree
#include <iostream> #include "Tree.h" using namespace std; int main() {   {       Tree A;      Tree B   }    Tree C;    Tree D: } What is the order in which the objects are …
#include #include \"stdafx.h\" using namespace std; void main() { int
#include <iostream> #include "stdafx.h" using namespace std; void main() { int num, sum; int i; cin>>num; sum=0; for (i=0; num!=-1; i++) { sum=sum+num; cin>>num;…
#include #include #include using namespace std; int
#include <iostream> #include<cmath> #include <iomanip> using namespace std; int main() {double loan,month,total,rate,monthpay; int years; cout<<"Enter Loan…
#include #include using namespace std; //function prototypes
#include <iostream> #include<conio.h>   using namespace std;   //function prototypes void showMenu(); void help(); void arithmetic(); void relational(); void logical()…
#include #include #include using namespace std; bool
#include <iostream> #include<fstream> #include<string> using namespace std; bool checkIfPresent(string); int main() { std::ifstream infile("LetterWord.txt"); str…
#include #include #include using namespace std; dou
#include <iostream> #include<iomanip> #include <string> using namespace std; double billingAmount(double hourlyRate, double consultingTime, string lowIncome); in…
#include #include using namespace std; class fractionType { f
#include <iostream> #include<math.h> using namespace std; class fractionType { friend ostream &operator <<(ostream &, const fractionType &); friend i…
#include #include using namespace std; struct node { //Task
#include <iostream> #include<stdlib.h> using namespace std; struct node { //Task 1 char val; node *next; }; void printList(node *head) { //Task 2 if (head == NULL) { c…
#include #include using namespace std; int main() { int gross
#include <iostream> #include<string> using namespace std; int main() { int grossPay; double FedralTax; double StateTax; double Social_midCare; double HealthInsurance; …
#include /* cout, cin, endl etc ... */ #include /* Allows
#include <iostream> /* cout, cin, endl etc ... */ #include <algorithm> /* Allows use of sorting templates/containers */ #include <vector> /* Allows use of vector…
#include // I/O #include // allows access to string object #
#include <iostream> // I/O #include <string> // allows access to string object #include <cstdlib> // allows access to EXIT_SUCCESS #include <list> // allow…
#include // function prototype void delete_repeats (char a[],int & po
#include <iostream> // function prototype void delete_repeats (char a[],int & positions_usd); bool find_char (char target,char a[], int size); int main() { char a[81]= "…
#include // include vector library using namespace std; //Function pr
#include <iostream> // include vector library using namespace std; //Function prototype double weightSummary(vector<double>); int main() { vector<double> list1; …
#include //For standard input output #include // For sprintf
#include <iostream> //For standard input output #include <cstdio> // For sprintf which nstead of being printed, #include <cstdlib> // FOr using sustem calls usin…
#include
#include <iostream> <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /?> #include <string> using namespace std; class counter { friend o…
#include int drawBar(int); int main() { std::cout
#include <iostream> int drawBar(int); int main() { std::cout << std::endl << "Let's Draw a triangle! "; //determine how many lines will be drawn int triangleBase…