Questions
MAT 204 Discrete Structures – Assignment #10 Number theory is the branch of mathematics concerned with...

MAT 204 Discrete Structures – Assignment #10

Number theory is the branch of mathematics concerned with the integers. Traditionally, number theory was a pure branch of mathematics – known for its abstract nature rather than its applications. The great English mathematician, G.H. Hardy (1877 – 1947), used number theory as an example of a beautiful, but impractical, branch of mathematics. However, in the late 1900s, number theory became extremely useful in cryptosystems – systems used for secure communications.

Find the following for each pair of integers:

(a) The prime factorization;

(b) The greatest common divisor;

(c) The least common multiple;

(d) Verify that gcd (m, n) * lcm(m, n) = mn.

(i) 315, 825

(ii) 2091, 4807

In: Advanced Math

A researcher is studying memory for different types of words under low, and high memory load....

A researcher is studying memory for different types of words under low, and high memory load. She uses concrete words (e.g., dog, boat) and abstract words (e.g. love, height) in a factorial design, with five participants in each cell. With part of the information in the summary table, please finish the table and conduct the analysis.

Source

SS

df

MS

F

Between

2000

Word Type

750

Memory Load

125

Load*Type

Within Treatment

------------

Total

3500

------------

------------

a. Test and draw conclusions about the main effect of memory load.

b. Test and draw conclusions about the main effect of word type.                                 

c. Test and draw conclusions about the memory load x word type interaction

In: Statistics and Probability

Test the given claim about the means of two populations. Assume that two dependent samples have...

Test the given claim about the means of two populations. Assume that two dependent samples have been randomly selected from normally distributed populations. A test of abstract reasoning is given to a random sample of students before and after they completed a formal logic course. The results are given below. At the 0.05 significance level, test the claim that the mean score is not affected by the course. Include your null and alternative hypotheses, the test statistic, P-value or critical value(s), conclusion about the null hypothesis, and conclusion about the claim in your answer.

Before 74 83 75 88 84 63 93 84 91 77
After 73 77 70 77 74 67 95 83 84 75

In: Statistics and Probability

Create a new product that will serve two business (organizational) markets. Write a 750-1,000-word paper that...

Create a new product that will serve two business (organizational) markets.

Write a 750-1,000-word paper that describes your product, explains your strategy for entering the markets, and analyzes the potential barriers you may encounter. Explain how you plan to ensure your product will be successful, given your market strategy.

Include an introduction and conclusion that make relevant connections to course objectives.

Prepare this assignment according to the APA guidelines found in the APA Style Guide, located in the Student Success Center. An abstract is not required.

This assignment uses a grading rubric. Instructors will be using the rubric to grade the assignment; therefore, students should review the rubric prior to beginning the assignment to become familiar with the assignment criteria and expectations for successful completion of the assignment.

In: Operations Management

1 .RuntimeException class is a subclass of the Exception class. Fill in the blanks to complete...

1 .RuntimeException class is a subclass of the Exception class. Fill in the blanks to complete the declaration of the RuntimeException class. _____________   ________________    _________________

.

.

.

3. RuntimeException is a subclass of Exception. The constructor RuntimeException(String message) calls the parent class's constructor with the message argument. Which of the following makes the call correctly?

this(message);

super(message);

super.Exception(message);

Exception(message);

4. RuntimeException has overloaded constructors: the 1-argument constructor RuntimeException(String message) and the 2-argument constructor RuntimeException(String message, Throwable cause).

The 2-argument constructor calls the 1argument constructor with message as the argument. Which of the following makes the call correctly?

this(message);

RuntimeException(message);

this.RuntimeException(message);

5. RuntimeException is a sublcass of Exception. Both classes have a constructor that takes a String argument. Among the statements below, indicate all that are syntactically correct.

Exception e = new Exception("Division by zero problem");

Exception e = new RuntimeException("Division by zero problem");

RuntimeException e = new Exception("Division by zero problem");

RuntimeException e = new RuntimeException("Division by zero problem");

6. Payable is an interface with one method payableAmount() that returns double.

(1) The source code of the interface is saved in a file named ____________java

(2) Fill in the blanks to complete code for the interface:

public ____________________ Payable {

public abstract _______________payableAmount();

}

7. The Student class implements the Payable interface without actually implementing the only payableAmount() method declared in the interface. Fill in the blanks to complete the declaration of the Student class:

public _________ class   __________      ___________         __________

8. SQLException is unchecked exception, hence handling such exception is optional.

True

False

9. An abstract class can have constructors even though it cannot be instantiated.

