1,518 Answered Questions for the topic computer science
04/15/21
The array declared as int rooms[4] will not be able to store a value in?
The array declared as int rooms[4] will not be able to store a value in?
rooms[0]
rooms[1]
rooms[2]
rooms[3]
rooms[4]
04/15/21
I need the implementations for all the classes in this project in C++
This is the link to all the instructions to the project, there should be a Shape class as the abstract parent class and circle, triangle, rectangle children classes which inherit from shape. Should...
more
04/14/21
Implement an abstract parent Shape class and its polymorphic children Circle, Rectangle, and Triangle.
Your objective for this project is to implement an abstract parent Shape class and its polymorphic children Circle, Rectangle, and Triangle. Shape is a 2D character array which requires the use of...
more
04/14/21
Implement an abstract parent Shape class and its polymorphic children Circle, Rectangle, and Triangle
Your objective for this project is to implement an abstract parent Shape class and its polymorphic children Circle, Rectangle, and Triangle. Shape is a 2D character array which requires the use of...
more
04/13/21
Catapult Calculator
Market research has indicated that the app store currently lacks a catapult calculator. Filling this void could be the get rich opportunity of a lifetime! Write a program that calculates whether a...
more
Computer Science Computer Programming
04/13/21
What are the consequences of this new modification of the round-robin scheuling?
In a round-robin scheduler, usually a ready queue contains all processes waiting for CPU burst time. Each process exists exactly once in the queue. Suppose that the scheduler allowed a process...
more
04/12/21
Log Switcher. Read in a number (double). Print the power of two that the number represents.
Read in a number (double). Print the power of two that the number represents.C++11 added a log base 2 function, but you can also just use the formula: power = log(number) / log(2) where log is the...
more
04/12/21
Int Range. Read in a decimal value. Print out the two integers it is between, smaller value first, with exactly one space in between them.
Read in a decimal value. Print out the two integers it is between, smaller value first, with exactly one space in between them. If it is an integer value already, your program should print out the...
more
04/12/21
Cos Finder. Read in an angle in degrees and the length of the adjacent side to that angle in a right triangle (both as doubles). Print the length of the hypotenuse of the triangle.
Read in an angle in degrees and the length of the adjacent side to that angle in a right triangle (both as doubles). Print the length of the hypotenuse of the triangle.Use the formula hypotenuse =...
more
04/12/21
Tangent Angle Finding. Read in the opposite and adjacent sides for one of the acute angles in a right triangle (as doubles). Print the size of the angle in radians.
Read in the opposite and adjacent sides for one of the acute angles in a right triangle (as doubles). Print the size of the angle in radians.Use the rule angleX = atan(opposite/adjacent) to find...
more
04/12/21
Vowel Checker. Read in a character. Print vowel if it is a vowel (a, e, i, o, u, A, E, I, O, U) or consonant if it is not.
Read in a character. Print vowel if it is a vowel (a, e, i, o, u, A, E, I, O, U) or consonant if it is not.Hint: a nice trick to simplify your logic is to first convert the input to...
more
04/12/21
Passcode Checker. Users of a system are supposed to pick a 3 character pass code such that there is at least one character that is a digit (number) and one character that is not a letter or number.
Users of a system are supposed to pick a 3 character pass code such that there is at least one character that is a digit (number) and one character that is not a letter or number. Something like...
more
04/12/21
Next Two Letters. Read in a character (it will always be a lower case letter). Print out the two letters that come after it without any spaces. Once you go past 'z' you should wrap back to 'a'.
Read in a character (it will always be a lower case letter). Print out the two letters that come after it without any spaces. Once you go past 'z' you should wrap back to 'a'.Hint: You can add...
more
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
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.