1,518 Answered Questions for the topic computer science
04/30/20
Your program must define and call the following function. The function should return true if the input year is a leap year and false otherwise. (Java)
A year in the modern Gregorian Calendar consists of 365 days. In reality, the earth takes longer to rotate around the sun. To account for the difference in time, every 4 years, a leap year takes...
more
Computer Science Java
04/30/20
Need help understanding this method
writeToFilepublic static void writeToFile(double[][] data,java.io.File outputFile)throws java.io.FileNotFoundExceptionWrites the ragged array of doubles into the file. Each row is on a...
more
Computer Science Java
04/30/20
Need Help understanding method
public static double[][] readFile(java.io.File file)throws java.io.FileNotFoundExceptionReads from a file and returns a ragged array of doubles The maximum rows is 10 and the maximum columns...
more
04/29/20
Plz help whats the correct answers for these java questions?(part2) ASAP!!
Q21:float is the type that denotes floating-point numbers that can have fractional parts?a)Trueb)FalesQ22:instance variables that are numbers are initialized to null default value?a)Trueb)FalesQ23:...
more
Computer Science
04/28/20
vdsjlefrz67oR%&$DTC VBUJKG outpg
a) gk2sub) 14576u7igc) k3gfuigi79d) 3y2efi3789i
04/27/20
Online shopping cart
(1) Create three files to submit:
ItemToPurchase.h - Class declaration
ItemToPurchase.cpp - Class definition
main.cpp - main() function
Build the ItemToPurchase class with the following...
more
04/24/20
Need Help with this Computer Science questions
consider the following function named "mystery" def mystery (slist): d = {} for w in slist: n = len(w) if n not in d: d[n] = [w] else: ...
more
04/22/20
C++ code on odd and even number using vector
Create 2 Vectors using the For StatementVector 1 = will have ODD numbers from 1 to 99➔vec1 – vector nameVector 2 = will have EVEN numbers from 2 to 100➔vec2 – vector namePrint Vector 1 & 2 from...
more
04/21/20
AP Computer Science A
/*
This question involves the creation of user names for an online system. A user name is created based on a user’s first and last names. A new user name cannot be a duplicate of a user name...
more
04/17/20
Find the maximum value and minimum value in milesTracker. Assign the maximum value to maxMiles, and the minimum value to minMiles.
Find the maximum value and minimum value in milesTracker. Assign the maximum value to maxMiles, and the minimum value to minMiles. Sample output for the given program:
Min miles: -10
Max miles:...
more
04/17/20
Write a loop that subtracts 1 from each element in lowerScores if the original element was greater than 0, and otherwise just assigns the element with 0.
Write a loop that subtracts 1 from each element in lowerScores if the original element was greater than 0, and otherwise just assigns the element with 0. Ex: lowerScores = {5, 0, 2, -3} becomes {4,...
more
04/17/20
Write a program that first gets a list of integers from input.
Write a program that first gets a list of integers from input. The input begins with an integer indicating the number of integers that follow. That list is followed by two more integers...
more
Computer Science Science
04/14/20
What is the importance of having all computer scientists understand how websites are built and operate?
Explain the importance of having all computer scientists understand how websites are built and operate.
04/13/20
Given the interface please code the zip function
INTERFACE
import java.util.function.BiFunction;
interface NamedBiFunction extends java.util.function.BiFunction //nested interface that extends from java.util.function.BiFunction
{
...
more
04/13/20
Please implement the following function in Java using a single method chain
This function is called the least element. In this function, the single method chain can return a java.util.Optional<T>. So you must write additional code to convert it to an object of type T...
more
04/12/20
Assign numMatches with the number of elements in userValues that equal matchValue.
Assign numMatches with the number of elements in userValues that equal matchValue. userValues has NUM_VALS elements. Ex: If userValues is {2, 2, 1, 2} and matchValue is 2 , then numMatches should...
more
04/12/20
Write a for loop to populate vector userGuesses with NUM_GUESSES integers.
Write a for loop to populate vector userGuesses with NUM_GUESSES integers. Read integers using cin. Ex: If NUM_GUESSES is 3 and user enters 9 5 2, then userGuesses is {9, 5, 2}.#include...
more
04/12/20
Write a program that reads a list of integers, and outputs the two smallest integers in the list, in ascending order.
Write a program that reads a list of integers, and outputs the two smallest integers in the list, in ascending order. The input begins with an integer indicating the number of integers that...
more
04/12/20
Given a sorted list of integers, output the middle integer. Assume the number of integers is always odd.
Given a sorted list of integers, output the middle integer. Assume the number of integers is always odd.Ex: If the input is:
2 3 4 8 11 -1 (a negative indicates the end), the output is:4The maximum...
more
04/12/20
Write a program that first gets a list of integers from input.
Write a program that first gets a list of integers from input. The input begins with an integer indicating the number of integers that follow. Then, get the last value from the input, which...
more
04/12/20
Output each floating-point value with two digits after the decimal point, which can be achieved by executing cout << fixed << setprecision(2); once before all other cout statements.
Output each floating-point value with two digits after the decimal point, which can be achieved by executingcout << fixed << setprecision(2); once before all other cout statements.(1)...
more
04/11/20
AVL Trees - Java Data Structures & Algorithms
Can someone help with this AVL tree deletion?Delete 7,5,9 from the following AVL tree?AVL tree represented as an array(note that null denotes nodes with no values)9, 5, 12, 3, 6, 11, 14, 2, 4,...
more
Computer Science
04/10/20
A Stock Market Index is a calculation that gives information about a group of stock
Computer Science
04/09/20
Find the single precision format of -118.375
Need work to explain how to do this
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.