Web development and programming
191828 questions • Page 17 / 3837
#include int main () int a[2][3] = { {20, 30, 10}, {60, 80, 90}}; int
#include <iostream> int main () int a[2][3] = { {20, 30, 10}, {60, 80, 90}}; int row, col; for(row = 0; row < 2; ++row) { for(col = 0; col < 3; col++) cout << a[…
#include int main() { float val, sum, incr; int ok,num; ok = 0; while
#include <iostream> int main() { float val, sum, incr; int ok,num; ok = 0; while (!ok) { cout << "Enter an even number:"; cin >> num; if (num % 2 == 2) cout <…
#include int main() { float val, sum, incr;int ok,num; ok = 0; while
#include <iostream> int main() { float val, sum, incr;int ok,num; ok = 0; while (!ok) { cout << "Enter an evennumber: "; cin >> num; if (num % 2 == 2) cout <&…
#include int main() { float val, sum, incr;int ok,num; ok = 0; while
#include <iostream> int main() { float val, sum, incr;int ok,num; ok = 0; while (!ok) { cout << "Enter an evennumber: "; cin >> num; if (num % 2 == 2) cout <&…
#include int main() { int usersChoice = menu(); std::cout
#include <iostream> int main() { int usersChoice = menu(); std::cout << userdChoice << "You Choose "; return 0; } //end main int menu(void); { //displays a menu …
#include using namespace std ; char gameboard[ 10 ] = { \'o\' , \'1\'
#include <iostream> using namespace std; char gameboard[10] = {'o','1','2','3','4','5','6','7','8','9'}; char makeamovex(int, char); char makeamoveO(int, char); int winner()…
#include using namespace std int main() { int sum = 0; cout
#include <iostream> using namespace std int main() { int sum = 0; cout << "This program will add all the integers between 1 and N." <<endl; cout << "Please…
#include using namespace std; #define LPG (0.264179) double MilesPerG
#include <iostream> using namespace std; #define LPG (0.264179) double MilesPerGallon(double milesf, double litersf) { return (milesf*LPG/litersf); } void main() { double fl…
#include using namespace std; #define array_size 11 float add_values(
#include <iostream> using namespace std; #define array_size 11 float add_values(float the_array[array_size] );// this function now can use the array float edit_values(float …
#include using namespace std; #include #include #
#include <iostream> using namespace std; #include <fstream> #include <cstdlib> #include <string> struct person { string first, last; int score; }; int main…
#include using namespace std; #include\"queue\" template
#include <iostream> using namespace std; #include"queue" template <typename K, typename V> class AssociativeArray { struct Node { K key; V value; Node * next; }; Node …
#include using namespace std; /* Type your code here. */ int intSqrRo
#include <iostream> using namespace std; /* Type your code here. */ int intSqrRoot(int num) { int sq = 1;// square of count int count = 1;// increment count every iteraion c…
#include using namespace std; // FIXME (3) multiply function // FIXME
#include <iostream> using namespace std; // FIXME (3) multiply function // FIXME (5) divide function int main() { double num1 = 0.0; double num2 = 0.0; double prod = 0.0; //…
#include using namespace std; // Here are class and function definiti
#include <iostream> using namespace std; // Here are class and function definitions used in program: // This program does run!!! Indicate output for each numbered line. // I…
#include using namespace std; // Here are class and function definiti
#include <iostream> using namespace std; // Here are class and function definitions used in program: // This program does run! Indicate output (if any) for each numbered lin…
#include using namespace std; // Prototype int *expandArray(int[], in
#include <iostream> using namespace std; // Prototype int *expandArray(int[], int [], int); void showArray(int[], int); void main () { const int size = 5; int numbers[size] …
#include using namespace std; // This is a little practice with singl
#include <iostream> using namespace std; // This is a little practice with singly-linked lists // using the following structure: struct List { int val; struct List *next; };…
#include using namespace std; // This is a little practice with singl
#include <iostream> using namespace std; // This is a little practice with singly-linked lists // using the following structure: struct List { int val; struct List *next; };…
#include using namespace std; // This program demonstrates partially
#include <iostream> using namespace std; // This program demonstrates partially initialized structure variables // PLACE YOUR NAME HERE struct taxPayer { char name[25]; long…
#include using namespace std; // implementing the dynamic List ADT us
#include <iostream> using namespace std; // implementing the dynamic List ADT using Linked List class Node{ private: int data; Node* nextNodePtr; public: Node(){} void setDa…
#include using namespace std; //Display functions void calculateMean(
#include <iostream> using namespace std; //Display functions void calculateMean(double, double); void calculateStandardDeviation(double); void getLetterGrade(); //enter main…
#include using namespace std; //Function and Variables int getDigit(c
#include <iostream> using namespace std; //Function and Variables int getDigit(char); int main() { // User Instructions cout << "****************User Instructions*****…
#include using namespace std; //enumeration type enum triangleType {n
#include <iostream> using namespace std; //enumeration type enum triangleType {noTriangle, equilateral, isosceles,scalene}; //prototype of the function triangleType triangle…
#include using namespace std; //function prototypes int sum( int [],
#include <iostream> using namespace std; //function prototypes int sum(int [], int); int countNmbrsBigger(int [], int, int); int average(int [], int); int high(int [], int);…
#include using namespace std; //void function that accepts two argume
#include <iostream> using namespace std; //void function that accepts two arguments: int num1 and int num2 // returns in the third argument int greatest; the maximum between…
#include using namespace std; class Bank_Transaction { public: Bank_T
#include <iostream> using namespace std; class Bank_Transaction { public: Bank_Transaction( ); //default constructor Bank_Transaction(double); double Check_Balance( ); void …
#include using namespace std; class CDAccount { public: CDAccount();
#include <iostream> using namespace std; class CDAccount { public: CDAccount(); CDAccount (double bal, double intRate, int T); double InterestRate (); double InitialBalance(…
#include using namespace std; class DogLicense{ public: void SetYear(
#include <iostream> using namespace std; class DogLicense{ public: void SetYear(int yearRegistered); void CreateLicenseNum(int customID); int GetLicenseNum() const; private:…
#include using namespace std; class Pair { public: Pair(); Pair (int
#include <iostream> using namespace std; class Pair { public: Pair(); Pair (int first, int second); Pair (int first); int accessFirst(); int accessSecond(); friend Pair oper…
#include using namespace std; class PersonData { private: string last
#include <iostream> using namespace std; class PersonData { private: string lastname; string firstname; string address; string city; string State; int zip; int phonenumber; …
#include using namespace std; class PersonInfo { public: void SetNumK
#include <iostream> using namespace std; class PersonInfo { public: void SetNumKids(int personsKids); void IncNumKids(); int GetNumKids() const; private: int numKids; }; voi…
#include using namespace std; class StringVar { public: StringVar(int
#include <iostream> using namespace std; class StringVar { public: StringVar(int size); StringVar(); StringVar(const char a[]); StringVar(const StringVar& string_object)…
#include using namespace std; class changeMaker{ public: int changeMa
#include <iostream> using namespace std; class changeMaker{ public: int changeMake(int amount, int n){ if(amount==0){ return 1; } if(n==1){ return 1; } if(amount<0){ retu…
#include using namespace std; class ticTacToe { public: ticTacToe();
#include <iostream> using namespace std; class ticTacToe { public: ticTacToe(); void setBoard(); void printBoard(); bool determineWinner(); void moves();…
#include using namespace std; const int MAX =5; //These functions exp
#include <iostream> using namespace std; const int MAX =5; //These functions explained below void spaces(); void introduction(); void input(intnumbers[]); void number(intnum…
#include using namespace std; const int MAX =8; //These functions exp
#include <iostream> using namespace std; const int MAX =8; //These functions explained below void spaces(); void introduction(); void a(intnumber[]); int main() { char respo…
#include using namespace std; const int MAXFLOOR = 15; class Elevator
#include <iostream> using namespace std; const int MAXFLOOR = 15; class Elevator { private: int currentFloor; public: Elevator(int = 1); void request(int); }; Elevator::Elev…
#include using namespace std; const int MAX_SIZE = 30; template
#include <iostream> using namespace std; const int MAX_SIZE = 30; template <class T> class List { private: struct Node { T data; Node *link; }; Node *head; Node *tail;…
#include using namespace std; double calcSale(double *earn) { double
#include <iostream> using namespace std; double calcSale(double *earn) { double earning, profit = 325.70, *newsale ; *earn = 7000; earning = earn + profit; newsale = …
#include using namespace std; enum triangleType {noTriangle,equilater
#include <iostream> using namespace std; enum triangleType {noTriangle,equilateral,isosceles,scalene}; triangleType triangleShape (int side1, int side2, intside3); int main(…
#include using namespace std; enum triangleType{scalene, isosceles, e
#include <iostream> using namespace std; enum triangleType{scalene, isosceles, equilateral, noTriangle}; triangleType triangleShape(double[]); void print(triangleType); int …
#include using namespace std; int *create_array(int); int enter_data
#include <iostream> using namespace std; int *create_array(int); int enter_data (int*, int); int get_mode (int*, int); double average (int*, int); int showarray (int*, int);…
#include using namespace std; int F(int x[], int c) { if (c < 3) retu
#include <iostream> using namespace std; int F(int x[], int c) { if (c < 3) return 0; return x[c - 1] + F(x, c - 1); } int G(int a, int &b) { b = b - a; a = b + a; re…
#include using namespace std; int binarySearch(const int list[], int
#include <iostream> using namespace std; int binarySearch(const int list[], int length,const int &item); int i=0; int main() { int arr[10],size=10; int x; cout<<"P…
#include using namespace std; int binarySearch(int [], int, int); //
#include <iostream> using namespace std; int binarySearch(int [], int, int); // function prototype const int SIZE = 16; int main() { int found, value; int list[] = {34,19,19…
#include using namespace std; int gcd(intnum1, int num2); int main ()
#include <iostream> using namespace std; int gcd(intnum1, int num2); int main () { char junk; int num1, num2; double answer; cout<< "Please enter a list offractions th…
#include using namespace std; int main () { int foo; int *foo2; foo2
#include <iostream> using namespace std; int main () { int foo; int *foo2; foo2 = &foo; foo = 1234; cout <<…
#include using namespace std; int main (){ float pay[10]; int id[10];
#include <iostream> using namespace std; int main (){ float pay[10]; int id[10]; int i; float hours, wage; for (i=0; i<10; i++){ cout << "Plea…
#include using namespace std; int main() { /* Question 1 void Shoes (
#include <iostream> using namespace std; int main() { /* Question 1 void Shoes (int boots = 16, int& heels = 8, int sneakers =3){ cout<< "there are " << snea…
#include using namespace std; int main() { // 1. // There are a sever
#include <iostream> using namespace std; int main() { // 1. // There are a several errors with the below code // Fix the syntax and logical errors. // The Program should tak…
Subject
Web development and programming
Use Browse or pick another subject.