Questions
Describe the concept of "streaming" and why it is used in delivering sound via the Internet....

Describe the concept of "streaming" and why it is used in delivering sound via the Internet. Which audio file formats work best for streaming over the web and why?

Research the Recording Industry Association of America (RIAA) and the Motion Picture Association of America (MPA), their influence on Federal regulations, and their evolving role in digital media distribution. You can include discussion of the Digital Millennium Copyright Act (DMCA), the Stop-Online Piracy Act (SOPA) and/or the Protect IP Act (PIPA) in relation to current trends in file sharing technologies.

In: Computer Science

The Language is Java. Sample Output: There is no given sample Output IsEqualToTest (30) Write a...

The Language is Java.

Sample Output:

There is no given sample Output

IsEqualToTest (30)

Write a simple generic version of method isEqualTo that compares its two arguments with the equals method and returns true if they’re equal and false otherwise. Use this generic method in a program that calls isEqualToTest with the built-in types Integer, String, Double and Object. The main reads in two Integer, and two Double values with autoboxing, as well as two String and calls the method. For Object just create two Object objects with no parameters. The method doesn’t need to include any correctness tests.

In: Computer Science

Write a decrease-conquer algorithm to solve the following problem: input: a nonempty unsorted array A[lo..hi] of...

Write a decrease-conquer algorithm to solve the following problem:

input: a nonempty unsorted array A[lo..hi] of n distinct nonnegative integers;

output: the (left) median value of A[lo..hi].

What is the asymptotic running time of your algorithm ?

In: Computer Science

PLEASE DO THIS WITH PYTHON 3 Lab 4-2: Computing Tax The United States federal personal income...

PLEASE DO THIS WITH PYTHON 3

Lab 4-2: Computing Tax

The United States federal personal income tax is calculated based on filing status and taxable income. There are four filing statuses: single filers, married filing jointly, married filing separately, and head of household. The tax rates vary every year. Table 3.2 shows the rates for 2009. If you are, say, single with a taxable income of $10,000, the first $8,350 is taxed at 10% and the other $1,650 is taxed at 15%. So, your tax is $1,082.5.

Table 1

2009 U.S. Federal Personal Tax Rates

Marginal Tax Rate

Single

Married Filing Jointly or Qualified Widow(er)

Married Filing Separately

Head of Household

10%

$0 – $8,350

$0 – $16,700

$0 – $8,350

$0 – $11,950

15%

$8,351– $33,950

$16,701 – $67,900

$8,351 – $33,950

$11,951 – $45,500

25%

$33,951 – $82,250

$67,901 – $137,050

$33,951 – $68,525

$45,501 – $117,450

28%

$82,251 – $171,550

$137,051 – $208,850

$68,525 – $104,425

$117,451 – $190,200

33%

$171,551 – $372,950

$208,851 – $372,950

$104,426 – $186,475

$190,201 - $372,950

35%

$372,951+

$372,951+

$186,476+

$372,951+

You are to write a program to compute personal income tax. Your program should prompt the user to enter the filing status and taxable income and compute the tax. Enter 0 for single filers, 1 for married filing jointly, 2 for married filing separately, and 3 for head of household.

Here are sample runs of the program:

Sample 1:

Enter the filing status: 0

Enter the taxable income: 100000

Tax is 21720.0

Sample 2:

Enter the filing status: 1

Enter the taxable income: 300339

Tax is 76932.87

Sample 3:

Enter the filing status: 2

Enter the taxable income: 123500

Tax is 29665.5

Sample 4:

Enter the filing status: 3

Enter the taxable income: 4545402

Tax is 1565250.7

In: Computer Science

Byzantine Generals Problem and Solutions  Based on the proposed solutions use any code you want to...

Byzantine Generals Problem and Solutions 

Based on the proposed solutions use any code you want to demonstrate one of the solutions.

Include documentation describing your code

include comments in your code describing each step

In: Computer Science

**C++ only, standard library. We are supposed to create a tower of hanoi program and do...

**C++ only, standard library.

We are supposed to create a tower of hanoi program and do a sequence of 100 disks. We are supposed to run the program and then answer two questions:

