Questions
Windsor, Inc. is a retailer operating in Calgary, Alberta. Windsor uses the perpetual inventory method. Assume...

Windsor, Inc. is a retailer operating in Calgary, Alberta. Windsor uses the perpetual inventory method. Assume that there are no credit transactions; all amounts are settled in cash. You are provided with the following information for Windsor for the month of January 2022.

Date

Description

Quantity

Unit Cost or Selling Price

Dec. 31

Ending inventory

165 $20

Jan. 2

Purchase

99 21

Jan. 6

Sale

200 40

Jan. 9

Purchase

81 24

Jan. 10

Sale

65 44

Jan. 23

Purchase

100 26

Jan. 30

Sale

130

47

For each of the following cost flow assumptions, calculate (i) cost of goods sold, (ii) ending inventory, and (iii) gross profit. (Round answers to 0 decimal places, e.g. 125.)

(1) LIFO.
(2) FIFO.
(3) Moving-average.

In: Accounting

]It is widely known that alcohol related car accidents can have a big impact on people’s...

]It is widely known that alcohol related car accidents can have a big impact on people’s lives. One widely reported statistic is that the mean number of “years of potential life lost” among men is 32, but it was computed several years ago. Researchers want to know if this statistic has changed since the data were first compiled, with a significance level of 5%. A random sample of 24 alcohol related fatalities from this moth had a mean “years of potential life lost” of 33.8 and a standard deviation of 6 years.

a. [7 points] Construct a confidence interval around the sample mean at 95% Confidence Level.

b. [7 points] Based on the confidence interval, how would you decide about the hypothesis that the mean statistic of “years of potential life lost” has remained the same (at 5% level of significance)?

In: Statistics and Probability

*In JAVA and JavaFX please!! CSE1322 – Assignment 8 – GUI General User Interface Assignment 8...

*In JAVA and JavaFX please!!

CSE1322 – Assignment 8 – GUI
General User Interface
Assignment 8
Objectives
• Build a GUI application similar to a calculator.
• Create an application that acts as a simple calculator. Create buttons for 0-9 and a text
field that displays the concatenation of the current digits as they are clicked.
• Add buttons for operators “+”, “-“, “*”, and “/”.
• Add a final button for “=” that calculates the computed value with the value entered in
the text field. For instance, clicking buttons 7, +, 8, = should display 15.
Tasks
This assignment has two parts (one for the front-end and another for the back-end):
1. Front-End: Building the window (Making the GUI buttons and the Label).
2. Back-End: Making the variables to store the values and event handlers that are
responsible for handling the actions of the Label and Buttons.
Overall Objective: You will need create a calculator with the that can add, subtract, divide, and
multiply numbers. This calculator should not rely on textboxes to enter in values but should have
an array of buttons one through nine for the numbers and buttons for the operations.
Logical Insight: How Should the Program Work?
When a numerical or operator button is clicked it should concatenate its number or operator to
the current calculation. For example, it should show the value “98” if the buttons “9” and “8
were clicked. However, if an operator button was clicked between two numbers then it should
show that operator between the values. For example, it should show “9 / 8” if the buttons “9”,
then “/”, and then “8” were clicked. It is important to note that if we click “9”, then “8”, then “/”,
and finally “8” we would get “98 / 8”.
The equal (=) button is special in that if it is clicked after a valid operation occurs it should
replace the whole equation with the result of the calculation. Therefore, we should never see the
“=” in the label. For instance, “98 / 8” evaluates to 12.25, so the label should show “12.25” after
the equal sign button is clicked.
NOTE: Assume that the equal sign is only pressed after at least two separate numbers and an
operator are entered and that the user will want to use that as their first number for the next
operation. That means if a new number is pressed, then it will be added to the end (as the last
digit) of the result from the last operation. Also, this should work for at least two (2) digits, but
your calculations do not need to work for more than that.
Page 2 of 4
Front-End – Building the Window
Using the knowledge acquired in the Lab 8, construct a GUI window with buttons for the
numbers zero (0) through nine (9), and buttons for addition (+), subtraction (-), multiplication
(*), division (/) and finally equality (=). Also add a label object in your window that will fill up
with the numbers/operator buttons being pressed (this text field should show the complete
formula before pressing the “=” button). You should be familiar with this as a result of doing Lab
8.
Back-End – Make the Event Handlers and the Variables to Store Values
In Java you will need to create variables to store the values in the Controller Class as well
as variables to store what will appear in the Label; Event Handlers should also be created that
will take care of what happens when buttons are pressed. How to do this is mentioned in detail in
the explanation sections in Lab 8.
In C# you will need to create variables that should store the values for when the buttons
are pressed in the GUI in the Form1.cs file. In addition, Event Handlers (in the form of methods)
should also be created to handle what these button presses do on a per button by button bases.
Labels should be created and named in the GUI portion. How to do this is mentioned in detail in
the explanation sections in Lab 8.
For example, for when the equality (=) is clicked, ideally one of these variables will be
the result variable that will hold the final solution. There should be an event handler (event and
event listener for C#) that is triggered by the clicking of the equality (=) button that goes and
retrieves the value in the result variable and displays it on the label instead of the previous
function that was being displayed.
Intentionally Left Blank
Below is some possible sample output (note: ∃ simply means, “there exists”):
The last button pressed has a dark blue highlight around the edges.

In: Computer Science

Seasonal affective disorder (SAD) is a type of depression during seasons with less daylight (e.g., winter...

Seasonal affective disorder (SAD) is a type of depression during seasons with less daylight (e.g., winter months). One therapy for SAD is phototherapy, which is increased exposure to light used to improve mood. A researcher tests this therapy by exposing a sample of SAD patients to different intensities of light (low, medium, high) in a light box, either in the morning or at night (these are the times thought to be most effective for light therapy). All participants rated their mood following this therapy on a scale from 1 (poor mood) to 9 (improved mood). The hypothetical results are given in the following table.

   Light Intensity
Low Medium High
Time of
Day
Morning 5 5 7
6 6 8
4 4 6
7 7 9
5 9 5
6 8 8
Night 5 6 9
8 8 7
6 7 6
7 5 8
4 9 7
3 8 6

(a) Complete the F-table and make a decision to retain or reject the null hypothesis for each hypothesis test. (Round your answers to two decimal places. Assume experimentwise alpha equal to 0.05.)

Source of
Variation
SS df MS F
Time of day
Intensity
Time of
day ×
Intensity
Error   
Total

In: Statistics and Probability

Statistics Let us compare the failure times of certain type of light bulb produced by two...

Statistics

Let us compare the failure times of certain type of light bulb produced by two different manufacturers, X and Y, by testing 10 bulbs selected at random from each of the outputs. The data, in hundreds of hours used before failure, are

x: 5, 64, 66, 84, 96, 15, 34, 55, 85, 44, 7
y: 7, 28, 15, 17, 36, 97, 85, 96, 76, 57, 1

a. Use the Wilccoxon signed rank statistic to test the equality of medians of the failure times at an approximate 0.05 level of significance?
b. What is the p-value of your test?

In: Statistics and Probability

Use the counting techniques from the last chapter. A bag contains two red marbles, three green...

Use the counting techniques from the last chapter. A bag contains two red marbles, three green ones, one fluorescent pink one, two yellow ones, and three orange ones. Suzan grabs three at random. Find the probability of the indicated event.

She gets all the red ones, given that she gets the fluorescent pink one.

In: Statistics and Probability

There is a very popular restaurant located along the coast of Cape Breton. It serves a...

There is a very popular restaurant located along the coast of Cape Breton. It serves a variety of steak and seafood dinners. During the summer beach season, it does not take reservations. Therefore, Management is concerned about the time a patron has to wait before being seated for dinner. The table below contains the wait times for the 25 tables on a randomly selected Saturday night:

28 39 23 67 37 28 56 40 28 50 51 45 44 65 61 27 24 61 34 44 64 25 24 27 29

a) Find the mean and median of the wait times.

b) Find the range and standard deviation of wait times.

