Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Browse D

Alphabetical listing with fast deep pagination.
30085 items • Page 574 / 602

All 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
def generate_world(opts): \"\"\" Accepts: opts -- parsed command line options Re
def generate_world(opts):     """     Accepts: opts -- parsed command line options     Returns: world -- a list of lists that forms a 2D pixel buffer     Description: This functio…
def generate_world(opts): \"\"\" Accepts: opts -- parsed command line options Re
def generate_world(opts):     """     Accepts: opts -- parsed command line options     Returns: world -- a list of lists that forms a 2D pixel buffer     Description: This functio…
def get invalid_colors(list): There are many ways to represent colors in a compu
def get invalid_colors(list): There are many ways to represent colors in a computer, but one common is to specify the intensity of three colored lights: red, green, and blue. By c…
def getFamilyCar(annualIncome, numberOfChildren): Define a function that takes i
def getFamilyCar(annualIncome, numberOfChildren): Define a function that takes in an annual income and the number of children in a family and returns the type of car that would li…
def getInput(): tHeight = int(input(\'Please enter the height of the triangle: \
def getInput(): tHeight = int(input('Please enter the height of the triangle: ')) return tHeight def Pascal(num): if (num == 1): return [1] else: line = [1] prev_line = Pascal(num…
def get_pronounciation (pronouncing_line): \"\"\" (str) rightarrow list of str P
def get_pronounciation (pronouncing_line): """ (str) rightarrow list of str Precondition: pronouncing_line has the form: WORD PHONEME_1 PHONEME_2 ... PHONEME_LAST Return a list co…
def gradientDescent (X, y, theta, alpha, num_iters): This function returns a tup
def gradientDescent (X, y, theta, alpha, num_iters): This function returns a tuple (theta, cost_array) m len(y) cost array - for i in range(0, num_iters): START TODO # Make predic…
def increment(time, seconds): time.seconds = time.seconds + seconds while time.s
def increment(time, seconds):    time.seconds = time.seconds + seconds    while time.seconds >= 60:        time.seconds = time.seconds - 60        time.minutes = time.minutes +…
def init_board(num_rows, num_cols): Given two positive ints, create an empty boa
def init_board(num_rows, num_cols): Given two positive ints, create an empty board. Unlike the physical game, our boards can be any positive dimensions. • Assume: num_rows and num…
def is_valid_coord(board, r, c): Given a board and two ints, do r and c describe
def is_valid_coord(board, r, c): Given a board and two ints, do r and c describe a valid location on the board? Negative indexes are not allowed here (as a design decision). • Ass…
def locate(filename,s): Given a string filename and a string s to search for in
def locate(filename,s): Given a string filename and a string s to search for in the file, return an ordered list of all line numbers corresponding to the lines containing at least…
def main(): Mb = input(\"enter the mass of the bike \") Mb = int(Mb) V = input(\
def main(): Mb = input("enter the mass of the bike ") Mb = int(Mb) V = input("enter the velocity ") V = float(V) cfdraft = input("enter cf draft ") cfdraft = float(cfdraft) for M …
def main(): found = False search = input (\'Which one?\') student_file = open (\
def main(): found = False search = input ('Which one?') student_file = open ('s.txt', 'F') temp_file = open ('t. txt', 'w') descr = student_file. Readline() while descr l = ' ': n…
def main(): opts = get_commandline_options() world = generate_world(opts) report
def main(): opts = get_commandline_options() world = generate_world(opts) report_options(opts) blit(world, patterns.glider, 20, 20) run_simulation(opts, world) if __name__ == '__m…
def main(): opts = get_commandline_options() world = generate_world(opts) report
def main(): opts = get_commandline_options() world = generate_world(opts) report_options(opts) blit(world, patterns.glider, 20, 20) run_simulation(opts, world) if __name__ == '__m…
def max(a_array,size_of_array): index=0#initialize index maxNum=a_array[0]#initi
def max(a_array,size_of_array):     index=0#initialize index     maxNum=a_array[0]#initialize max number     while index<size_of_array:         if a_array[index]>maxNum:    …
def monte_carlo_pi(N=1e+4): \"\"\" generate N # of random points (x,y), where x
def monte_carlo_pi(N=1e+4): """ generate N # of random points (x,y), where x and y are uniformly distributed on [-1,1], count the n # of points that are inside the disk center at …
def names(): with open(\'names.txt\') as f: words = [i.strip().lower() for i in
def names():     with open('names.txt') as f:         words = [i.strip().lower() for i in f.read().split()]         return dict(zip(words[:-1], words[1:]))        is what i have s…
def num_space_runs1(s): \"\"\"Returns: The number of runs of spaces in the strin
def num_space_runs1(s): """Returns: The number of runs of spaces in the string s. A run is a collection of adjacent spaces. We need a non-space character in between to break up ru…
def partition (L, first, last) Pick L[first] as the \"pivot\" around which we pa
def partition (L, first, last) Pick L[first] as the "pivot" around which we partition the list p first for current in range Cp+1, last-1): if L[current] LCpl swap CL, current, p+1…
def powerset (A) \"\"Build the powerset of A Given a set A, the powerset of A is
def powerset (A) ""Build the powerset of A Given a set A, the powerset of A is the set of all subsets of A. Hint: recursion, anyone? no, really, you need to use recursion see lect…
def print_index_of_item(lst, item): \"\"\"Print the index of an item in a list,
def print_index_of_item(lst, item): """Print the index of an item in a list, followed by the item. If the item appears multiple times in the list, return the index and the item fo…
def read_board(s): Given a string containing lines of either player pieces or pe
def read_board(s): Given a string containing lines of either player pieces or periods, pick apart the string and generate the corresponding board. Blank lines must be ignored, but…
def read_file(fp): csv_fp = csv.reader(fp) D ={} next(csv_fp, None) for L in csv
def read_file(fp): csv_fp = csv.reader(fp) D ={} next(csv_fp, None) for L in csv_fp: manufacturer = L[46] year = L[63] city_fuel = L[4] highway_fuel = L[34] if year != 2017: if ma…
def recursive_selSort (L): \" \"Selection sort, recursive argmax version. This s
def recursive_selSort (L): " "Selection sort, recursive argmax version. This solution is suboptimal for efficiency, because of all the cloned lists you have to create (which requi…
def reverse_add(low, high): \'\'\' Executes the reverse and add algorithm for in
def reverse_add(low, high): ''' Executes the reverse and add algorithm for integers in the range low to high. For example, if low is 10 and high is 50, then the function would run…
def scrabble score(words): sumo for letter in vords sum- sumscrabble_map.get(let
def scrabble score(words): sumo for letter in vords sum- sumscrabble_map.get(letter) return sum def read words (file): vordsth for line in open(file): line line.strip) words[1ine-…
def seq_numbers(string): count=3 #Create a function Constants that will check if
def seq_numbers(string): count=3 #Create a function Constants that will check if the string/ password #has no sequence of 3 or more numbers. If the string has does not, then retur…
def show_table(table): Given table as a list of lists of strings, create and ret
def show_table(table): Given table as a list of lists of strings, create and return a formatted string representing the 2D table. Follow these requirements (examples below): o Eac…
def simple _board(size): Given a size, produce a square \"ASCII art\" grid repre
def simple _board(size): Given a size, produce a square "ASCII art" grid representing a game board (like fou checkers or chess). The game board will use dashes (-) for the horizon…
def simple_pig_latin(input, sep= \" \", end= \"middot\"): Accept a string input,
def simple_pig_latin(input, sep= " ", end= "middot"): Accept a string input, which might include multiple words separated by a separator sep and perform the following steps: Find …
def syllable_count(word): \"\"\" Returns the number of syllables in the word. Fo
def syllable_count(word): """ Returns the number of syllables in the word. For this exercise, assume that syllables are determined as follows: Each sequence of vowels a e i o u y,…
def timing(minutes): # probably you should change these before returning, right?
def timing(minutes): # probably you should change these before returning, right?... num_fortnights = 0 num_days = 0 num_hours = 0 num_minutes = 0 if minutes >= 20160: num_fortn…
def toCSV(self) rightarrow str: \"\"\" pre: none post: returns a string with the
def toCSV(self) rightarrow str: """ pre: none post: returns a string with the attributes of the course separated by a comma in the order: semester, year, department, number, instr…
defect An automobile manufacturer finds that 1 in every 2000 automobiles produce
defect An automobile manufacturer finds that 1 in every 2000 automobiles produced has a particular manufacturing efect in a random sample of 4500 cars (a) Use a binomial distribut…
defects 2 2 1 3 3 4 2 2 2 2 1 2 1 3 1 2 2 5 6 1 0 1 1 1 5 1 4 2 4 0 2 1 2 4 0 1
defects 2 2 1 3 3 4 2 2 2 2 1 2 1 3 1 2 2 5 6 1 0 1 1 1 5 1 4 2 4 0 2 1 2 4 0 1 3 2 3 1 1 5 3 2 3 4 6 1 4 6 2. 3/4 points |Previous Answers My No A sanitation supervisor is intere…
defects 2 2 1 3 3 4 2 2 2 2 1 2 1 3 1 2 2 5 6 1 0 1 1 1 5 1 4 2 4 0 2 1 2 4 0 1
defects 2 2 1 3 3 4 2 2 2 2 1 2 1 3 1 2 2 5 6 1 0 1 1 1 5 1 4 2 4 0 2 1 2 4 0 1 3 2 3 1 1 5 3 2 3 4 6 1 4 6 2. 3/4 points |Previous Answers My No A sanitation supervisor is intere…
defects 2 2 1 3 3 4 2 2 2 2 1 2 1 3 1 2 2 5 6 1 0 1 1 1 5 1 4 2 4 0 2 1 2 4 0 1
defects 2 2 1 3 3 4 2 2 2 2 1 2 1 3 1 2 2 5 6 1 0 1 1 1 5 1 4 2 4 0 2 1 2 4 0 1 3 2 3 1 1 5 3 2 3 4 6 1 4 6 2. 3/4 points |Previous Answers My No A sanitation supervisor is intere…
defects 2 2 1 3 3 4 2 2 2 2 1 2 1 3 1 2 2 5 6 1 0 1 1 1 5 1 4 2 4 0 2 1 2 4 0 1
defects 2 2 1 3 3 4 2 2 2 2 1 2 1 3 1 2 2 5 6 1 0 1 1 1 5 1 4 2 4 0 2 1 2 4 0 1 3 2 3 1 1 5 3 2 3 4 6 1 4 6 2. 3/4 points |Previous Answers My No A sanitation supervisor is intere…
defination of class register(header file) class cashRegister { public: int getCu
defination of class register(header file) class cashRegister { public: int getCurrentBalance() const; void acceptAmount(int amountIn); cashRegister(int cashIn = 500); private: int…
define Pygopodinae, Dibamidae, Amphisbaenia and Serpentes. Your definition shoul
define Pygopodinae, Dibamidae, Amphisbaenia and Serpentes. Your definition should include at least two synapomorphies, information on diet, Zoogeographic distribution, estimated n…
define a class called odd-numbered that has the following property 1.it has one
define a class called odd-numbered that has the following property 1.it has one private integer number modd which it all the time an odd and positive number 2.has a default constr…
define a class called odd-numbered that has the following property 1.it has one
define a class called odd-numbered that has the following property 1.it has one private integer number modd which it all the time an odd and positive number 2.has a default constr…
define a class called time. The class should have four datamembers: hour, minute
define a class called time. The class should have four datamembers: hour, minute, second ans AM/PM flag. a. it should have a constructor to initialize these data members.Remember …
define a class called utilities.... Define a class called Utilities which has th
define a class called utilities.... Define a class called Utilities which has the following public methods: Define a method called count that takes two parameters named data and c…
define a class called “Triangle” which has two private properties: base (float),
define a class called “Triangle” which has two private properties: base (float), and height (float). Define proper functions (including constructors, get/set etc., destructor) to …
define a class name Employee whose objects are records for employee. Derive this
define a class name Employee whose objects are records for employee. Derive this class from the class person given in the listing 8.1. An employee record inherits an employee's na…
define a class rectangleType that stores length and width of a rectangle. a.) Ov
define a class rectangleType that stores length and width of a rectangle. a.) Overload +,-,<,>,<=,>=,==,!=operators for your class. For example the following should be…
define a cost management system and identify its purpose. A. A cost management s
define a cost management system and identify its purpose. A. A cost management system is a collection of tools and techniques that identifies how management's decisions affect cos…
define a function drawCircle. This function should expect a Turtle object, the c
define a function drawCircle. This function should expect a Turtle object, the coordinates of the circle's center point, and the circle's radius as arguments.The function should d…