1) How long does your computer take to run(time)?

2) If I could move 1 disk per second how long would it take?

Here is my program so far:

void towerOfHanoi(int numDisks, char from_rod, char to_rod, char aux_rod)
{
int count=0;
if (numDisks == 1)
{
//cout << "Move disk 1 from rod " << from_rod <<
// " to rod " << to_rod<<endl;
return;
}
towerOfHanoi(numDisks - 1, from_rod, aux_rod, to_rod);

//cout << "Move disk " << numDisks << " from rod " << from_rod <<
//" to rod " << to_rod << endl;
towerOfHanoi(numDisks - 1, aux_rod, to_rod, from_rod);
}
  
// Driver code
int main()
{
int numDisks; // Number of disks
  
cout<<"This program solves the Hanoi Tower puzzle"<<endl<<endl;
  
cout<<"Enter the number of disks to calculate: ";
cin>>numDisks;
  
towerOfHanoi(numDisks, 'A', 'C', 'B'); // A, B and C are names of rods
return 0;
}
  

In: Computer Science

What code would I add to the following program to have it print out the runtime...

What code would I add to the following program to have it print out the runtime each time the program is used?

def moveTower(n, source, dest, temp):
if n == 1:
print("Move disk from", source, "to", dest+".")
else:
moveTower(n-1, source, temp, dest)
moveTower(1, source, dest, temp)
moveTower(n-1, temp, dest, source)

def hanoi(n):
moveTower(n, "A", "C", "B")

def main():
print("Towers of Hanoi")
n = int(input("How many disks? "))
moveTower(n, "A", "C", "B")

if __name__ == '__main__': main()

In: Computer Science

find how many times a letter appear in a string for example yellowstone letter l appear...

find how many times a letter appear in a string for example yellowstone letter l appear two times
(using python)

In: Computer Science

Personal Computer Fundamentals Identify a task that you would need to perform in your current career...

Personal Computer Fundamentals

Identify a task that you would need to perform in your current career or future career, and explain how you would apply the knowledge you have learned in this course to succeed at performing the task in a real-world scenario.

journal

In: Computer Science

1.What will the result of this form be? (cadr ‘(1 2 3 4 5 6)) a....

1.What will the result of this form be? (cadr ‘(1 2 3 4 5 6))

a. '(1 2 3 4 5 6)

b. 2

c. '(2 3 4 5 6)

d. 1

.

2.How does Prolog try to resolve our Queries?

a.The programmer specifies the algorithmic approach, performance is all in the hands of how clever the programmer writes their algorithms.

b.The language applies some AI to our query and precludes obviously false information.

c.Row by agonizing row. There is nothing particularly clever about the solve, it just brute forces its way through the data looking for resolutions.

In: Computer Science