True

False

10. In Java, a class can implement more than one interface.

True

False

In: Computer Science

QUESTION 41 Fanciful, arbitrary, suggestive marks; such as Xerox, Google and Apple, have acquired the necessary...

QUESTION 41

  1. Fanciful, arbitrary, suggestive marks; such as Xerox, Google and Apple, have acquired the necessary secondary meaning for obtaining trademark protection

    True

    False

1 points   

QUESTION 42

  1. Generic terms such as aspirin, escalator and cornflakes have acquired a secondary meaning, but they are not entitled to trademark protection

    True

    False

1 points   

QUESTION 43

  1. Trademark common law was created just for commercial products therefore service marks are not protected by common law

    True

    False

1 points   

QUESTION 44

  1. Trade dress refers to the overall image, decor and appearance of a product, but without the same trademark protections as a product.

    True

    False

1 points   

QUESTION 45

  1. A patent is similar to trademarks and is protected upon first use, however it is a good idea to register in order to provide notice to the world that you own the patent

    True

    False

1 points   

QUESTION 46

  1. Virtually anything is patentable except for laws of nature, natural phenomena and abstract ideas

    True

    False

1 points   

QUESTION 47

  1. An abstract idea is protected by copyright law, but only after it has been placed into tangible form; also copyright registration is not required

    True

    False

1 points   

QUESTION 48

  1. The Fair Use Doctrine is an exception to copyright infringement liability

    True

    False

1 points   

QUESTION 49

  1. According to the First Use Doctrine, I can buy a book and reproduce it (within reasonable limits) for the first use, thereafter I would have to pay a royalty

    True

    False

1 points   

QUESTION 50

  1. A trade secret is no longer a trade secret if it is disclosed, therefore if a key employee with knowledge of a trade secret resigns or is fired, you probably have lost your trade secret

    True

    False

In: Economics

Swifty Supply Company, a newly formed corporation, incurred the following expenditures related to Land, to Buildings,...

Swifty Supply Company, a newly formed corporation, incurred the following expenditures related to Land, to Buildings, and to Machinery and Equipment. Abstract company’s fee for title search $936 Architect’s fees 5,706 Cash paid for land and dilapidated building thereon 156,600 Removal of old building $36,000 Less: Salvage 9,900 26,100 Interest on short-term loans during construction 13,320 Excavation before construction for basement 34,200 Machinery purchased (subject to 2% cash discount, which was not taken) 99,000 Freight on machinery purchased 2,412 Storage charges on machinery, necessitated by noncompletion of building when machinery was delivered 3,924 New building constructed (building construction took 6 months from date of purchase of land and old building) 873,000 Assessment by city for drainage project 2,880 Hauling charges for delivery of machinery from storage to new building 1,116 Installation of machinery 3,600 Trees, shrubs, and other landscaping after completion of building (permanent in nature) 9,720 Determine the amounts that should be debited to Land, to Buildings, and to Machinery and Equipment. Assume the benefits of capitalizing interest during construction exceed the cost of implementation. Company uses net method to record discount. (Please leave spaces blank if there is no answer. Do not enter zeros in those spaces.) Land Buildings Machinery and Equipment Other Abstract company’s fee for title search $ $ $ $ Architect’s fees Cash paid for land and old building Removal of old building Interest on short-term loans during construction Excavation before construction for basement Machinery purchased Freight on machinery purchased Storage charges on machinery New building constructed Assessment by city for drainage project Hauling charges Installation of machinery Trees, shrubs, and other landscaping $ $ $ $

In: Accounting

Question: An ATM can only dispense bills of the following denominations: $500, $100, $50, $10, $5,...

Question: An ATM can only dispense bills of the following denominations: $500, $100, $50, $10, $5, and $1

When a user withdraws an amount from the ATM, the machine tries to dispense the amount using the least number of bills possible.

For instance, if the user requests $1234, the ATM dispenses 2 bills of $500 + 2 bills of $100 + 3 bills of $10 + 4 bills of $1. On the other hand, if the user requests $1235, the machine dispenses 2 bills of $500 + 2 bills of $100 + 3 bills of $10 + 1 bill of $5

Use the skeleton code provided to create an ATM dispenser that takes the amount and prints the least number of bills that makes up the amount in the following format:

__ bills of $500 + __ bills of $100 + __ bills of $50 + __ bills of $10 + __ bills of $5 + __ bills of $1

Apply chain of responsibility pattern such that each denomination is handled by a separate handler.

Below is the code:

abstract class Handler

