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 11 / 3837

#include #include using namespace std; //declaration of class class Customer { /
#include #include using namespace std; //declaration of class class Customer { // members are private by default string c_name; string c_address; // you explicitly declare the pub…
#include #include using namespace std; //declaration of class class Customer { /
#include #include using namespace std; //declaration of class class Customer { // members are private by default string c_name; string c_address; // you explicitly declare the pub…
#include #include using namespace std; char coursegrade(int score) { switch (sco
#include #include using namespace std; char coursegrade(int score) { switch (score/10) { case 0: case 1: case 2: case 3: case 4: case 5: return 'F'; case 6: return 'E'; case 7: re…
#include #include using namespace std; char coursegrade(int score); int main ()
#include #include using namespace std; char coursegrade(int score); int main () { int score; cout<<"Function returning grades"<<endl; cout<<"Enter your score"&lt…
#include #include using namespace std; class HotelRoom { private: int _roomNumbe
#include #include using namespace std; class HotelRoom { private: int _roomNumber; int _roomCapacity; int _occupancyStatus; double _dailyRate; public: HotelRoom(); void setRoomNum…
#include #include using namespace std; class HotelRoom { private: int _roomNumbe
#include #include using namespace std; class HotelRoom { private: int _roomNumber; int _roomCapacity; int _occupancyStatus; double _dailyRate; public: HotelRoom(); void setRoomNum…
#include #include using namespace std; class Numbers { private: int num1; int nu
#include #include using namespace std; class Numbers { private: int num1; int num2; public: void setNum1(int ); //assigns value of the parameter to num1 void setNum2(int); // assi…
#include #include using namespace std; class Person { protected: string firstNam
#include #include using namespace std; class Person { protected: string firstName; string lastName; public: Person(void) { cout << "In the Person constructor (a derived clas…
#include #include using namespace std; class Vehicle { public: virtual int numOf
#include #include using namespace std; class Vehicle { public: virtual int numOfTires() = 0; // virtual function }; class Motorcycle : public Vehicle { public: int numOfTires(){re…
#include #include using namespace std; class dat { public: int tno,sc,db,ht,vol;
#include #include using namespace std; class dat { public: int tno,sc,db,ht,vol; int te; float sum; void getip() { cout<<"enter tree no:"; cin>>tno; if(tno==999) exit(…
#include #include using namespace std; class hInt { public: unsigned int operato
#include #include using namespace std; class hInt { public: unsigned int operator() (int item) const { unsigned int value = (unsigned int) item; value *= value; // square the item…
#include #include using namespace std; class hInt { public: unsigned int operato
#include #include using namespace std; class hInt { public: unsigned int operator() (int item) const { unsigned int value = (unsigned int) item; value *= value; // square the item…
#include #include using namespace std; const double PI = 3.141592654; void ConeV
#include #include using namespace std; const double PI = 3.141592654; void ConeVolume(double x, double n); int main() { double removedSectorLength; double PaperRad; double paperCu…
#include #include using namespace std; const int FIRST = 30; const int LAST = 30
#include #include using namespace std; const int FIRST = 30; const int LAST = 30; const int SIZE = 50; const int ROWS = 12; const int COLUMNS = 4; struct contestant_data { char fn…
#include #include using namespace std; const int NUM=4; int main() { //This is f
#include #include using namespace std; const int NUM=4; int main() { //This is for printing money in the proper format cout << setprecision(2) << fixed; //1. Declare t…
#include #include using namespace std; int main () { int score; char grade; cout
#include #include using namespace std; int main () { int score; char grade; cout<<"Function score"<<endl; cout<<"Enter score"<<endl; cin>>score; cout…
#include #include using namespace std; int main () { int score; cout
#include #include using namespace std; int main () { int score; cout<<"Function score"<<endl; cout<<"Enter score"<<endl; cin>>score; cout<<"sco…
#include #include using namespace std; int main( void ) { float celsius; // cont
#include #include using namespace std; int main( void ) { float celsius; // contains value for degrees in Celsius float fahrenheit; // contains value for degrees in Fahrenheit // …
#include #include using namespace std; int main() { //constants declaration cons
#include #include using namespace std; int main() { //constants declaration const int DAYS_PER_MONTH = 30; const int ONE_DOG_YEAR = 7; const int ONE_GOLD_FISH_YEAR = 5; const int …
#include #include using namespace std; int main() { int a, b; int oldest = -99;
#include #include using namespace std; int main() { int a, b; int oldest = -99; //dummy value cout << "Enter your age and a friends age. " << endl; cin >> a >…
#include #include using namespace std; int main() { int n , j ,y; double _sum=0
#include #include using namespace std; int main() { int n , j ,y; double _sum=0 , variance; cout << " How many numbers to type? " << endl; cin >> y; double max[y…
#include #include using namespace std; int menu() { int operation; cout > operat
#include #include using namespace std; int menu() { int operation; cout > operation; return operation; } void add(int a, int b, int c, int d, int numerator, int denominator) { …
#include #include using namespace std; struct menuitem { int idnum; char name[20
#include #include using namespace std; struct menuitem { int idnum; char name[20]; float price; int qty; }; void displaymenu(menuitem); void printcheck(menuitem); menuitem things[…
#include #include void ReverseArray(char* apples); int main() { int i; char tire
#include #include void ReverseArray(char* apples); int main() { int i; char tires[80]; strcpy(tires,"Whitewalls are best"); printf ("Tires is located at %p ",tires); for (i=0; i&l…
#include #include#include# define SIZE 4 void generate_answer(int[]); void compa
#include #include#include# define SIZE 4 void generate_answer(int[]); void compare(int[],int[],int *,int *); int main() {int guess[SIZE],answer[SIZE]; int i,n,m,guesses; int numbe…
#include /* You may NOT call any other string functions. * Do NOT include string
#include /* You may NOT call any other string functions. * Do NOT include string.h. * Do NOT alter main in any way. */ int hasSubstring(char w[], char sub[]); int main () { char w…
#include // Copies the C string pointed by source into the array pointed by dest
#include // Copies the C string pointed by source into the array pointed by destination, // including the terminating character (and stopping at that point). // To avoid overflows…
#include // input output stream header file #include // standard input output he
#include // input output stream header file #include // standard input output header file #include // standard library header file #include // header file with string function #in…
#include //#include #include #include #include using namespace std; int number_o
#include //#include #include #include #include using namespace std; int number_of_crs = 0; void input(char**, float**, char*); void output(char**, float** , char* , float, char*);…
#include //Write a binary and linear search for the following program to work in
#include //Write a binary and linear search for the following program to work in visual studio. #include#include #includeusing namespace std; int main() { int option; int currentL…
#include //_________________ #include //_________________ int ispowerOfTwo (unsi
#include //_________________ #include //_________________ int ispowerOfTwo (unsigned int n);//_________________ int main() {unsigned int x = 32; if (ispowerOfTwo (x))//___________…
#include //function prototypes bool isDelimiter(char ch); bool IsIdentifier(char
#include //function prototypes bool isDelimiter(char ch); bool IsIdentifier(char* str); bool isFloat(char* str); bool isInteger(char* str); void lex(char *fileName); //start of ma…
#include #include #include #include
#include <Elevator.h> #include <People.h> #include <iostream> #include <string> #include <array> #include <vector> #include <math.h> #inc…
#include #include \"resource2.h\" //2.3 #include //using
#include <afxwin.h> #include"resource2.h"//2.3 #include<afxtempl.h> //using namespace std; CArray<CPoint,CPoint> array1; //CArray<CPoint, CPoint> array1; /…
#include #include #include #include
#include <algorithm> #include <iostream> #include <string> #include <unordered_map> #include <vector> using namespace std; // You will need to compil…
#include #include #include #include using n
#include <array> #include <memory> #include <chrono> #include <iostream> using namespace std; class SuperBigObject { public:    array<uint64_t, 10000&gt…
#include #include using namespace std; class Pixel { public: Pi
#include <array> #include <random> using namespace std; class Pixel { public:    Pixel()    {        random_device device;        mt19937 engine(device());        unif…
#include // Assign the value of 5 to the integer variable pointed //
#include <assert.h> // Assign the value of 5 to the integer variable pointed // to by ptr. // // This should only take one line of code! void set_to_five(int *ptr) { // TODO…
#include using namespace std; vector split_string(string
#include <bits/stdc++.h> using namespace std; vector<string> split_string(string); // Complete the introTutorial function below. int introTutorial(int V, vector<int…
#include using namespace std; vector split_string(string
#include <bits/stdc++.h> using namespace std; vector<string> split_string(string); // Complete the quickSort function below. vector<int> quickSort(vector<int&…
#include void draw_border( void ) { // (a) Declare an intege
#include <cab202_graphics.h> void draw_border( void ) { // (a) Declare an integer variable called left, with an initial value of 1. // (b) Declare an integer variable called…
#include #include using namespace std; //REQUIRES: v is not e
#include <cassert> #include <vector> using namespace std; //REQUIRES: v is not empty //EFFECTS: returns a summary of the dataset as (value, frequency) pairs. //In the …
#include #include #include #include #incl
#include <cctype> #include <fstream> #include <iostream> #include <string> #include <vector> /// Add more header files if necessary class counter { p…
#include #include #include #include #incl
#include <cctype> #include <fstream> #include <iostream> #include <string> #include <vector> /// Add more header files if necessary class counter { p…
#include #include using namespace std; bool isvowel (char); i
#include <cctype> #include<iostream> using namespace std; bool isvowel (char); int main () { int n,i=0,count=0; bool result; char c; cout << " Enter a number of …
#include #include #include using namespace std; //
#include <cmath> #include <cstdlib> #include <iostream> using namespace std; // FUNCTION PROTOTYPE FOR read_us_length void read_us_length(int &,int &,int…
#include #include using namespace std; int main(int argc, cha
#include <cmath> #include <iostream> using namespace std; int main(int argc, char* argv[]) { int n = 1234; int d1 = n % 10; n = n / 10; int d2 = n % 10; n = n / 10; in…
#include #include #include #include #in
#include <conio.h> #include <iomanip> #include <iostream> #include<stdlib.h> #include <time.h> #include<sstream> #include <string> using …
#include #include #include #include usin
#include <conio.h> #include <iostream> #include <string> #include <cstdlib> using namespace std; //Header for class Employee class Employee { public: Emplo…
#include #include #include #include #inc
#include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <fstream> #include <iostream> #include <iomanip> #in…