In C++ Write an IterativeMergeSort function given these parameters and following the prompt IterativeMergeSort(vector<int> v, int...

In C++

Write an IterativeMergeSort function given these parameters and following the prompt

IterativeMergeSort(vector<int> v, int low, int high)

IterativeMergeSort

In-place sorting refers to sorting that does not require extra memory arrays. For

example, QuickSort performs partitioning operations by repeating a swapping operation on two

data items in a given array. This does not require an extra array.

We can improve the performance of MergeSort by utilizing a non-recursive method and

using only one additional array (instead of one array on each recursive call). In this improved

version of MergeSort,

IterativeMergeSort

, one would merge data from the original array into

the additional array and

alternatively

copy back and forth between the original and the

additional temporary array.

Please re-read the last sentence as it is critical to the grading of

the lab.

For the IterativeMergeSort we still need to allow data items to be copied between the

original and this additional array as many times as O(

log

n). However, given the iterative nature

we are not building up state on the stack.

In: Computer Science

1. How did IBM become the dominant IT industry leader? 2. What changed that knocked IBM...

1. How did IBM become the dominant IT industry leader?

2. What changed that knocked IBM off its industry leader position?

3. What did the new outside CEO Lou Gerstner do that saved IBM?

In: Computer Science

Rental Shop A. Create an abstract class named SummerSportRental that is to be used with for...

Rental Shop
A. Create an abstract class named SummerSportRental that is to be used with for a summer sports rental
shop. The SummerSportRental class must have the properties of newModel which takes on the type
boolean, and rentalCost which takes on the type double, and rentalNumber which is an identification
number as an long integer.These member variables must all be private!
It also must include the following member functions:
1. equals() which returns true if two SummerSportRental objects have the same rentalNumber.
2. all of the appropriate get/set methods for each of the above member variables. Make sure to have
data validation done on the set methods to prevent invalid/illegal values from being passed into the
member variables. (Example: rentalCost should not be allowed to be negative).
3. include an abstract method named lateCharge, that will only be implemented in child classes that
inherit the SummerSportRental class.
B. Create three children classes that inherit the SummerSportRental class, named WaterSkiRental,
PaddleboardRental, and BeachCruiserBikeRental.
The WaterSkiRental class should have one private member variable named size as an integer that will be
used to store the size of the water ski in centimeters. Implement the get/set method for this member
variable. The abstract method in the SummerSportRental class, named lateCharge must be implemented to
charge a late charge of 10% of the rental cost. Be sure to include a method named toString to output the
data stored in the member variables for this class. No main method in the class allowed!
The PaddleboardRental class should have two private member variable named size as an integer that will
be used to store the size of the paddle board in centimeters, and another member variable named style as
an enumerated type with the values (SINGLE, DOUBLE to denote if the paddle board is a single person
board or a two person board). Implement the get/set methods for these member variables. The abstract
method in the SummerSportRental class, named lateCharge must be implemented to charge a late charge
of 20% of the rental cost. Be sure to include a method named toString to output the data stored in the
member variables for this class. No main method in the class allowed!
The BeachCruiserBikeRental class should have two private member variable named wheel_szie as an
integer that will be used for storing the wheel size in centimeters of the beach cruiser bike, and another
member variable named capacity as an enumerated type with the values (SINGLE, DOUBLE, TRIPLE
[which has a very stylin' side cart to it]) that stores the seating capacity of the beach cruiser bike. Implement
the get/set methods for these member variables. The abstract method in the SnowSportRental class, named
lateCharge must be implemented to charge a late charge of (20+capacity*5)% (late charge for single=25%,
double=30%, triple=35%) of the rental cost. Be sure to include a method named toString to output the data
stored in the member variables for this class. No main method in the class allowed!
C. Create separate test class source files with their respective main methods to test each implemented
method in the WaterSkiRental, PaddleboardRental, and BeachCruiserBikeRental classes. The list below is
the minimums for the test cases for each of the child classes:
WaterSkiRental:
1. equals() method
2. newModel ( test get and set )
3. rentalCost ( test get and set )
4. rentalNumber ( test get and set )
5. size ( test get and set )
6. lateCharge - make sure it adheres to the specifications above.
7. toString ( test toString method )
A total of 11 tests for WaterSkiRental class ( tests 1-4 are actually for the SummerSportRental class, and will
not need to be repeated for PaddleboardRental and BeachCruiserBikeRental class test )
PaddleboardRental:
1. size ( test get and set )
2. style ( test get and set )
3. lateCharge - make sure it adheres to the specifications above.
4. toString ( test toString method )
A total of four tests for PaddleboardRental class
BeachCruiserBikeRental:
1. wheel_size ( test get and set )
2. capacity ( test get and set )
3. lateCharge - make sure it adheres to the specifications above.
4. toString ( test toString method )
A total of four tests for BeachCruiserBikeRental class
You are to submit:
Zipfile of your Final Project with the following name format: LastName_FirstName_Final.zip
Programmer Documentation File
Note: make sure to thoroughly read through all of the requirements for this project. Specifications will be
very strictly enforced.

How do I do this in JAVA?

In: Computer Science

Discuss, in your own words using 500 words or more, how virtualization may create it's own...


Discuss, in your own words using 500 words or more, how virtualization may create it's own security vulnerabilities.

In: Computer Science

Q2) Answer with details : a - What are the four requirements engineering activities? b- What...

Q2) Answer with details :

a - What are the four requirements engineering activities?

b- What are the incremental delivery advantages?

In: Computer Science