Computer Science

All new and solved questions in Computer Science category

1 answer
What is meant by a computer virus
what is meant by a computer virus?...
2 answers
Single-platter disk
Question DetailsConsider a single-platter disk with the following parameters:rotation speed: 7200 rpm; number of tracks on one side ofplatter:30,000; number of sectors per track:600;seek time: one msfor every hundred tracks traversed. Let the disk receive a requestto access a random sector on a rand...
no answer
Write a JAVA program that reads the .com, .org, .edu
Write a java program that reads a web address (for instance, www.yahoo.com) from the keyboard and outputs whether this web address is for government, a university, abusiness, an organization, or another entity....
no answer
Write a JAVA program that takes a String input for a year
Write a program that takes a String as an input from the keybaord, representing a year. If the year entered has two characters, convert it to an int, add 2000 to it,and output it. If they year entered has four characters, just convert it to an int and output it. If the year entered has neither two n...
no answer
Pointer/arrays
Write a function that accepts 10 lines of user-entered text and stores them as 10 C-strings. Do not forget to use pointer array in your function....
1 answer
How do I access data files?
How do I access data files?From: NEWPERSPECTIVESON Microsoft® Excel® 2010Source:ISBN: 0538742917 | Title: New Perspectives on Microsoft Excel 2010 | Publisher: Course Technology...
4 answers
Queueing Theory(Queue characteristics)
Discuss the following queueing situations in terms of the characteristics (1. arrival pattern of customers, 2. service pattern of servers, 3. queue discipline, 4.system capacity, 5. number of service channels, and 6. number of service stages.(a) Tourists wishing a guided tour of the White House.(b) ...
1 answer
Can someone please help me finish Conway's Game of Life C++ Code?
Hello. I need help finishing a C++ HW assignment for my 2nd part intro to C++ college class.Here is my current code:--------------------------------------------------------------------------------------------------------//Game of Life//Dylan Metz#include <iostream>#include <string>#inclu...
no answer
Java slot machine
I need help with the following Java program:A slot machine is a gambling device that the user inserts money into and then pulls a lever (or presses a button). The slot machine then displays a set of randomimages. If two or more of the images match, the user wins an amount of money that the slot mach...
no answer
Help
The SQL aggregate function that gives the number of rows containing non-null values for the given column is ____.COUNTMINMAXSUMQuestion 2 3.6 points SaveThe conditional LIKE must be used in conjunction with wildcard characters.TrueFalseQuestion 3 3.6 points SaveA database language enables the user t...
no answer
Relational Database
Consider the relation CLASS(Course#, Univ_Section#, lnstructor_name,Semester, Building_code, Room#, Time_period, Weekdays, Credit_hours). This represents classestaught in a university,with unique Univ_section#s.Identify what you think should be variouscandidate keys, and write in your own words the ...
1 answer
C++, abstract functions
write a c++ program that has a Polygon interface that has abstract functions, area(), and perimeter(). implement classes for Triangle, Quadrilateral, Pentagon,Hexagon, and Octagon, which implement this interface, with the obvious meanings for the area() and perimeter() functions. also implement clas...
no answer
This question comes from C++
6. Builders Inc. wants a program that allows its salesclerks to enter the diameter of a circle and the price of railing material per foot. The program shouldcalculate and display the total price of the railing material. Use 3.1416 as the value of pi. First, create an IPO chart for this problem, and ...
2 answers
Can please someone check my answer: a)385 data loss incidents took place b)110 million people were affected by personal data loss incidents c)3% of all data loss incidents were caused by hard copy theft/loss d)20% of all data loss incidents w
Can please someone check my answer: a)385 data loss incidents took place b)110 million people were affected by personal data loss incidents c)3% of all data loss incidents were caused by hard copy theft/loss d)20% of all data loss incidents were caused by portable media theft/loss e)15% of data ...
3 answers
I'm having trouble completing a C# program
Write a C# program to help a local restaurant automate its breakfast billing system. The program should do the following:• Show the customer the different breakfast items offered by the restaurant. This information is stored in a data file. The number of items in the data files willchange with ...
no answer
MIPS help......I have the code, just need help finding mistake
Hi. I had to do a MIPS code that sorts an array in descending order but mine is in ascending order. Can anyone help me get it in descending order?************************.datavals: .space 4000message1: .asciiz "Enter an integer: 9999 to exit n"message2: .asciiz "The array contains the fo...
no answer
Visual Basic 2010
An online retailer sells five products whose retail prices are as follows: Product 1, $2.98; product 2, $4.50; product 3, $9.98; product 4, $4.49; and product 5,$6.87. Write an application that reads a series of pairs of number as follows:a) product number;b) quantity sold.Your program should use a ...
no answer
Recursion Tree and Asymptotic bounds?
Use a recursion tree to determine a good asymptotic upper bound on the recurrence T(n) = 2T(n-1) + 1. Use substitution method to verify your answer....
no answer
Advanced Data Structures
Range Queries: Given an AVL tree show(using pseudocode) how to support the following queries:RangeCount(k1,k2): Count the number of keys in the AVL tree which are between k1 and k2 in O(logn) time.(Hint: Recall the size field)RangeReport(k1,k2): List all the keys in AVL tree which are in between k1 ...
no answer
Java Graphics
I have been tasked with creating a visual simulation of the famous tortoise and hare race. I do not have much experience with graphics. I had no issues creating and orusing code to do the meat of the program, but I'm having issue doing the following from the assignment:"The tortoise and the ...