c) Find the coefficient of variation of wait times.

d) Find Pearson’s coefficient of Skewness.

In: Statistics and Probability

In parallel computing, what is the meaning of “skew”? Select one: a. The number of operations...

In parallel computing, what is the meaning of “skew”?

Select one:

a. The number of operations in one of the parallel processors starts increasing exponentially.

b. In the distribution of work among the processors, some processors are getting a larger number of tuples than others.

c. One of the parallel processors overheats and in a chain reaction the same happens to all other processors.

d. One parallel processor runs hotter than the others.

e. The number of operations rises beyond reasonable limits.

What operation is responsible for the retrieval of information from a database in a transaction schedule?

Select one:

a. Get

b. Pull

c. See

d. Read

e. Retrieve

Logical, physical and view levels are elements of the model of…

Select one:

a. Entity Relationship (ER)

b. Data Abstraction

c. Domain Model Language (DML)

d. Domain Object Model (DOM)

e. Backup and Recovery

Which of the following is NOT commonly understood as a type of database user?

Select one:

a. Naïve user

b. Sophisticated user

c. Specialized user

d. Native user

e. Application programmer

In: Computer Science

A department employs up to thirty employees, but an employee is employed by one department. For...

A department employs up to thirty employees, but an employee is employed by one department. For each employee you need to store unique employee Id, name, address and salary. Departments are identified by department Id and also have a name. Some employees are not assigned to any department. A division operates many departments, but each department is operated by one division. An employee may be assigned at the most three projects, and a project may have at the most six employees assigned to it. A project may have at least one employee assigned to it. Each project is identified by unique name and has a budget. A project can be related to other projects. There can be many related projects. One of the employees manages each department, and each department is managed by only one employee. One of the employees runs each division, and each division is run by only one employee. For each division, store unique Id and name.

REQUIRED:

a) Design a conceptual diagram from the above information.                     

b) Develop a logical data model for the database.                                      

c) Explain the importance of data modelling.                                                

In: Computer Science

Suppose that you work in a shoe company want to compare two materials, A and B,...

  1. Suppose that you work in a shoe company want to compare two materials, A and B, for use on the soles of boys' shoes. In this problem, each of ten boys in a study wore a special pair of shoes with the sole of one shoe made from Material A in column (Mat-A) and the sole on the other shoe made from Material B in column (Mat-B). The sole types were randomly assigned to account for systematic differences in wear between the left and right foot. After three months, the shoes are measured for wear

data:

weight in lb Mat-A Mat-B
49 13.2 14
51 8.2 8.8
46 10.9 11.2
50 14.3 14.2
51 10.7 11.8
47 6.6 6.4
44 9.5 9.8
47 10.8 11.3
46 8.8 9.3
    • Weight measurements were made on nine boys in column (weight lb). You know that the distribution of measurements has historically been close to normal with s= 0.2. Test if the population mean is 50 and obtain a 90% confidence interval for the mean. - (Solve manually and Minitab)
    • You want to see if these is difference between the two materials. Justify your answers by using hypothesis testing and confidence interval procedures. - (Solve manually and Minitab)
    • Compare the results from the paired procedure with those from an unpaired- (Solve manually and Minitab)

In: Advanced Math