1,486 Answered Questions for the topic computer programming
Computer Programming
04/30/20
Using Flowgorithm
Design a program that allows the user to enter 20 names into a String array. Sort the array in ascending (alphabetical) order and display its contents.
04/30/20
Text analyzer & modifier (Java)
(1) Prompt the user to enter a string of their choosing. Output the string. (1 pt)Ex:
Enter a sentence or phrase:
The only thing we have to fear is fear itself.
You entered: The only thing we have...
more
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
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 Programming
04/29/20
When we use a scatter chart we a trying to identify the ________________________ between categories and/or variables?
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
Computer Programming
04/24/20
Hello, I would like help with writing a pseudocode for the question below.
Create either pseudocode or a flowchart for a program that does the following:
Prompt the user to enter the number of feet they wish to convert to inches.
Calculate the number of inches
Output the...
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
04/17/20
Write a program that reads a list of words. Then, the program outputs those words and their frequencies.
Write a program that reads a list of words. Then, the program outputs those words and their frequencies. The input begins with an integer indicating the number of words that follow. Assume that the...
more
04/17/20
Write a program that reads a list of integers, and outputs those integers in reverse.
Write a program that reads a list of integers, and outputs those integers in reverse. The input begins with an integer indicating the number of integers that follow. For coding simplicity, follow...
more
Computer Programming
04/15/20
I need help with this programming question
You've been asked to write several functions. Here they are:yourName() -- this function takes no parameters. It returns a string containing YOUR name. For example, if Homer Simpson wrote this...
more
Computer Programming
04/15/20
I need help with a Python assignment
This one needs a definite loop and the number iterations of that loop will be the total number of characters in YOUR first and last names. For example, if your name is Jane Doe then the loop will...
more
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
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.