1,534 Answered Questions for the topic computer science
Computer Science
04/01/20
two's complement
plz help me i have spent hours trying to figure this out.1. Solving 1110 – 1110 using 2’s complement will lead to a problem; by using 7-bit data representation. Explain what the problem is and...
more
Counting strings in positional arguments python (order cost calculator problem)
The goal is to calculate the cost of a order at a pizza shop. For example:cost([ ], ["pepperoni"], ["ham", "anchovy], drinks = ["small"])should calculate the price of one plain pizza, one pizza...
more
Computer Science
03/31/20
Write a code segment that will store a dinner selection in option1 based on the values of rsvp and selection. The intended behavior of the code segment is described below.
Write a code segment that will store a dinner selection in option1 based on the values ofrsvp and selection. The intended behavior of the code segment is described below.If rsvp is true, the code...
more
03/30/20
Write a program that removes all spaces from the given input.
Write a program that removes all spaces from the given input.Ex: If the input is:Hello my name is John.the output is:HellomynameisJohn.Your program must define and call the following function. The...
more
Write a program that removes all spaces from the given input.Your program must define and call the following function. The function should return a string representing the input string without spaces.
Write a program that removes all spaces from the given input.Ex: If the input is:Hello my name is John.the output is:HellomynameisJohn.Your program must define and call the following function. The...
more
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.
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
03/29/20
Add two more statements to main() to test inputs 3 and -1. Use print statements similar to the existing one (don't use assert).
Add two more statements to main() to test inputs 3 and -1. Use print statements similar to the existing one (don't use assert).#include <iostream>using namespace std;// Function returns...
more
03/23/20
Please write a C++ program on Fibonacci sequence
Numerical analysisThe Fibonacci Sequence is 0, 1, 1, 2, 3, 5, 8, 13,........: the first two terms are 0 and 1, and each term thereafter is the sum of the two preceding terms:Fib[n] = Fib[n-1] +...
more
03/19/20
Please write a c++ code for the following conversion
CONVERSIONWrite and Test a C++ development coded program to display a table of miles converted to kilometers. The output should be a table of miles and their equivalent kilometers.The miles should...
more
Computer Science Computer Programming
03/02/20
Write a class with constructors and destructors functions.
A point in a two-dimensional plane having coordinate as (x,y), can be represented by a class whose private data members are x and y. Write the constructor and destructor functions of the class. The...
more
03/02/20
Constructors and destructors
Write a program to show that, the constructor and destructor functions of a globally declared object are the first and last functions, respectively to be called in a program.
03/02/20
Constructors with overloading and with default parameters
Write a program to show that constructors follow the property of function overloading as well as default parameter. Also, show that in case of constructor also, default parameter may create problem...
more
03/01/20
Write a class in c++
Write a class definition for an order class for a nightclub that contains a table number, a servers name, and the number of patrons at the table. Include a private static data member for the table...
more
Computer Science Computer Programming
03/01/20
Create a class in c++
Define a class named Movie. Include private fields for the title, year, and name of the director. Include three public functions with the prototypes void Movie::setTitle(string); , void...
more
Computer Science Computer Engineering
03/01/20
Write a function
Write a function that accepts two arguments: a string name of a movie and an integer running time in minutes. Provide a default value for the minutes so that if you call the function without an...
more
Computer Science Math
02/25/20
Determine the value for the following recursive method when x = 20.
Question options:
1)
9
2)
4
3)
-5
4)
-4
5)
2
Computer Science Math
02/25/20
Determine the value for the following recursive method when x = 25.
Question options:
1)
7
2)
-5
3)
-2
4)
-3
5)
2
02/25/20
Write a C++ program
Suppose you have to develop small software to assist the primary students. Write a program that will help an elementary school student learn multiplication. Use the rand function to produce two...
more
Computer Science Computer Programming
02/22/20
How do I write this program into a text file
#include <iostream>#include <fstream>#include <string>#include <cstring>#include <cstdlib>#include <iomanip>using namespace std;// global declarations for...
more
Computer Science
02/21/20
creating frames
Using Classes/ObjectsPart-1
Create 3 frames
Place 2 frames side-by-side on top of the screen
Place the 3rd frame below the top 2 frames, spanning two columns
Display a picture in one of the top 2...
more
Computer Science
02/20/20
how to make a list for students
Using Classes/ObjectsPart-1
Create 3 frame/label objects
Place 2 objects side-by-side on top of the screen
Place the 3rd object below the top 2, spanning two columns
Display a picture in one of the...
more
Computer Science
02/20/20
Binary Math computer science
Complete Twos Compliment 8-bit Binary Math on the following expression: 25-68
Computer Science Computer Programming
02/19/20
Which of the following functions are in cstdlib.h? Check all that apply
a) ispunct
b) strlen
c) toupper
d) strcmp
e) atol
f) atof
Computer Science Computer Programming
02/19/20
Which of the following file access flags will create a file when an attempt is made to open a file that doesn't exist?
a) ios::trunc
b) ios::out
c) ios::in
d) ios::app
e) ios::ate
f) ios::binary
Computer Science Computer Programming
02/19/20
Which of the following character functions will return a non-zero integer when a space is passed into the function? Check all that apply.
a) ischar
b) isvalid
c) isspace
d) ispunct
e) isprint
f) isalnum
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.