Questions
Write a professional-quality letter advising applicant Robert Garneau-Hadfield that his application for a Bank of Montreal...

Write a professional-quality letter advising applicant Robert Garneau-Hadfield that his application for a Bank of Montreal Gold AIR MILES MasterCard has been declined.

Facts that are relevant to the decision are as follows:

  1. You are writing this letter on behalf of your supervisor, Bjarni Tryggvason, whose title is Manager, Credit Services. However, the recommendation to decline the application was yours.

  2. To qualify for the Gold Card the applicant must:

    1. Have at least one year of employment with the same employer;

    2. Own a home for at least six months, or rent the same home for at least one year;

    3. Have an income of at least $45,000 per year;

    4. Have a credit rating acceptable to Bank of Montreal.

  3. To qualify for the standard AIR MILES MasterCard the applicant must meet the same eligibility requirement as for the Gold Card, except that the applicant must:

    1. Have an income of at least $25,000 per year.

  4. As of the date of application, Robert has owned a home for 13 months, had an income of $42,500 in 2020, and has an acceptable credit rating.

  5. Roberta took a new job with a new employer on February 1, 2020.

  6. The Gold Card has the following benefits:

    1. Minimum credit limit of $5,000.

    2. Collision damage waiver insurance on cars rented with the card.

    3. 1 AIR MILES reward mile per $20 of purchases.

    4. Annual fee of $99.

  7. The bank has another credit card with easier eligibility requirements. This standard card has the following benefits:

    1. Minimum credit limit of $1,000.

    2. 1 AIR MILES reward mile per $40 of purchases with no annual fee.

    3. 1 AIR MILES reward mile per $20 of purchases, if an annual fee of $40 is paid.

  8. If any other information is missing that you feel is required or necessary, feel free to make reasonable assumptions. Please state the assumptions separately from your letter, so that I know what they are when I grade your letter.

In: Accounting

Please answer all qestions 1) Within a function header, for example: def gcd(a, b): The variables...

Please answer all qestions

1) Within a function header, for example:

def gcd(a, b):

The variables that appear within parentheses are called what?

Group of answer choices

a)variables

b)attributes

c)parameters

d)arguments

2)Question 31 pts

Within a function call, for example:

g = gcd(142, b);

The text that appears within parentheses is called what?

Group of answer choices

a) variables

b) attributes

c) parameters

d)arguments

3) Question 42 pts

Given this function header:

def compute(x, y, z):

And this code to call that function:

x = 7
result = compute(3, 2, x)

Within the function compute, what value will be stored in the parameter x ?

Group of answer choices

2

3

7

None of the above

4) Question 51 pts

What is wrong with the following function?

def area circle(radius):
    """Compute and return the area of a circle."""
    area = math.pi * radius ** 2
    return area

Group of answer choices

The function name includes a space character.

The function has no parameters.

The function redefines its parameter.

The function doesn't return a value.

5) Question 61 pts

What is wrong with the following function?

def kilometers_from_miles(miles):
    """Convert a value in miles to kilometers
    and return the kilometers value.
    """
    miles = float(input("Please enter a distance in miles: "))
    km = miles * 1.60934
    return km

Group of answer choices

The function has no parameters.

The function redefines its parameter.

The function is too short.

The function doesn't return a value.

6) Question 71 pts

What is wrong with the following function?

def torus_volume(inner, outer):
    """Compute and return the volume of a torus."""
    vol = 2 * (math.pi * inner) ** 2 * outer

Group of answer choices

The function has no parameters.

The function redefines its parameter.

The function is too short.

The function doesn't return a value.

In: Computer Science

Create four classes named: Planet, solarSystem, Earth and Moon, 1. Think how to use inheritance in...

Create four classes named: Planet, solarSystem, Earth and Moon,
1. Think how to use inheritance in three classes
2. solarSystem has
Name, color, Diameter_Miles, dist_From_Sun and perimeter =(float) 3.14*Diameter_Miles;
3. Moon has the following attributes:
Name, color, Diameter_Miles, dist_From_Sun, surface_area = 4*3.14*Radius*Radius;
And volume = (4/3)*(3.14)*(Radius_Miles)*(Radius_Miles)*(Radius_Miles);
4. Planet has the following attributes:
Name, color, Diameter_Miles, dist_From_Sun and volume = (4/3)*(3.14)*(Radius_Miles)*(Radius_Miles)*(Radius_Miles);
5. Earth has the following attributes:
Name, color, Diameter_Miles, dist_From_Sun and volume = (4/3)*(3.14)*(Radius_Miles)*(Radius_Miles)*(Radius_Miles);
Every class has constructor to initialize the input variables and measurements Method that prints the following:
From the solarSystem Class consider the following inputs: name ="solar System", color="multi", Diameter_Miles=7500000000L, dist_From_Sun =3666000000L
The output should be:
Name Of The solarSystem : solar System
Colour Of The solarSystem : multi
Distance From the Sun : 3666000000 miles
Perimeter of the solarSystem : 2.35500012E10 miles
--------------------------------------
From the Planet Class consider the following inputs: name =" Earth ", color=" blue", Diameter_Miles=3959L, dist_From_Sun =93000000L
The output should be:
Name Of The Planet : Earth
Colour Of The Planet : blue
Distance From the Sun is : 93000000 miles
Volume Of The Planet : 1.9484360366806003E11 cubic units
From the Earth Class consider the following inputs: name =" Earth ", color=" blue", Diameter_Miles=3959L, dist_From_Sun =93000000L
The output should be:
Name Of The Planet : Earth
Colour Of The Planet : blue
Distance From the Sun is : 93000000 miles
Volume Of The Planet : 1.9484360366806003E11 cubic units
-----------------
From the Moon Class consider the following inputs: name =" Luna", color=" silvery ", Diameter_Miles=1740L, dist_From_Sun =238900L
The output should be:
Name Of The Moon : Luna
Colour Of The Moon : silvery
Distance From the Mother Planet : 238900 miles
Surface area Of The Moon : 3.8026656E7 km^2
---------------

