1,534 Answered Questions for the topic computer science

Computer Science Computer Programming

02/19/20

Which of the following C code segments is syntactically correct?

a) puts("How many red mana do you want to tap?"); scanf("%d", &rmana); b) printf("How many green mana do you want to tap?"); scanf("%i", gmana); c) scanf("How many blue mana do you... more
Computer Science Computer Programming

02/19/20

Which is true of both recursion and iteration? Check all that apply

a) both have a termination test b) both have high overhead costs c) both based on a control structure d) both could happen infinitely in theory e) both use repetition
Computer Science Computer Programming

02/19/20

Which error bits can be reset to zero by using the clear() function? Check all that apply.

a) ios::failbit b) ios::clearbit c) ios::badbit d) ios::hardfail e) ios::goodbit f) ios::eofbit
Computer Science Computer Programming

02/19/20

What type of recursion is illustrated below?

void Player4() { //Player 4's turn //... Player1(); } void Player3() { //Player 3's turn //... Player4(); } void Player2() { //Player 2's turn //... Player3(); } void... more
Computer Science Computer Programming

02/19/20

What is the output of the code segment below? Assume all necessary libraries have been included.

fstream train; train.open("TTR_Rules.txt", ios::in|ios::out); char ch; train.seekp(10, ios::beg); train.seekg(-2, ios::cur); train.seekp(10 + train.tellg() - 3); train.get(ch); cout... more
Computer Science Computer Programming

02/19/20

Identify the errors (syntax or logical) in the following code segment. Select all that apply.

char game[10]; getline(game, 9); if (game == "Zombicide") cout << game; a) declaration of the variable game b) checking the value of game c) using getline to read data for game d)... more
Computer Science Math Science Computer Programming

02/12/20

Does an adjacency matrix need to have equal rows and columns?

If it needs to be the same number of rows and columns, then why? If not, then why not?
Computer Science Math Science Computer Programming

02/12/20

Does an adjacency matrix need to have equal rows and columns?

If it needs to the same number of rows and columns, then why? If not, then why not?
Computer Science

02/11/20

How do you write an appointment system in Python programming language ?

Appointment System – write a python program in which a professor can pre-populate available time slots for students to select to be advised. It can also send reminder emails to all students with... more
Computer Science Computer General Computer Java

02/08/20

Java Programming Question: Intro to Computer Science

I'm working on a project for my computer science class in java and it is a travel agency. In one of the classes, Basket, I need to make an array of objects of type Reservation. But I also have to... more
Computer Science Computer Programming

01/30/20

Please!!!! help me write this program (Do not hold the auditorium in memory. Utilize random file access to view and modify the auditorium)

Adult - $10Child - $5Senior - $7.50Sample Theatre ABCDEFGHIJKLMNOPQRST 1 ...AA..CSSAC........ 2 ACSAACCA....AAAA..SS 3 .........AS......... 4 C.A.S.A.S.C.S.C.A.A. 5 AACACSSA.CCSSS.AAACC If... more
Computer Science Computer Programming

01/29/20

Can some help me fix my code

#include <stdio.h>#include <string.h>#include <stdlib.h>//include <conio.h>#define MAX_NAME_LENGTH (20)#define PW_INVALID_SIZE (1)#define PW_MISSING_UPPERCASE_LETTER... more
Computer Science Computer Programming

01/29/20

Please help me program this

C++Write a program that extracts and displays all vowels in a file.  Prompt the user for the filename of a text file. Read through the entire file and write every vowel to the output file.  Do not... more
Computer Science Internet Technology

01/27/20

Recently, Facebook and other social media outlets have banned hate groups from posting on their platforms. Some people argue that this is a violation of the right to free speech.

Free Speech and the InternetRecently, Facebook and other social media outlets have banned hate groups from posting on their platforms. Some people argue that this is a violation of the right to... more
Computer Science Computer Programming

01/26/20

Please help me program the two functions

Write the code using C Write a function that asks for the user's first, middle, and last names. The names will be entered by the user on a single line and will be stored in three different... more
Computer Science Math Discrete Math Algebra

01/16/20

2. Select all and only the correct choices below.

2. Select all and only the correct choices below.(a) Suppose you were told that the positive integer n1 has the property that n1 div 2 = 0. Whichof the following can you conclude?i. n1 has a binary... more
Computer Science Math Discrete Math

01/14/20

Need definition of domain and co domain

Give a recursive definition of the max function whose input is a sequence of integers and whose output is the maximum value in the sequence. Include a description of the domain and codomain of the... more

01/14/20

r mod 16 = 0 and g mod 16 = 0 and b mod 16 = 0. Give three distinct examples of such colors.

Suppose you were told that the colors that will work best for your web app are (r, g, b) wherer mod 16 = 0 and g mod 16 = 0 and b mod 16 = 0. Give three distinct examples of suchcolors. For each... more

12/06/19

BCD and Binary Decimal

How do we convert 1111010.11(binary) to decimal by first representing it in BCD form and then converting it to decimal

12/05/19

please I need some help with java code

inheritance 1. Write a program represent the following class hierarchy 1.1. Person class a) which contain the following attributes: - Name Address .Gender -DateOfBirth b) And contain the following... more

11/23/19

How are software such as MS Office Word, OpenOffice Writer and the like, render the page?

I have looked at every single documentation I can get my hands on but I just can't seem to work out how the paper of MS Word like application is contextualised as a page and then able to save, open... 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.