1,534 Answered Questions for the topic computer science
04/12/21
Char Sorter. Write a program that sorts chars into 1 of 3 groups.
Write a program that sorts chars into 1 of 3 groups. Letters A-J are in group 1, K-P in group 2, Q-Z in group 3. You should read in one character and print out the group it belongs in - assume the...
more
Computer Science
04/12/21
what is Binary Digits?
define and explain binary digits in Digital logic designing
04/11/21
What is the number of 6 character passwords containing the word "mate"?
What is the number of 6 character passwords containing the word "mate"?
04/11/21
How many 6 character passwords are there which have exactly one letter m?
How many 6 character passwords are there which have exactly one letter m?
Computer Science
04/11/21
row vs column major
Is Row-Major or Column-Major order faster? Why do you think that is. Please explain using execution counts.
In what scenario would you use Row-Major ordering when traversing a 2D array? In what...
more
Convert the following methods from Java to C and then write a function to test each output with at least 4 test cases to see if the method work correctly.
//Convert an 2D array to a string
String int2DArrayToString(int[][] input)
{
return Arrays.stream(input).map(x -> Arrays.stream(x).
mapToObj(i ->...
more
04/07/21
Write and Solve Inequalities in Context
A group of friends want to go to the amusement park. They have no more than $225 to spend on parking and admission. Parking is $5, and tickets cost $20 per person, including tax. Write and solve an...
more
04/06/21
Linux help Assignment Urgent help!
For this assignment you will write a program that allows a user to entertiming data (minutes and seconds) and then print out some information aboutthe entered data.- the program reads input...
more
04/05/21
Linux assignment help
For this assignment you will write a program that allows a user to entertiming data (minutes and seconds) and then print out some information aboutthe entered data.Context:A drop of sweat dripped...
more
04/05/21
C++. Write a program that reads three integers from cin and outputs them in order from smallest to largest.
C++.Write a program that reads three integers from cin and outputs them in order from smallest to largest.Example: input of 3 8 5 should result in output of:3 5 8Hints:
You do not have to actually...
more
04/05/21
C++. An international phone call is billed by the minute according to this scheme: Calls up to 10 minutes cost a flat $5.
An international phone call is billed by the minute according to this scheme: Calls up to 10 minutes cost a flat $5. Calls over 10 minutes but less than 30 cost $.50 per minute. Calls 30 minutes or...
more
04/05/21
In a dice game, you get the total you roll on two dice, unless they are the same, in which case you get double what they total. Write a program that helps score the game.
C++. In a dice game, you get the total you roll on two dice, unless they are the same, in which case you get double what they total. Write a program that helps score the game.Read in two integers...
more
04/05/21
Orders from a company that cost $100 or more get a 10% discount. Orders less than $100 do not get a discount.
C++.Read in an decimal value representing the undiscounted order price, and print out what the order should cost.Just print the value - do not add a $ or try to make it look like...
more
04/05/21
Read in a single integer from cin. If it is 7, output "Lucky". If it is not 7, output nothing.
C++#include <iostream>using namespace std;int main(){ //YOUR_CODE}
04/05/21
C Programming. First, fully parenthesize the following expressions according to the precedence and associativity rules.
First, fully parenthesize the following expressions according to the precedence and associativity rules. Then, replacing the variables and constants with the appropriate type names, show how the...
more
04/05/21
C Programming Questions: 1. What is unusual about the logical operators? 2. What is a possible problem using continue in while statements?
1. What is unusual about the logical operators? 2. What is a possible problem using continue in while statements?
04/04/21
Computer Science Question - Python String slicing
so I need the date which is this 2001-08-11 to look this 08-2001 I need to slice it and the best I have come up with slicing it like this [ :7] which gives me the date to look like this 2001-08. I...
more
Computer Science
04/04/21
Provide a tail recursive implementation of the equation below
Computer Science Java
04/04/21
Provide an equivalent of the java class below in C
class CompSci {
static final int QuestionsTobeAnswered = 4;
static final int questionsGiven = 4;
int questionsAnswered;
public static void addToArray(int[] x)
...
more
Computer Science
04/04/21
write a function that takes an int as it parameter and returns an array of longs where each element has the value of the factorial of it's index.
f(n) --> [1!,2!,3!, ..., (n-1)!,n!]
04/03/21
Computer Science Question String Slicing
I want to make this date which is this 1985-08-01 what would be the numbers to make it look like this 08-1985 and the best I have done at slicing is doing this [ : 7] but that only gives me the...
more
04/03/21
computer science- python Programming
I want to make this date which is this 1985-08-01 what would be the numbers to make it look like this 08-1985 and the best I have done at slicing is doing this [ : 7] but that only gives me the...
more
04/03/21
Computer Science Python
I want to sting slice this date which is this 1985-08-01 to look like this08-1985
04/02/21
Linux Programming Help
For this assignment you will write a program that allows a user to entertiming data (minutes and seconds) and then print out some information aboutthe entered data.Context:A drop of sweat dripped...
more
Computer Science Python
04/02/21
QUESTION ON ARRAY
Given a circular array of integers, do the following operations stepwise :Value Index25 039 152 225 30 40 545 625 75 ...
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.