{

    Handler successor;

    abstract public String dispense(int amount);

}

class Handler500 extends Handler

{

}

class Handler100 extends Handler

{

}

class Handler50 extends Handler

{

}

class Handler10 extends Handler

{

}

class Handler5 extends Handler

{

}

class Handler1 extends Handler

{

}

class ATM

{

    Handler handler;

    public ATM(Handler handler)

    {

        this.handler = handler;

    }

    public string dispense(int amount)

    {

        return handler.dispense();

    }

}

public class ATMTester

{

    public static void main(String[] args)

    {

                    ATM atm;

                /// TODO - create an ATM object with the appropriate handlers and store it in the variable "atm"

System.out.println(atm.dispense(1234)); // should display: 2 bills of $500 + 2 bills of $100 + 3 bills of $10 + 4 bills of $1

System.out.println(atm.dispense(1235)); // should display: 2 bills of $500 + 2 bills of $100 + 3 bills of $10 + 1 bills of $5

    }

}

In: Computer Science

Exercise 10-5 Ben Sisko Supply Company, a newly formed corporation, incurred the following expenditures related to...

Exercise 10-5

Ben Sisko Supply Company, a newly formed corporation, incurred the following expenditures related to Land, to Buildings, and to Machinery and Equipment.

Abstract company’s fee for title search                                                                                  $520

Architect’s fees                                                                                                                                3,170

Cash paid for land and dilapidated building thereon                                                         87,000

Removal of old building                                                                                 $20,000

   Less: Salvage                                                                                                   5,500                     14,500

Interest on short-term loans during construction                                                              7,400

Excavation before construction for basement                                                                    19,000

Machinery purchased (subject to 2% cash discount, which was not taken)            55,000

Freight on machinery purchased                                                                                               1,340

Storage charges on machinery, necessitated by noncompletion of                                                          

   building when machinery was delivered                                                                             2,180

New building constructed (building construction took 6 months from                                                     

   date of purchase of land and old building)                                                                         485,000

Assessment by city for drainage project                                                                                                1,600

Hauling charges for delivery of machinery from storage to new building                 620

Installation of machinery                                                                                                              2,000

Trees, shrubs, and other landscaping after completion of building                                                           

   (permanent in nature)                                                                                                                               5,400

Determine the amounts that should be debited to Land, to Buildings, and to Machinery and Equipment. Assume the benefits of capitalizing interest during construction exceed the cost of implementation. Company uses net method to record discount. (Please leave spaces blank if there is no answer. Do not enter zeros in those spaces.)

Land                      Buildings              Machinery and Equipment          Other

Abstract company’s                        $                              $                                              $                                              $

fee for title search                          

Architect’s fees               

Cash paid for land and old building                          

Removal of old building                

Interest on short-term loans during construction                             

Excavation before construction for basement                   

Machinery purchased                   

Freight on machinery purchased                              

Storage charges on machinery                  

New building constructed                           

Assessment by city for drainage project                               

Hauling charges               

Installation of machinery                             

Trees, shrubs, and other landscaping                     

In: Accounting

Assignment 5: Roman Numerals Assignment 5 You must create an application that takes two integer values,...

Assignment 5: Roman Numerals Assignment 5

You must create an application that takes two integer values, adds them together, and then displays the result of that expression as a roman numeral.

Create a two Python scripts:

1. Name your first script roman_numerals.py

2. Name your second script user_input.py

3. The goal of this projects is to practice the principles of abstraction while adding in an element of selection. How much you abstract your code is up to you, but you will be graded on the level of abstraction you achieve with your code. It is suggested that you use the roman_numerals.py file to create functions that abstract any complexity of logic from your user_input.py file.

4. Between the two files, your application must have the following functionality

a. Prompt the user for two integer inputs between 1 and 5.

b. Validate that the number is between 1 and 5.

c. Convert the input values to the appropriate data types

d. Add the two numbers together.

e. If the value is greater than 10, inform the user that the value is too high.

f. If the value is less than 1, inform the user that the value is too low.

g. Display the roman numeral of the value of the added numbers.

Scoring

1. 15% - Compiles without errors

2. 5% - Prompt user for two numbers between 1 and 5

3. 10% - Add two numbers together

4. 10% - Validate the total number is between 1 and 10

5. 10% - Convert the total number to a roman numeral

6. 15% - Display the roman numeral in a message “The roman numeral of the total is ”

7. 20% - Level of abstraction achieved

8. 15% - Meaningful comments a. This includes your header block with your name at the top.

In: Computer Science