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 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
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 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
In: Statistics and Probability
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 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 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 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
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 |
In: Advanced Math