1,518 Answered Questions for the topic computer science
Computer Science
04/27/21
Object-Oriented Programming
Create a java source where the player is interacting with the following items at the following places with the following people:Item - Magic Sword; Place - forest; received from a crazy old man;...
more
Computer Science Computer Programming
04/26/21
This needs to be done in C programming using use structures to represent elements of the game, eg the board, the players, etc
create a program that manages a game of Othello for two players.Your program should have the following functionality:
Ask each player to provide their name as input from the keyboard and assign...
more
04/26/21
Web Log Parser. Submit to elearn: Make sure to name files EXACTLY as specified - including capitalization. Do not submit extra files. Do not zip or otherwise compress files unless told to.
ObjectiveYouwill be able to read data from a file and use string functions to process text.Assignment InstructionsShould be able to compile and run your program with:
g++ -std=c++11 assign5.cpp -o...
more
04/26/21
Tag Remover. Read in a string that may have spaces (use getline!).
Read in a string that may have spaces (use getline!). In the string will be something that looks like [TAG]text inside tag[/TAG] where TAG can be any string. Print out the TAG, a colon, and the...
more
04/26/21
Sher. Write a word shortener.
Write a word shortener. Read in a string (you may assume no spaces). If it is 4 characters or less, print it back out. If it is more than 4 characters, print just the first two followed by the last...
more
04/26/21
Caturday Check. Read a string (will not have spaces).
Read a string (will not have spaces). Print "true" if the word "cat" appears starting at the first or second letter. Otherwise print false.Samples:
Input: catch Output: true
Input: scatter ...
more
04/26/21
First Middle Last Letter. Read in a string from cin (it will not have any whitespace).
Read in a string from cin (it will not have any whitespace). Print out the first character, middle character (if string is an even length, print the second of the two middle letters), and last...
more
04/26/21
All To Upper. Read a string from cin into word and modify it so that it has all uppercase letters.
Read a string from cin into word and modify it so that it has all uppercase letters.Samples:
Input: hello Output: HELLO
Input: h3Llo Output: H3LLO
Hints:
You can only change the code in the...
more
04/26/21
String Compactor. Write code that will read in a string and then print out every other character of the string.
Write code that will read in a string and then print out every other character of the string. You should use getline to read in the string... it may have spaces.Samples:
Input of "Hello" should...
more
04/26/21
Count E's. Read in a string, print out the number of e's in it.
Read in a string, print out the number of e's in it. Note that the string may have spaces in it. A call to getline looks like getline(cin, myVariable) where myVariable is a string variable that...
more
04/25/21
C Programming Language. Please write the two programs in C.
C Programming Language. Please write the two programs in C. DigitsWrite this program in a file named digits.c.As input, you will define a quad word integer variable named input in the initialized...
more
04/25/21
a program that reads names from a file However, the program does not work as expected. It gives an ArrayOutOfBounds exception. Correct this without changing the size of the array.
Here is a program that reads names from a file Friends-1.txt download and stores them in an array called friends.It then asks the user for a name and searches the array for the friend. If it...
more
04/25/21
Explain ways Scanner class create objects that can input data from the three types of input sources. Give 3 examples of the use of Scanner objects. Describe 1 Scanner method
Explain the ways in which the Scanner class can be used to create objects that can input data from the three types of input sources.Give 3 examples of the use of Scanner objects. Describe 1 Scanner...
more
04/25/21
Modify the above program so that it reads from the file FriendsPhones.txt, download the friends name into the friends array and corresponding phone number into an array called phoneNumbers. Upd
Modify the above program so that it reads from the file FriendsPhones.txt, download the friends name into the friends array and corresponding phone number into an array called phoneNumbers. Update...
more
04/25/21
Method called searchGenius inputs information from user& tries to find a genius student.. Not work as expected. debug the method by 1. What line does error occur? 2. what is the error & why 3. correct
Here is a method called searchGenius inputs information from the user and tries to find a genius student. A "genius" student is considered to be one who is between 18 and 21 years of age, has...
more
04/25/21
For each of the following while loops, how many times will the loop execute its body? Remember that "zero," "infinity," and "unknown" are legal answers.
For each of the following while loops, how many times will the loop execute its body? Remember that "zero," "infinity," and "unknown" are legal answers.a)
int x = 1;
while (x < 100) {
...
more
04/25/21
What is Fencepost algorithm? Use it to write a method called countLengths that takes in a String array of 7 elements as parameter& prints the number of characters in each string separated by ",".
Explain "Fencepost algorithm" Use this technique to write a method called countLengths that takes in a String array of 7 elements as parameter& prints the number ofcharacters in each string...
more
04/24/21
Solve for X using the matrices below.
2A + 4B = −2XA = 8 -5 and B = 0 7 1 0 2 0 9 -2 -2 -1X = _____ _____ _____ _____ _____ _____
04/24/21
Use a graphing utility to perform the operations for the matrices A, B, and C, and the scalar c.
A = -3 -2 3 0 2 -1 1 4 -2B= 1 -1 0 2 4 3 -2 1 0C = 3 -2 3 -4 0 -2 -1 1 3 c = 2(a) c(AB)_____ _____ __________ _____ __________ _____ _____(b) (cA)B_____ _____...
more
Computer Science
04/24/21
Coding Help for a game project.
I need help coding (java) for the items the player will use for a game project; but I don't know how to go about it, here is a starter code given to help me out and I'm confused on how to move...
more
04/23/21
Let matrices A, B, C, and D be of orders 4 × 8, 2 × 8, 8 × 4, & 2 × 4. Determine whether the matrices are of proper order to perform the operation. Give the order of the answer.
(If not possible, enter IMPOSSIBLE.)(BC − D)A= ______ x ______
04/23/21
What is the maximum decimal value (positive value) represented by a 6-bit signed binary number with a 3-bit fraction.
What is the maximum decimal value (positive value) represented by a 6-bit signed binary number with a 3-bit fraction.
04/23/21
How many 3-input AND gates are required to AND 26 signals?
How many 3-input AND gates are required to AND 26 signals?
04/23/21
Digits and height. You will write two complete programs in x64 assembly.
You will write two complete programs in x64 assembly. In order to put off a discussion of how to use the operating system (which is necessary for interacting with the console), your programs will...
more
04/23/21
Inequalities in Context
A rental car company charges $40 per day to rent a car and $0.08 for every mile driven. Tallulah wants to rent a car, knowing that:
She plans to drive 400 miles.
She has at most $200 to...
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.