Web development and programming
191828 questions • Page 124 / 3837
/** * Read input from a given file, until being told to stop reading characters,
/** * Read input from a given file, until being told to stop reading characters, * or until EOF. * * IMPORTANT: * The input replaces, entirely, any data that was already in the MY…
/** * Remove from the club\'s collection all members who * joined in the given m
/** * Remove from the club's collection all members who * joined in the given month and year, and return * them stored in a seperate collection object... * @pa…
/** * Replaces the last element returned by either next or * previous. Cannot be
/** * Replaces the last element returned by either next or * previous. Cannot be called immediately after add * or remove. */ void set(E obj); This is a method declared in listIte…
/** * Return a new array that has twice the capacity of a. The new array should
/** * Return a new array that has twice the capacity of a. The new array should * have 0's in the new spaces. For example, if a = {1,2,3}, the method * should return {1,2,3,0,0,0}…
/** * Returns a NEW two-dimensional array where each row represents the * result
/** * Returns a NEW two-dimensional array where each row represents the * result of appending row values from the second array to the first one. * For example: * <pre> * dou…
/** * Returns a list of states with only 3 Electoral College votes. * * @require
/** * Returns a list of states with only 3 Electoral College votes. * * @requires nothing * * @return a list of states that have the minimum Electoral College votes */ // TODO 13.…
/** * Returns the character that occurs most frequently in * the given string. I
/** * Returns the character that occurs most frequently in * the given string. If several characters occur with * the same maximum frequency, returns the one that * occurs first i…
/** * Returns the score for a single tile value. Tiles with value less * than 3
/** * Returns the score for a single tile value. Tiles with value less * than 3 have score zero. All other values result from starting with * value 3 and doubling N times, for som…
/** * Returns the second largest value in a list of numbers, * where the list is
/** * Returns the second largest value in a list of numbers, * where the list is given as a string of text containing integer * values separated by arbitrary whitespace. Duplicate…
/** * Returns whether the number is semiprime. */ public static boolean isPQ(lon
/** * Returns whether the number is semiprime. */ public static boolean isPQ(long number) { /* to do */ } /** * Returns new vector with …
/** * Searches a number in a given 1 dimensional array of numbers of length size
/** * Searches a number in a given 1 dimensional array of numbers of length size in a linear way and stores its * index in a memory location provided. If number is not found, save…
/** * Selector that returns false if the current string is * within a javadoc co
/** * Selector that returns false if the current string is * within a javadoc comment, true otherwise. Using a NonJavadocSelector * in the filter method of a StringList has the ef…
/** * Separates s into two strings, each made of alternating characters * from s
/** * Separates s into two strings, each made of alternating characters * from s, except that runs of the same character are kept together. * The two strings are concatenated with…
/** * Sets the location of this Button object to a new (x, y) * coordinate selec
/** * Sets the location of this Button object to a new (x, y) * coordinate selected at random. The x coordinate wil be in * the range 100 to 500 inclusive, and the y coordinate wi…
/** * The Hangman object is used to keep track of the number of incorrect guesse
/** * The Hangman object is used to keep track of the number of incorrect guesses * the player has made (which is used to draw the hangman) and the Hangman * object is used to tra…
/** * The Immutable Class Note. */ public class Note { /** Static Constants */ p
/** * The Immutable Class Note. */ public class Note { /** Static Constants */ public static final int DEFAULT_INTENSITY = 50; public static final int REST_PITCH = 128; // First i…
/** * The constructor must first check that r * c is equal to the length of arra
/** * The constructor must first check that r * c is equal to the length of array d. * if this requirement does not meet, member nRow and nCol should be set to 0 and * data should…
/** * The pseudorandom Java application produce random number anddecimal values
/** * The pseudorandom Java application produce random number anddecimal values and prints a * table of how decimal values locate in the range of[0..1) * @author Henry Wang (natur…
/** * The test class RomanNumeralsTest. * */ public class RomanNumeralsTest exte
/** * The test class RomanNumeralsTest. * */ public class RomanNumeralsTest extends junit.framework.TestCase { /** * Default constructor for test class RomanNumeralsTest */ public…
/** * This class contains the constants used in the WaTor program. These constan
/** * This class contains the constants used in the WaTor program. These constants * may be changed when testing and so your program should use the constants but * not the values.…
/** * This method chooses the number of sticks to pick up based on the * sticksR
/** * This method chooses the number of sticks to pick up based on the * sticksRemaining and actionRanking parameters. * Config.MAX_ACTION =3,Config.MIN_ACTION=1 * Algori…
/** * This method finds all occurrences of guess in secretWord and returns new *
/** * This method finds all occurrences of guess in secretWord and returns new * disguisedWord with letters revealed after guess * * @param guess * @param secretWor…
/** * This program Performs various number base conversions. It also verifies if
/** * This program Performs various number base conversions. It also verifies if * a number is valid in its base. * Author: M. Rahman * Date: 06 September 2018 */ public class Num…
/** * This program lets the user play one or more guessing games. * In each game
/** * This program lets the user play one or more guessing games. * In each game, the computer selects a number in the range 1 to 100. * The use tries to guess the numbers. * If t…
/** * This program lets the user play one or more guessing games. In each game,
/** * This program lets the user play one or more guessing games. In each game, the * computer selects a number in the range 1 to 100. The use tries to guess the * numbers. If the…
/** * This program lets the user play one or more guessing games. In each game,
/** * This program lets the user play one or more guessing games. In each game, the * computer selects a number in the range 1 to 100. The use tries to guess the * numbers. If the…
/** * This program will act as a grocery store app. * * The purpose of this proj
/** * This program will act as a grocery store app. * * The purpose of this project is to have you create a linked list, add items to it, add computations to * fields within the n…
/** * This writes the simulation parameters and the chart of the simulation to a
/** * This writes the simulation parameters and the chart of the simulation to a file. If * simulationParameters is null or history is null then print an error message and leave t…
/** * Write a complete Java program to compute the total living cost for a semes
/** * Write a complete Java program to compute the total living cost for a semester at college. * The main method calls three methods to do this: 1. getTotalWeeks: requests from t…
/** * Write a description of class Project6 here. * * @author () * @version (a v
/** * Write a description of class Project6 here. * * @author () * @version (a version number or a date) */ import java.io.File; import java.io.PrintWriter; import java.io.FileNot…
/** * Write a function that receives marks received by a student in 3 * subjects
/** * Write a function that receives marks received by a student in 3 * subjects. It calculates the average and percentage of these * marks and stores the answers into the memory …
/** * Write the following STATIC methods * * getStudentWithHigherGpa, which has
/** * Write the following STATIC methods * * getStudentWithHigherGpa, which has two Student parameters (s1 and s2). It returns the Student object with the larger gpa. * * swapGPAs…
/** * You must implement the visitor. The symbol table is extra credit [10 pts]
/** * You must implement the visitor. The symbol table is extra credit [10 pts] for * those who wish to implement their own. Your symbol table must be very efficient * for the ful…
/** * fifteen.c * * Computer Science 50 * Problem Set 3 * * Implements Game of F
/** * fifteen.c * * Computer Science 50 * Problem Set 3 * * Implements Game of Fifteen (generalized to d x d). * * Using fifteen d * * wherebt the board's dimensions are to be d x…
/** * fifteen.c * * Computer Science 50 * Problem Set 3 * * Implements Game of F
/** * fifteen.c * * Computer Science 50 * Problem Set 3 * * Implements Game of Fifteen (generalized to d x d). * * Using fifteen d * * wherebt the board's dimensions are to be d x…
/** * q1: Write a public static method named q1 that takes an ArrayList of type
/** * q1: Write a public static method named q1 that takes an ArrayList of type String and * returns an int. This method returns the *index of* the shortest String among the value…
/** * q2: Write a public static method named q2 that takes a HashMap of type Str
/** * q2: Write a public static method named q2 that takes a HashMap of type String to Character * and returns an int. This method returns the *number of times* a most significant…
/** * stringReformat takes a person\'s name in the format and * reformats it to
/** * stringReformat takes a person's name in the format and * reformats it to the form * * Preconditions: * the string is not empty * there is exactly one ',' (comma) and it come…
/** *Performs single rotation with the left child *@param k2 the root node to be
/** *Performs single rotation with the left child *@param k2 the root node to be rotated. *@return the new root after rotation */ abstract protected TreeNode<T> rotateWithLe…
/** ========Implementation of Priority Heap ====== Complete the following class
/** ========Implementation of Priority Heap ====== Complete the following class with given prototype/header of a priority heap + Look for the TODO tasks and complete them + You ma…
/** A class of stacks whose entries are stored in a chain of nodes. Implement al
/** A class of stacks whose entries are stored in a chain of nodes. Implement all methods in MyStack class Main Reference : text book or class notes Do not change or add data fiel…
/** A class of stacks whose entries are stored in a chain of nodes. Implement al
/** A class of stacks whose entries are stored in a chain of nodes. Implement all methods in MyStack class Main Reference : text book or class notes Do not change or add data fiel…
/** A class to to test the Polynomial class. */ public class PolynomialTester {
/** A class to to test the Polynomial class. */ public class PolynomialTester { public static void main(String[] args) { Polynomial p = new Polynomial(new Term(-10, 0)); p.print()…
/** ArrayListPractice Anderson, Franceschi */ import java.awt.*; import javax.sw
/** ArrayListPractice Anderson, Franceschi */ import java.awt.*; import javax.swing.*; import java.awt.event.*; import java.util.ArrayList; import java.util.Iterator; public class…
/** ArrayListPractice Anderson, Franceschi */ import java.awt.*; import javax.sw
/** ArrayListPractice Anderson, Franceschi */ import java.awt.*; import javax.swing.*; import java.awt.event.*; import java.util.ArrayList; import java.util.Iterator; public class…
/** Class: ense352 Description: Test code for as1 q1.cpp */ #include
/** Class: ense352 Description: Test code for as1 q1.cpp */ #include <stdint.h> #include <iostream> #include <cassert> #include "q1.h" // students must write thi…
/** Color every node on the path from the root node to the minimum value in the
/** Color every node on the path from the root node to the minimum value in the * tree with the given color * @return the element with the smallest key, or null, if there is…
/** Create a program that prompts the user for a number of rows and number of co
/** Create a program that prompts the user for a number of rows and number of columns to create a 2 dimensional array (matrix) of integer values. Then ask the user for each value …
/** Create a program that prompts the user for a number of rows and number of co
/** Create a program that prompts the user for a number of rows and number of columns to create a 2 dimensional array (matrix) of integer values. Then ask the user for each value …
/** Demo program for the Person class chapter 6. Programing Challenge 3 */ publi
/** Demo program for the Person class chapter 6. Programing Challenge 3 */ public class PersonalInfoDemo1 { public static void main(String[]args) { // Create the objects. Person m…
Subject
Web development and programming
Use Browse or pick another subject.