Web development and programming
191828 questions • Page 143 / 3837
//name of my program public class ProteinFinder{ //Strings are set up as One-dim
//name of my program public class ProteinFinder{ //Strings are set up as One-dimensional array to be used by user private static String[] nSequences = {"ATG", "GCA", "ACG", "TGA",…
//need help with converting numbers from 0-2,147,483,647 to Text //here are some
//need help with converting numbers from 0-2,147,483,647 to Text //here are some numbers to test 0,01 002, 3, 10, 011 ,13, 20, 27,100, 101, // 0102, 111, 130 , 133, ... ,200000000…
//number of men or women #define N 4 //Fuctions returns true if woman \'w\' pref
//number of men or women #define N 4 //Fuctions returns true if woman 'w' prefers man 'ml' over man 'm' bool wPrefersM10verMC int prefer[2*N][N],int w, int m, int ml){ //Check if …
//pointers using subcript natation // Complete this program with subscript notat
//pointers using subcript natation // Complete this program with subscript notation for a pointer variable using the pointer name and the pointer to the array /* Here are the valu…
//preprocessor directives #define _CRT_SECURE_NO_DEPRECATE #include #d
//preprocessor directives #define _CRT_SECURE_NO_DEPRECATE #include <stdio.h> #define MAXGUESSES 10 void Instructions(); int Play(int answer); int GetGuess(); int CompareGue…
//printing the first even integers and adding the integers// #include#includeusi
//printing the first even integers and adding the integers// #include#includeusing namespace std; int main () { int a; int r; r = 2; a = 2*r; int sum; sum = 0; for(a = 2*r ; r<…
//printing the first even integers and adding the integers// #include#includeusi
//printing the first even integers and adding the integers// #include#includeusing namespace std; int main () { int a; int r; r = 2; a = 2*r; int sum; sum = 0; for(a = 2*r ; r<…
//producer Let\'s try rephrasing the producer-consumer problem (over a bounded b
//producer Let's try rephrasing the producer-consumer problem (over a bounded buffer), using semaphores. Need four variables // produce next_produced wait(empty); wait(buf_mutex) …
//program 4 #include #include #define true 1 typedef struct
//program 4 #include <stdio.h> #include <string.h> #define true 1 typedef struct { int carId; // a unique ID of a car char make[20]; // make of the car char m…
//reorder the following code and plug it on the above main method.execute and ru
//reorder the following code and plug it on the above main method.execute and run the program on jgrasp for the three scores(70,80,90) import javax.swingJOptionPane; public class …
//start program, bit test.c #include typedef union struct unsigned bito 1; unsig
//start program, bit test.c #include typedef union struct unsigned bito 1; unsigned bit1:1; unsigned bit2 1; unsigned bit3 1; unsigned nibble a 1; unsigned nibble2 b 1 unsigned ni…
//still having error on calling array in another method and possible problems wi
//still having error on calling array in another method and possible problems with the math language import java.util.Scanner; import java.lang.Math; public class arrayVariance { …
//strings Cstring concatenation // This program asks for the user’s first, middl
//strings Cstring concatenation // This program asks for the user’s first, middle, and last names. //The names are stored in three different character arrays. //The program then s…
//structures passing to functions as pointer // create a Student structure that
//structures passing to functions as pointer // create a Student structure that contains an ID number (integer), student name (string class), //number of courses taken (integer) a…
//structures passing to functions by reference // create a Student structure tha
//structures passing to functions by reference // create a Student structure that contains an ID number (integer), student name (string class), number of courses taken (integer) a…
//structures passing to functions by value // create a Student structure that co
//structures passing to functions by value // create a Student structure that contains an ID number (integer), student name (string class), //number of courses taken (integer) and…
//task4 #include #include #include #include
//task4 #include<fcntl.h> #include<stdio.h> #include<stdlib.h> #include<sys/stat.h> #include<unistd.h> #define BUFFER_SIZE 1000 //Preprocessor macro …
//text writer //Include libraries #include #include #include
//text writer //Include libraries #include<iostream> #include<string> #include<fstream> //Use namespace using namespace std; //Define a class class TextWriter { …
//this class stores the face values and suits of the cards andreturns the names
//this class stores the face values and suits of the cards andreturns the names #include <iostream> #include <string> #include <vector> using namespace std; Clas…
//this is java programming I got stuck in convertCard ,dealCard and dealHands me
//this is java programming I got stuck in convertCard ,dealCard and dealHands methods //how to solve convertCard mehtod by using Final variables ? import java.util.Scanner; public…
//this is testing value = Evaluator.Evaluate(\"(((((AAAAA2 + 123)))))\", Lookup)
//this is testing value = Evaluator.Evaluate("(((((AAAAA2 + 123)))))", Lookup); //223 expected //yet it crashes due to the unhandeled extra parenthesis any help would be great, th…
//this is the application codes. #include #include #include
//this is the application codes. #include <cassert> #include <iostream> #include <fstream> #include <string> #include <stdio.h> #include <time.h&g…
//this is the time.h #include class Time{ public: Time(int hours, int
//this is the time.h #include<iostream> class Time{ public: Time(int hours, int minutes, int seconds):hours(hours), minutes(minutes),seconds(seconds){} void print(){std::cou…
//this method allows you to non-recursively perform binary search on an array in
//this method allows you to non-recursively perform binary search on an array in ascending //order public static int BinarySearch_nr(int[] arr, int start, int end, int key) { //yo…
//this program has to be sloved in c++ and strictly follow the instractions . Wr
//this program has to be sloved in c++ and strictly follow the instractions . Write a modular program that allows two players to play a game of tic-tac-toe. Use a two dimensional …
//timer setup for timer0, timer1, and timer2. //For arduino uno or any board wit
//timer setup for timer0, timer1, and timer2. //For arduino uno or any board with ATMEL 328/168.. diecimila, duemilanove, lilypad, nano, mini... //this code will enable all three …
//use integer variable to store pin # for LED (global variable) II connect LED t
//use integer variable to store pin # for LED (global variable) II connect LED this digital port/pin intledPina 10; // the setup) function runs once at startup void setup() pin 10…
//using java package quetion3 ; import java.util.ArrayList; /** There is a file
//using java package quetion3; import java.util.ArrayList; /** There is a file called recycling-report-main-street.txt in the root directory of this project. This file contains da…
//using java package quetion4; /** * * Read the following, and answer the questi
//using java package quetion4; /** * * Read the following, and answer the questions by filling in the Strings in the code. Java doesn't make you deal with possible NullPointerExce…
//using java package quetion5; import java.util.LinkedList; import java.util.NoS
//using java package quetion5; import java.util.LinkedList; import java.util.NoSuchElementException; /** * This program has two example methods. Both throw exceptions when you run…
//using java package quetion6; import java.util.LinkedList; /** Instead of waiti
//using java package quetion6; import java.util.LinkedList; /** Instead of waiting for an exception and catching it, it is usually better to try and prevent problems. Can you thin…
//using java package quetion7; /** * * Write a program that creates a sales repo
//using java package quetion7; /** * * Write a program that creates a sales report for a coffee shop. The coffee shop will use this at the end of every day to calculate sales, exp…
//variable to store probing location //calculating the hash code //if the positi
//variable to store probing location //calculating the hash code //if the position is empty, immediately return failure... //...but if it's a match, return the data straight away.…
//whoever you are helping me get through this.. thank you. e. Given the followin
//whoever you are helping me get through this.. thank you. e. Given the following algorithm for deleting a a node from a binary tree (or a portion of the algorithm) in real code, …
//writtern in c++// This class implements rational number of the type 2/3. Requi
//writtern in c++// This class implements rational number of the type 2/3. Requirements: Write a class Fraction; The private data consists of: int num, (numerator of the fraction)…
/Be careful!!!!! int num = 7; while (num < 10); { num++; } cout
/Be careful!!!!! int num = 7; while (num < 10); { num++; } cout << num; Flag this Question Question 2 Given the following code, what value will num have after the loop?: …
/Chapter 9, Debugging Exercise; Java Programming; Joyce Farraell, 8th ed 1 impor
/Chapter 9, Debugging Exercise; Java Programming; Joyce Farraell, 8th ed 1 import javax.swing.*; 2 public class DebugNine2 3 { 4 public static void main(String[] args) 5 { 6 Movie…
/Create a New Java Project . //Design a Ship class that has the following member
/Create a New Java Project . //Design a Ship class that has the following members: //A field for the name of the ship (a string). //A field for the year that the ship was built (a…
/Debugged, Joyce Farrell, Java Programming, Chapter 10 // need to be fixed, ther
/Debugged, Joyce Farrell, Java Programming, Chapter 10 // need to be fixed, there is error when u run the java. //there are 2 class below 1 // A PhoneBook is a Book with a city 2 …
/FILE: bag3.h (part of the namespace main savitch 5) // CLASS PROVIDED: bag (a c
/FILE: bag3.h (part of the namespace main savitch 5) // CLASS PROVIDED: bag (a collection of items, where each item may appear multiple times) // TYPEDEFS for the bag class // typ…
/FILE: node1.h (part of the namespace main_savitch 5) // PROVIDES: A class for a
/FILE: node1.h (part of the namespace main_savitch 5) // PROVIDES: A class for a node in a linked list and a collection of functions for // manipulating linked list.s /I TYPEDEF f…
/FILE: node1.h (part of the namespace main_savitch 5) // PROVIDES: A class for a
/FILE: node1.h (part of the namespace main_savitch 5) // PROVIDES: A class for a node in a linked list and a collection of functions for // manipulating linked list.s /I TYPEDEF f…
/Help with Java OOP// So for my assignment we are making a sort of pet tracker a
/Help with Java OOP// So for my assignment we are making a sort of pet tracker and it's the first assignment dealing with this stuff. I kind of understand the concept but not enti…
/PrecondViolatedExcept.h #ifndef PRECOND_VIOLATED_EXCEPT_ #define PRECOND_VIOLAT
/PrecondViolatedExcept.h #ifndef PRECOND_VIOLATED_EXCEPT_ #define PRECOND_VIOLATED_EXCEPT_ #include <stdexcept> #include <string> class PrecondViolatedExcept : public …
/Program to find the average test score and output the average //test score and
/Program to find the average test score and output the average//test score and all the test scores that are less than //the average test score. #include #include using namespace s…
/Purpose: This program reads data for a computer science closed lab section. //
/Purpose: This program reads data for a computer science closed lab section. // Add a code to print the scores so that each student's labs appear // on a separate line of o…
/The templates: import java.awt.Color; import java.awt.event.ActionEvent; import
/The templates: import java.awt.Color; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.BorderFactory; import javax.swing.BoxLayout; imp…
/WRITE AN APPLICATION CLASS HIGHARRAYAPP.JAVA TO TEST ALL METHODS DEFINED IN HIG
/WRITE AN APPLICATION CLASS HIGHARRAYAPP.JAVA TO TEST ALL METHODS DEFINED IN HIGHARRAY.JAVA CLASS. THE APPLICATION SHOULD ALLOW THE USER TO DECIDE THE LENGTH OF THE ARRAY ( ASK FO…
/Write an application that accepts a user\'s password from an input dialog. //If
/Write an application that accepts a user's password from an input dialog. //If the entered password is less than six characters, more than 10 characters, or does not contain at l…
/Write an application that accepts a user\'s password from an input dialog. //If
/Write an application that accepts a user's password from an input dialog. //If the entered password is less than six characters, more than 10 characters, or does not contain at l…
Subject
Web development and programming
Use Browse or pick another subject.