C

09/23/24

Defining and using functions and structures

You have been asked to recreate some C source code that was lost. The only remaining source code is the following: int main() { char* months[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", ... more

What is this formula??

I am in class for computer science and have to write a program that utilizes the following "formula" (which I have come to find out this instructor used software to hand write):I can't find it... more

java method creation

provide a sequence of Java statements to declare, create, and initialize an array of the first 500 positive even integers. the value of the first element should be 2 the value of the second element... more

09/08/23

Order the following functions by growth rate

Order the following functions by growth rate (n, sqrt n, n^1.5, n^2, n logn, 3/n, n log logn, 2^n,6,n^3)

Write a function durdle_game(target) which takes in as an argument a single string that will be the target to guess, and lets the user attempt to guess the target word

Write a function durdle_game(target) which takes in as an argument a single string that will be the target to guess, and lets the user attempt to guess the target word. Before their first guess,... more

how to do this in python?

Import the CSV module this csv: name   common_color.  peal   typeapples     red          waxy   fruitoranges    orange       ... more

03/12/23

Computer Science

Draw a class hierarchy diagram for the following scenario. Indicate which class is the super class, and which classes are the extended child classes. Indicate in which classes you would locate each... more

Whats wrong with my code here? python

import csv import lasal_acreage # import statement to import csv module import csv def sum_acreage(file_name): sum = 0 with open(file_name, newline='') as csvfile: reader =... more

03/03/23

Design a circuit to add two 2-bit binary numbers and display the results of the addition as a 3- bit binary number.

Design a circuit to add two 2-bit binary numbers and display the results of the addition as a 3-bit binary number. To do this, you will use the four switches on your Breadboard Companion asyour two... more
C++

03/02/23

C++ statements question

Given a double variable named areaOfSquare write the necessary code to read in a value into areaOfSquare and print out the length of the side of that square.If any value read in is not valid input,... more

02/28/23

Exercise 6-5 Fill in the blanks in the functions below,

Using slicing. last_three is intended to get the last three elements of the list being passed in. odd_indexes is intended to get only the elements that are at odd indexes. def last_three(data): ... more

02/27/23

Write a function word_mix(wordlist1, wordlist2) that takes as parameters two lists that contain strings.

Use the following template for EVERY function that you write. The docstring below should be placed inside of the function, just after the function signature.'''Purpose:Parameter(s):Return... more

how to use .format?

Write a function that takes 3 strings - first name, last name and middle initial. Return one string that has the person’s full name. Make sure that the first letter of each name is capitalized... more

12/08/22

How to correct the prolog full stop in clause body error?

weather(phoenix, spring, hot).weather(phoenix, summer, hot).weather(phoenix, fall, hot).weather(phoenix, winter, warm).weather(wellington, spring, warm).weather(wellington, summer,... more
Sql

07/10/22

SQL Queries working with dates

Write a query that will list the employee number, employee last name, employee first name, employee hire date, a computation of the number of years since the employee was hired up to the date you... more

Create a program should use Zeller's rule to output the day of the week any date occurred and for each weekday, output a proverb, fortune, piece of wisdom, etc.

I am creating a Zeller's program but not sure how to. Please help me out.Research a rule called "Zeller's Congruence". This rule provides a complex formula that can be used to determine what day of... more

04/05/21

Python quiz about return in functions

How many return statement can be added in a function in python

Why and how are join tables used?

I am getting an error that constructor "cannot be applied to given types"

Given this code:Main.java class Main { public static void main(String[] args) { SpecificThing mine = new SpecificThing(); System.out.println(mine.double_my_number()); ... more

Deterministic Finite Automata or Nondeterministic Finite Automata

Deterministic Finite Automata or Nondeterministic Finite Automata that accepts the set of strings in ∑ = {0,1} such that every substring of length 4 contains at least three 1s.

07/03/19

How do you create an empty array in Swift?

Prefer composition over inheritance?

Why prefer composition over inheritance? What trade-offs are there for each approach? When should you choose inheritance over composition?

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.