java

In: Computer Science

Need some assistance with a java program “Square,” that will implement a data type Square that...

Need some assistance with a java program “Square,” that will implement a data type Square that represents squares with the x and y coordinates of their upper-left corners and the length.

The API should be as follows.

Square(double x, double y, double length) //constructor

double area() //returns the area of the square

double perimeter() //returns the perimeter of the square

boolean intersects(Square b) //does this square intersect b? Two squares would intersect if they share one or more common points

boolean contains(Square b) //does this square contain b?

void draw() //draw this square on standard drawing

Note: The program should include a main method to test that it does the following.

  • Instantiate a Square object whose upper-left corner coordinates and length are given as command-line arguments. It should print out the area and perimeter of the square.

  • Prompt the user for a second square’s upper-left corner coordinates and length, and indicate whether it intersects with the square specified earlier and also whether it contains the square specified earlier.

  • Provide a pop-up window that displays the two squares.

A sample run would be as follows.

>java Square 0.2 0.7 0.3

The area is 0.09

The perimeter is 1.2

Enter the upper-left coordinates and the length of a square: 0.3 0.6 0.4

In: Computer Science

if a 12x12 matrix a shows the distance between 12 cities in kilometers. how can you...

if a 12x12 matrix a shows the distance between 12 cities in kilometers. how can you obtain from A the matrix B showing these distances in miles?

In: Advanced Math

In a study of 11 comma 00011,000 car​ crashes, it was found that 5544 of them...

In a study of

11 comma 00011,000

car​ crashes, it was found that

5544

of them occurred within 5 miles of home​ (based on insurance company​ data). Use a 0.01 significance level to test the claim that more than​ 50% of car crashes occur within 5 miles of home. Use this information to answer the following questions.

z =

​(Round to two decimal places as​ needed.)

c. What is the​ P-value?

​P-value=

​(Round to four decimal places as​ needed.)

d. What is the​ conclusion?

e. Are the results questionable because they are based on a survey sponsored by an insurance​ company?

In: Statistics and Probability

.Tire manufacturer is interested in testing the fuel economy for two different tread patterns. Tires of...

.Tire manufacturer is interested in testing the fuel economy for two different tread patterns. Tires of each tread type were driven for 1000 miles on each of 9 different cars. The mileages, in miles per gallon, were as follows. Test whether the mean mileage is the same for both types of tread. (ANOVA test)

Car 1 2 3 4 5 6 7 8 9
Tread A 24.7 22.5 24.0 26.9 22.5 23.5 22.7 19.7 27.5
Tread B 20.3 19.0 22.5 23.1 20.9 23.6 21.4 18.2 25.9

In: Statistics and Probability

Suppose an automobile manufacturer designed a new engine and needs to find the best grade of...

Suppose an automobile manufacturer designed a new engine and needs to find the best grade of gasoline for the best (highest) miles per gallon. The four grades are regular, economy, premium, and super premium. The test car made three trial runs on the test track using each of the four grades. The miles per gallon were recorded for each grade. Put these data into Minitab (STAT>ANOVA>OneWay>(Response data are in separate columns) ) and answer the following questions. Use Hmwk1Prob1Data Should the researcher print out a Tukey Comparison to see which grades have higher or lower gas mileage?

In: Statistics and Probability

On 1 Jan. 2015, Miles Ltd. acquired a machine for $300,000 cash. The machine has an...

On 1 Jan. 2015, Miles Ltd. acquired a machine for $300,000 cash. The machine has an estimated useful life of 10 years with no residual value. On 31 December 2016, based on evidence that the machine was impaired, the company estimated the recoverable amount of the machine to be $200,000. On 31 December 2018, there was evidence for reversal of impairment of the machine and the recoverable amount on this date was $170,000. Assume there is no change in the useful life of the machine. Miles Ltd. measured its machines using the cost model and adopts straight-line depreciation for its machines.

Prepare all relevant entries relating to this machine for 2015 to 2018.

In: Accounting

DESIGH A FLOWCHART IN FLOWGORITHM Speeding Violation Calculator. Design a program that calculates and displays the...

DESIGH A FLOWCHART IN FLOWGORITHM

Speeding Violation Calculator. Design a program that calculates and displays the number of miles per hour over the speed limit that a speeding driver was doing. The program should ask for the speed limit and the driver's speed.

Validate the input as follows:

The speed limit should be at least 20, but not greater than 70.

The driver's speed should be at least the value entered for the speed limit (otherwise the driver was not speeding) Once correct data has been entered, the program should calculate and display the number of miles per hour over the speed limit that the driver was doing.

PLEASE AND THANK YOU

In: Computer Science