1,518 Answered Questions for the topic computer science
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
04/01/21
Help with using VIM editor in Linux
Edit hello.cpp using vimUse vim editor to edit hello.cpp, to have a custom message then recompile the program and run it again.(I dont know what im supposed to type please help)
04/01/21
Your job is to implement the default (no argument) constructor that sets time to midnight. Hint: The constructor is going to need Time:: in front of its name.
Read the existing code for Time. It stores a time of day in 24 hour format with 0 hours indicating midnight and 12 hours indicating noon.Your job is to implement the default (no argument)...
more
04/01/21
Replace YOUR_CODE with code that will create a point p2 that is 4 units to the right of p1 and 3 units below it.
Read the provided code for the Point class that represents a point on a standard Cartesian plane. Then read the provided code in main.Replace YOUR_CODE with code that will create a point p2 that is...
more
03/31/21
The Rectangle class has been declared and main makes use of it. Add the function implementations so the code compiles and runs successfully.
The Rectangle class has been declared and main makes use of it. Add the function implementations so the code compiles and runs successfully.Hint: Every function name is going to need Rectangle:: in...
more
03/31/21
Your job is to implement the constructor that takes an hour and minute value. Hint: The constructor is going to need Time:: in front of its name.
Read the existing code for Time. It stores a time of day in 24 hour format with 0 hours indicating midnight and 12 hours indicating noon.Your job is to implement the constructor that takes an hour...
more
03/31/21
Your job is to implement the default (no argument) constructor that sets time to midnight. Hint: The constructor is going to need Time:: in front of its name.
Read the existing code for Time. It stores a time of day in 24 hour format with 0 hours indicating midnight and 12 hours indicating noon.Your job is to implement the default (no argument)...
more
03/31/21
Replace YOUR_CODE with code that will create a point p2 that is 4 units to the right of p1 and 3 units below it.
Read the provided code for the Point class that represents a point on a standard Cartesian plane. Then read the provided code in main.Replace YOUR_CODE with code that will create a point p2 that is...
more
03/31/21
Replace YOUR_CODE with code that will move Point p1 10 units to the right and 3 units down and Point p2 2 units to the left and 5 units up.
Read the provided code for the Point class that represents a point on a standard Cartesian plane. Then read the provided code in main.Replace YOUR_CODE with code that will move Point p1 10 units to...
more
03/31/21
Replace YOUR_CODE with code that will create a point named p1 at the location 0, 0.
Read the provided code for the Point class that represents a point on a standard Cartesian plane. Then read the provided code in main.Replace YOUR_CODE with code that will create a point...
more
03/31/21
Part 1- Make an application in which you need to implement all discussed programming tools i.e. ordered arrays, Abstract data types, linked lists, recursion etc. must be implemented
Part 1- Make an application in which you need to implement all discussed programming tools i.e. ordered arrays, Abstract data types, linked lists, recursion etc. must be implementedPart...
more
03/31/21
data structure and algorithm
Part 1- Make an application in which you need to implement all discussed programming tools i.e. ordered arrays, Abstract data types, linked lists, recursion etc. must be implementedPart...
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.