Web development and programming
191828 questions • Page 3668 / 3837
int mystrncmp(const char *s11 const char *s2. int n The function compares up to
int mystrncmp(const char *s11 const char *s2. int n The function compares up to "n" characters of the string pointed to by "s" to the string pointed to by "s2 . The function retur…
int n = (new IntReader()).readInt(); import java.io.*; // a class to read in an
int n = (new IntReader()).readInt(); import java.io.*; // a class to read in an integer public class IntReader{ private LineNumberReader d; public IntReader(){ d = new LineNumberR…
int num = 14; Write the code to add the value contained in num to the ArrayList.
int num = 14; Write the code to add the value contained in num to the ArrayList. Remember that ArrayLists can only hold objects. //precondition: list is a non-empty ArrayList cont…
int num; int sum; cin >> num; sum = num; while (num != -1) { sum = sum + 2 * num
int num; int sum; cin >> num; sum = num; while (num != -1) { sum = sum + 2 * num; cin >> num; } cout << "Sum = " << sum << endl; Suppose that the inp…
int number [100] [100]; and store in each cell the sum of tow indexes that refer
int number [100] [100]; and store in each cell the sum of tow indexes that referencethe cell for example, the numbers [5][87] is 92. now assume that wemap numbers into one dimensi…
int palindrome( char *string ); which returns 1 if the argument string is a pali
int palindrome( char *string ); which returns 1 if the argument string is a palindrome and 0 otherwise. A palindrome is a string that reads the same forwards and backwards. The fu…
int readFile(struct record ** ptrStart, char filename[ ]) { FILE * inFile = fope
int readFile(struct record ** ptrStart, char filename[ ]) { FILE * inFile = fopen(filename, "r"); int uaccountnum; char uname[25]; char uaddress[80]; char lines[256]; int li…
int readFile(struct record ** ptrStart, char filename[ ]) { FILE * inFile = fope
int readFile(struct record ** ptrStart, char filename[ ]) { FILE * inFile = fopen(filename, "r"); int uaccountnum; char uname[25]; char uaddress[80]; char lines[256]; int li…
int s = 1; for (int i=0; i
int s = 1; for (int i=0; i<n; i++) if ( ....) for(int j=0; j<n; j++) s=s*i-j; else for(int j=1; j<n; j=j*2) s=s+i*j; Find best case and worst cases complexity int s…
int s = 20; for(int i=1; i1; j=j/2){ s++; s =s *j; } f
int s = 20; for(int i=1; i<n; i=i+2) for(int j=n; j>1; j=j/2){ s++; s =s *j; } for(int k=0; k<n*n; j++) if (....) s=s*j; Find best case and worst cases complexity i…
int score (int a, int b) { HERE I NEED A FUNTION THAT CALCULATES SCORE: THE SCOR
int score (int a, int b) { HERE I NEED A FUNTION THAT CALCULATES SCORE: THE SCORE SHOULD NOT ONLY SUM TO A TOTAL IF THEY GET IT RIGHT, BUT ALSO SUBTRACT THE PROPER AMOUNT IF THEY …
int search(const int arr[], int target, int n) { int i, found = 0, where; /* fou
int search(const int arr[], int target, int n) { int i, found = 0, where; /* found - whether or not target has been found */ /* where- index where target found or NOT_FOUND */ /* …
int selectCarpet ( ); // selectCarpet() displays a menu option of carpets, // ge
int selectCarpet ( ); // selectCarpet() displays a menu option of carpets, // get user selection, and returns to its caller; #include using…
int sillyone(int n) { if (n
int sillyone(int n) { if (n <= 1) return n; else return sillyone(n-1) + sillyone(n-1); } int sillytwo(int n) { if (n <= 1) return n; else return 2 * sillytwo(n-1); } Output …
int sum1(int A[N][N], int B[N][N]) { int i, k, sum = 0; for (i = 0; i < N; i++)
int sum1(int A[N][N], int B[N][N]) { int i, k, sum = 0; for (i = 0; i < N; i++) for (k = 0; k < N; k++) sum += A[i][k] + B[k][i]; return sum; } TLB Behavior Assume that we t…
int value = 1; int input; do { cin >> input; value = value * input; } while (inp
int value = 1; int input; do { cin >> input; value = value * input; } while (input != -1); cout << value * -1 << endl; Question 2. A program has a char variable …
int whereis (int P, int* Xval, int* Yval) // looks for P in the spiral. // If fo
int whereis (int P, int* Xval, int* Yval) // looks for P in the spiral. // If found it returns 1 and puts the co-ordinates in Xval and Yval // if P is not found (perhaps because o…
int whereis (int P, int* Xval, int* Yval) // looks for P in the spiral. // If fo
int whereis (int P, int* Xval, int* Yval) // looks for P in the spiral. // If found it returns 1 and puts the co-ordinates in Xval and Yval // if P is not found (perhaps because o…
int x = 0; for (int i = 0; i < N; i++) for (int j = i + 1; j < N; j++) for (int
int x = 0; for (int i = 0; i < N; i++) for (int j = i + 1; j < N; j++) for (int k = j + 1; k < N; k++) x++; How many times does the inner loop execute? This is the same a…
int x = 4; if (x < 0) { x *= -1; } What does the code snippet do? 2.) Given the
int x = 4; if (x < 0) { x *= -1; } What does the code snippet do? 2.) Given the following function prototype: public static void Display(int[] ary) Select the correct choice be…
int x= 20, y = 35; x\'y++ + x + 4; y\' + +y x--z The operator used to force the
int x= 20, y = 35; x'y++ + x + 4; y' + +y x--z The operator used to force the conversion of a value to another type is the_____operator conversion cast assigment increment After c…
int x[]{ 0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 }; int *xPtr1{ x }; int numb
int x[]{ 0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 }; int *xPtr1{ x }; int number{ 0 }; cout << "Enter a positive integer: "; cin >> number; Requirements: 1. Using PO…
intQueue.h // Specification file for the IntQueue class #ifndef INTQUEUE_H #defi
intQueue.h // Specification file for the IntQueue class #ifndef INTQUEUE_H #define INTQUEUE_H class IntQueue { private: int *queueArray; // Points to the queue array int queueSize…
int[] counter = new int[10]; 29. Fill in the blank to specify that objects of a
int[] counter = new int[10]; 29. Fill in the blank to specify that objects of a class named Purchase can be serialized. There may be more than one word in the blank. public class …
int[] data = {9, 3, 5, 0}; method(data); public static int[] method(int[] source
int[] data = {9, 3, 5, 0}; method(data); public static int[] method(int[] source) { source = new int[3]; source[0] = 7; sourc…
int[] data = {}; //data array store digits in this natural number /** * THIS IS
int[] data = {}; //data array store digits in this natural number /** * THIS IS A HELPER method which converses a digit character to its integer value. * @param c is character and…
int[] numList = new int[50]; for (int i = 0; i < 50; i++) numList[i] = 2 * i; nu
int[] numList = new int[50]; for (int i = 0; i < 50; i++) numList[i] = 2 * i; num[10] = -20; num[30] = 8; What is the index number of the last component in the array numList se…
interest = principal * rate * term / 365; The preceding formula assumes that rat
interest = principal * rate * term / 365; The preceding formula assumes that rate is the annual interest rate, and therefore includes the division by 365 (days). Develop a program…
interface Base { boolean m1 (); byte m2( short s); } which two code fragments wi
interface Base { boolean m1 (); byte m2(short s); } which two code fragments will compile? interface Base2 implements Base {} abstract class Class2 extends Base { public boolean m…
interface Base { boolean m1 (); byte m2( short s); } which two code fragments wi
interface Base { boolean m1 (); byte m2(short s); } which two code fragments will compile? interface Base2 implements Base {} abstract class Class2 extends Base { public boolean m…
interface Enumeration { public boolean hasNext(); public Object getNext(); } cla
interface Enumeration { public boolean hasNext(); public Object getNext(); } class NameCollection { String[] names; NameCollection(String[] names) { this.names = names; } //getEnu…
interface Enumeration { public boolean hasNext(); public Object getNext(); } cla
interface Enumeration { public boolean hasNext(); public Object getNext(); } class NameCollection { String[] names; NameCollection(String[] names) { this.names = names; } //getEnu…
interface MyInterface { // Methods of MyInterface } public SomeClass implements
interface MyInterface { // Methods of MyInterface } public SomeClass implements MyInterface { // All methods of SomeClass and MyInterface } SomeClass obj = new SomeClass( ); a. My…
interface MyInterface { // Methods of MyInterface } public SomeClassimplements M
interface MyInterface { // Methods of MyInterface } public SomeClassimplements MyInterface { // All methods of SomeClass and MyInterface } SomeClass obj = new SomeClass( ); a.MyIn…
interface-based programming C++ cpp file Problem Set 4: Interface-based Programm
interface-based programming C++ cpp file Problem Set 4: Interface-based Programming In problem set 3, you developed a console-based version of the paper and pencil game Bulls and …
interface-based programming c++ cpp file Problem Set 4: Interface-based Programm
interface-based programming c++ cpp file Problem Set 4: Interface-based Programming In problem set 3, you developed a console-based version of the paper and pencil game Bulls and …
interleave: Write a utility program interleave that reads two file names from st
interleave: Write a utility program interleave that reads two file names from standard input and then writes their content out to to a new file, interleaving the lines of the two …
international computer consulting company. Due to the enormous growth of the com
international computer consulting company. Due to the enormous growth of the company, it has become necessary to create a payroll program, which calculates employee salaries. Your…
internet? 21 From your textbook: \"Net neutrality has become a political issue,
internet? 21 From your textbook: "Net neutrality has become a political issue, and organizations with vested interests add to the confusion with misleading ads. Here's a chance fo…
intil a -3, 5, 6, 8, 10, 12); c) for (int i - 0: i _ 0; i--2) { a[i] . a[i + 1);
intil a -3, 5, 6, 8, 10, 12); c) for (int i - 0: i _ 0; i--2) { a[i] . a[i + 1); } main method in this class). A class Collection has an array of integers and a count (integer) as…
intro computer science hw (Chapter #6 Question) You must use a LOOP in this Ques
intro computer science hw (Chapter #6 Question) You must use a LOOP in this Question (You DO NOT need an ARRAY as arrays haven not been covered yet!!!) 6, Develop an algorithm and…
intro to C programming question:::: The Fibonacci number series is defined as fo
intro to C programming question:::: The Fibonacci number series is defined as follows: f(0) = 0, f(1) = 1, and for i > 1, f(i) = f(i-1) + f(i-2). The first 10 numbers from the …
intro to C++ practice project. I would appreciate all help on this so that i may
intro to C++ practice project. I would appreciate all help on this so that i may study it for my exam ============================ This is the unsorted_media.txt: (https://pastebi…
intro to C: Assume you have a int variable n that has already been declared and
intro to C: Assume you have a int variable n that has already been declared and initialized . Its value is the number of integers that need to be read in from standard input and p…
intro to Computer science java/bluej problem using knowledge of DNA sequences: P
intro to Computer science java/bluej problem using knowledge of DNA sequences: Please only use the basics such as for loops, while loops, break, continue,switch,etc. if possible s…
intro to Computer science java/bluej problem using knowledge of DNA sequences: P
intro to Computer science java/bluej problem using knowledge of DNA sequences: Please only use the basics such as for loops, while loops, break, continue,switch,etc. if possible s…
intro to Java. 9th Edition Author. Liang Pg 1087 Ch.11 Q. 30.4 (Find Connected c
intro to Java. 9th Edition Author. Liang Pg 1087 Ch.11 Q. 30.4 (Find Connected component) Create a new class named MyGraph as a subclass of UnweightedGraph that conatinas a method…
intro to Microprocessor MSP 430 I have to convert my code from C to the assembly
intro to Microprocessor MSP 430 I have to convert my code from C to the assembly code, having trouble Below is my code in C. #include <msp430.h> /* * main.c */ #define Red_L…
intro to comp sci, this is question part 3 part one: https://www.chegg.com/homew
intro to comp sci, this is question part 3 part one: https://www.chegg.com/homework-help/questions-and-answers/intro-comp-sci-writing-coursejava-q10340895 part two: https://www.ch…
intro to computer science question You are a software developer for a Retail Poi
intro to computer science question You are a software developer for a Retail Point of Sale System Company. A client has made a request to upgrade the current system from command l…
Subject
Web development and programming
Use Browse or pick another subject.