Web development and programming
191828 questions • Page 8 / 3837
#Function to find the day of the week def dayofweek(data): d = int(data[1]) m =
#Function to find the day of the week def dayofweek(data): d = int(data[1]) m = int(data[0]) y = int(data[2]) if m < 3: z = y-1 else: z = y dayofweek = ( 23*m//9 + d + 4 + y + …
#Given a positive integer n between 1 and 9, generate the #permuations of the se
#Given a positive integer n between 1 and 9, generate the #permuations of the set {1,2,3,4,...,n} *USING the JOHNSON-TROTTER #ALGORITHM.* #Using 'import time' and 'time.clock()', …
#I have written this code for which one function is missing which I cant figure
#I have written this code for which one function is missing which I cant figure out, please help me to run this code. Thank you. #include <iostream> #include <cstdlib>…
#IMPLEMENTATION IN ANY LANGUAGES# Project Objective: in completing this project,
#IMPLEMENTATION IN ANY LANGUAGES# Project Objective: in completing this project, you will • Fully understand the page replacement mechanisms • Be able to simulate operating system…
#JAVA Copy your ChessPiece class. Create a new application titled populateChessB
#JAVA Copy your ChessPiece class. Create a new application titled populateChessBoard that contains your main statement. In your populateChessBoard class create 2 arrays, one to co…
#JAVA Create a new class titled ChessBoard that contains - A private multi-dimen
#JAVA Create a new class titled ChessBoard that contains - A private multi-dimensional array of containing the squares of the chess board Getter and Setter methods for putting a c…
#JAVA program By starting at the top of the triangle below and moving to adjacen
#JAVA program By starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bottom is 23. 3 7 4 2 4 6 8 5 9 3 That is…
#Java My code is at the end of the post. And I am tracked into several problems.
#Java My code is at the end of the post. And I am tracked into several problems. My original thinking is to create a 4x4 array first, in this order: (A,A, Q,Q K,K J,J,2, 2,5, 5, 6…
#Linked Lists and Classes #C++ Hi, please use singly linked list method to do th
#Linked Lists and Classes #C++ Hi, please use singly linked list method to do this question. Thank you! Here’s the contents of a file called example.cpp: If you try to compile thi…
#LinkedList #doubly #C++ Hi guys, I\'d appreciate if you can help me solve this
#LinkedList #doubly #C++ Hi guys, I'd appreciate if you can help me solve this question in C++ please! In this assignment your task is to implement a special kind of doubly-linked…
#MIPS ASSEMBLY PROGRAM Write a program that reads an array of 20 integers with a
#MIPS ASSEMBLY PROGRAM Write a program that reads an array of 20 integers with an appropriate prompt, stores it, and then prints in three formats: - One integer per line - All int…
#MODIFY THE TEMPLATE TO: Recall the grids from previous chapters. #Write code th
#MODIFY THE TEMPLATE TO: Recall the grids from previous chapters. #Write code that gets a width and height from the user, and returns a #two dimensional list, where each element i…
#MODIFY THE TEMPLATE TO: Write code to find the minimum #value of a list of inte
#MODIFY THE TEMPLATE TO: Write code to find the minimum #value of a list of integers entered by the user. import subprocess import sys #from answer import * def template(l): l…
#Please Change the template such that, Create a string that, when printed, #woul
#Please Change the template such that, Create a string that, when printed, #would put the words one, two, and three each on their own line. import subprocess #from answer import *…
#Please use Javafx not awt. Modify the the following source code so that when th
#Please use Javafx not awt. Modify the the following source code so that when the mouse is clicked within 30 pixels of the middle of the smiley face it changes color. It will alte…
#Program 5 simple cryptarithm solver 3.4#11 #since we have not yet studied permu
#Program 5 simple cryptarithm solver 3.4#11 #since we have not yet studied permutation generators, twe will not write a general cryptarithm solver. Instead, let's write a special …
#Program Analysis# – What is output by in the following program? Show All Work #
#Program Analysis# – What is output by in the following program? Show All Work #include <iostream > Using namespace std; int func (int a, int b); main () { int j =…
#Program Analysis# – What is output by in the following program? Show All Work #
#Program Analysis# – What is output by in the following program? Show All Work #include <iostream > Using namespace std; int func (int a, int b); main () { int j =…
#Program Analysis# – What is output by in the following program? Show All Work v
#Program Analysis# – What is output by in the following program? Show All Work void func (int i, int j); { int iRetVal; if ( i >= -2 && j <= 2 ) …
#Program Analysis# – What is output by in the following program? Show All Work v
#Program Analysis# – What is output by in the following program? Show All Work void func (int i, int j); { int iRetVal; if ( i >= -2 && j <= 2 ) …
#Python The last Stop Boutique is having a five-day sale. Each day, starting on
#Python The last Stop Boutique is having a five-day sale. Each day, starting on Monday, the price will drop 10% of the previous day's price. For example, if the orginal price of a…
#Recall in the lesson on sorts that we had you complete the #Bubble and Selectio
#Recall in the lesson on sorts that we had you complete the #Bubble and Selection sort, and we showed you Merge sort. 1e didn't show any of insertion sort, and I bet you can #gues…
#TITLE1 Bla Bla bla bla bla bla bla bla bla bla bla bla bla Bla Bla bla bla bla
#TITLE1 Bla Bla bla bla bla bla bla bla bla bla bla bla bla Bla Bla bla bla bla bla bla bla bla bla bla bla bla Bla Bla bla bla bla bla bla bla bla bla bla bla bla Bla Bla bla bla…
#This function \"binarySearchPythonCode\" identifies the elements which is prese
#This function "binarySearchPythonCode" identifies the elements which is present in the start and end values def binarySearchPythonCode(list, Element, startElement, endElement): #…
#This one is a challenge. There\'s a lot going on: splitting #up strings, removi
#This one is a challenge. There's a lot going on: splitting #up strings, removing unnecessary characters, converting to #integers, and running a big conditional. Our solution to #…
#Trying to create a simple while loop that uses a #pre-stored width #and height
#Trying to create a simple while loop that uses a #pre-stored width #and height to return a string of all of the coordinates of each #tile in the grid, in order, separated by spac…
#UBUNTU G++ When I run this command: g++ -std=c++17 -Wall -Icatch.hpp CalcList.c
#UBUNTU G++ When I run this command: g++ -std=c++17 -Wall -Icatch.hpp CalcList.cpp PP1Test.cpp I got this warning: cc1plus: warning: catch.hpp: not a directory. I put all my files…
#USING PYTHON WOULD BE BEST# Graphs have been broadly employed in modeling vario
#USING PYTHON WOULD BE BEST# Graphs have been broadly employed in modeling various kinds of applications. In this project, you apply graph algorithms to solve applications specifi…
#We\'ve written the function, selectionsort, below. It takes #in one list parame
#We've written the function, selectionsort, below. It takes #in one list parameter, alist. Our version of selection sort #involves finding the minimum value and moving it to an #e…
#\'s 2.13.1 , 2.13.2, 2.13.3 In the following problems, the data table contains
#'s 2.13.1 , 2.13.2, 2.13.3 In the following problems, the data table contains the values for registers r3 and r4. You will he asked to perform several ARM logical operations on t…
#create class called car class Car: def __init__(self,year,make,speed): self.__y
#create class called car class Car: def __init__(self,year,make,speed): self.__year_model=year self.__make=make self.__speed=0 #set the arguments for speed,year, and make def set_…
#data declarations: numbers: .space 36 message1: .asciiz \"Enter an integer: \ \
#data declarations: numbers: .space 36 message1: .asciiz "Enter an integer: " message2: .asciiz "The array contains the following: "next_line: .asciiz " " .text .globl main main: …
#define CRT SECURE NO WARNINGS #include : scanf %c\", cmd) switch (cmd) Add rect
#define CRT SECURE NO WARNINGS #include : scanf %c", cmd) switch (cmd) Add rectangle case 'A' case 'a' if (nRect 10) List is full. printf ("No room in list of rectangles "): else …
#define H_LinkedListType #include #include using namespace
#define H_LinkedListType #include <iostream> #include <cassert> using namespace std; //Definition of the node template <class Type> struct nodeType { Type info; …
#define MAX_DIM 100 #define MAX_ITER 500 #define TOLERANCE 1.e-6 void gauss_seid
#define MAX_DIM 100 #define MAX_ITER 500 #define TOLERANCE 1.e-6 void gauss_seidel (double a[][MAX_DIM], double b[], double x[], int n); void main () { int i, j, n; int violation_…
#define PI 3.14 //REQUIRED FUNCTIONS DECLARED. double cos_N (double x, int N); d
#define PI 3.14 //REQUIRED FUNCTIONS DECLARED. double cos_N (double x, int N); double cos_delta(double x, double delta ); int factorial (int n ); double power ( double x, int n); …
#define STACK_SIZE 100 #include typedef intStackElement; /* External
#define STACK_SIZE 100 #include <stdlib.h> typedef intStackElement; /* External Variables:*/ StackElement contents[STACK_SIZE]; int top = -1; void make_empty(void) { top = -…
#define _CRT_SECURE_NO_WARNINGS #include #include #include #include #define MAX_
#define _CRT_SECURE_NO_WARNINGS #include #include #include #include #define MAX_STRING_LENGTH 80 using namespace std; int main() { string userInput; cout<<"Please enter a se…
#define _CRT_SECURE_NO_WARNINGS #include #include #include
#define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <fstream> #include <string> #include <cctype> #include <cstdlib> #include <algorithm&…
#define _CRT_SECURE_NO_WARNINGS #include #include #include
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct { int *array; int effectiveSize; int maximumSize; } Dyn…
#define _CRT_SECURE_NO_WARNINGS #include #include \"prog5_functions.h\
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include "prog5_functions.h" #include <math.h> double low_point, high_point, result, hp, lp, result2, x, change_in_x…
#example of using a dictionary to store words and translations from tkinter impo
#example of using a dictionary to store words and translations from tkinter import filedialog from tkinter import * root = Tk() root.withdraw() root.filename = filedialog.askopenf…
#ifndef ARRAYLIST_H_ #define ARRAYLIST_H_ #define DEFAULT_CAPACITY 5 #define TRU
#ifndef ARRAYLIST_H_ #define ARRAYLIST_H_ …
#ifndef ARRAYLIST_H_ #define ARRAYLIST_H_ #define DEFAULT_CAPACITY 5 #define TRU
#ifndef ARRAYLIST_H_ #define ARRAYLIST_H_ …
#ifndef ARRAY_H_INCLUDED #define ARRAY_H_INCLUDED #include #include
#ifndef ARRAY_H_INCLUDED #define ARRAY_H_INCLUDED #include <iostream> #include <string> using namespace std; /* error codes 0 -- no error 1 -- non-positive size for co…
#ifndef AVLTREE_H #define AVLTREE_H #include \"Data.h\" template cl
#ifndef AVLTREE_H #define AVLTREE_H #include "Data.h" template <typename T> class AVLTree { private: struct AVLNode { AVLNode* leftChild; AVLNode* rightChil…
#ifndef BAKERCHRISTOPHER_H #define BAKERCHRISTOPHER_H #include using na
#ifndef BAKERCHRISTOPHER_H #define BAKERCHRISTOPHER_H #include <string> using namespace std; class ResistorClass { private: double nominalResistance; double tolerance; strin…
#ifndef BASEPLUS_H #define BASEPLUS_H #include // C++ standard string c
#ifndef BASEPLUS_H #define BASEPLUS_H #include <string> // C++ standard string class class BasePlusCommissionEmployee { public: BasePlusCommissionEmployee( const std::string…
#ifndef BATTLESHIP_H_ #define BATTLESHIP_H_ // coordinates (location) of the shi
#ifndef BATTLESHIP_H_ #define BATTLESHIP_H_ // coordinates (location) of the ship and shots class location{ public: location(void); // void constructor, assigns -1 to X void pick(…
#ifndef BST_H #define BST_H // Representation of an element in the tree struct N
#ifndef BST_H #define BST_H // Representation of an element in the tree struct Node { int val; // Value of the node Node *left; // Pointer to the left node Node *right; // Pointer…
Subject
Web development and programming
Use Browse or pick another subject.