Nolan Mills uses a standard cost system. During May, Nolan manufactured 15,000 pillowcases, using 27,900 yards of fabric costing $3.05 per yard and incurring direct labor costs of $17,496 for 3,240 hours of direct labor. The standard cost per pillowcase assumes 1.75 yards of fabric at $3.10 per yard, and 0.20 hours of direct labor at $5.95 per hour.
a. Compute both the price variance and quantity variance relating to direct materials used in the manufacture of pillowcases in May.
b. Compute both the rate variance and efficiency variance for direct labor costs incurred in manufacturing pillowcases in May.
(For all requirements, Indicate the effect of each variance by selecting "Favorable" or "Unfavorable". Select "None" and enter "0" for no effect (i.e., zero variance). Round your answers to 2 decimal places.)
a. Materials price variance 1395.00 Favorable
Materials quantity variance _______ Unfavorable
b. Labor rate variance ________ Favorable
Labor
efficiency variance ________
Unfavorable
In: Accounting
Pick a Canadian company listed on the Toronto Stock Exchange and find a revenue stream that you can apply the concepts of revenue recognition to the company chosen.
In: Accounting
C Programming Assignment 4
Cache Simulation
Objective:
To write a C program that simulates reading and writing to a custom-sized direct-mapped cache, involving a custom-sized main memory.
The program will read all values from the ZyLab as Test Bench inputs.
Main Menu Options:
The program simulates reading from and writing to a cache based on choosing from a menu of choices, where each choice calls the appropriate procedure, where the choices are:
Note that when you read from ZyLab, the input values are not displayed on the screen as they are in the sample run at the end of this document.
Inputs:
Input Value Checks:
Output Messages:
All messages should be display EXACTLY as shown in the sample run; that is, prefixed by three asterisks, a space and hyphen and one more space. The message should be followed by a blank line.
*** All Input Parameters Accepted.
Starting to Process Write/Read Requests
Note that one message has been deleted from previous versions of this Specification and three new ones have been added.
*** Error - Main Memory Size is not a Power of 2
*** Error - Block Size is not a Power of 2
*** Error - Cache Size is not a Power of 2
*** Error – Block size is larger than cache size
*** Error – Cache Size is not a multiple of Block Size
*** Error – Read Address Exceeds Memory Address Space
*** Error – Write Address Exceeds Memory Address Space (The write value following the invalid address value should be read and then discarded)
*** Error – Invalid Menu Option Selected (Until configuration data has been accepted, the only valid menu options that can be entered are “1” or “4.”)
Whenever any one of these errors occurs, the program should loop back to the Main Menu.
*** Word WW of Cache Line LL with Tag TT contains Value VV
This message should appear after all successful reads or writes
WW is the word number in the cache line, LL is the line number in the cache, TT is the line’s tag value and VV is the content value in the cache.
All values are in decimal.
*** Read Miss - First Load Block from Memory (followed on the next line by the Content Message above)
*** Cache Hit (followed on the next line by the Content Message above)
*** Write Miss - First Load Block from Memory (followed on the next line by the Content Message above)
*** Cache Hit (followed on the next line by the Content Message above)
*** Memory Freed Up – Program Terminated Normally
When option 4 is entered, the memory should be freed up and the message “Memory Freed Up – Program Terminated Normally”, followed by a blank line, should be displayed before exiting the program.
Program Requirements:
Each word i of main memory is initialized with the value M–i, where M is the size of main memory in words. So, memory location 0 will contain the address of the last memory location and the last memory location will contain the address of the first memory location (i.e. 0).
Prologue & Comments:
At the very beginning of your source code (the very first lines), please include a prologue which looks like the following:
/*
Dr. George Lazik (use your full name not mine)
Programming Assignment 4: Cache Simulation
Comp 222 – Fall 2019
Meeting Time: 0800-0915 (your meeting time)
*/
// Reading input values from ZyLab
// Determining the contents of memory
ZyLab Test Benches:
Make sure your full name appears on each page of the listing and that all pages are stapled together in their correct order BEFORE you come to class.
Failure to provide this listing will result in no grade for the assignment.
Sample Test Run
The following is a sample run of one of the tests in Assignment 4’s Test Bench on ZyBooks. Note: Some recently added error conditions are not included in this run.
1
65536
512
1024
1
65536
1027
16
1
65536
1024
15
1
65537
1026
4096
1
65536
1024
18
1
65536
1024
16
3
65535
14
2
65535
3
65534
512
2
1023
4
Your output
Programming Assignment 4: Cache Simulation
Comp 222 - Fall 2019
Main Menu - Main Memory to Cache Memory Mapping
------------------------------------------------
1) Enter Configuration Parameters
2) Read from Cache
3) Write to Cache
4) Quit Program
Enter selection:
Enter main memory size (words):
Enter cache size (words):
Enter block size (words/block):
*** Error - Block Size is Larger than Cache Size
Main Menu - Main Memory to Cache Memory Mapping
------------------------------------------------
1) Enter Configuration Parameters
2) Read from Cache
3) Write to Cache
4) Quit Program
Enter selection:
Enter main memory size (words):
Enter cache size (words):
Enter block size (words/block):
*** Error - Cache Size is not a Power of 2
Main Menu - Main Memory to Cache Memory Mapping
------------------------------------------------
1) Enter Configuration Parameters
2) Read from Cache
3) Write to Cache
4) Quit Program
Enter selection:
Enter main memory size (words):
Enter cache size (words):
Enter block size (words/block):
*** Error - Block Size is not a Power of 2
Main Menu - Main Memory to Cache Memory Mapping
------------------------------------------------
1) Enter Configuration Parameters
2) Read from Cache
3) Write to Cache
4) Quit Program
Enter selection:
Enter main memory size (words):
Enter cache size (words):
Enter block size (words/block):
*** Error - Main Memory Size is not a Power of 2
Main Menu - Main Memory to Cache Memory Mapping
------------------------------------------------
1) Enter Configuration Parameters
2) Read from Cache
3) Write to Cache
4) Quit Program
Enter selection:
Enter main memory size (words):
Enter cache size (words):
Enter block size (words/block):
*** Error - Cache size is not a multiple of block size
Main Menu - Main Memory to Cache Memory Mapping
------------------------------------------------
1) Enter Configuration Parameters
2) Read from Cache
3) Write to Cache
4) Quit Program
Enter selection:
Enter main memory size (words):
Enter cache size (words):
Enter block size (words/block):
*** All Input Parameters Accepted. Starting to Process Write/Read Requests
Main Menu - Main Memory to Cache Memory Mapping
------------------------------------------------
1) Enter Configuration Parameters
2) Read from Cache
3) Write to Cache
4) Quit Program
Enter selection:
Enter Main Memory Address to Write:
Enter Value to Write:
*** Write Miss - First load block from memory
*** Word 15 of Cache Line 63 with Tag 63 contains the Value 14
Main Menu - Main Memory to Cache Memory Mapping
------------------------------------------------
1) Enter Configuration Parameters
2) Read from Cache
3) Write to Cache
4) Quit Program
Enter selection:
Enter Main Memory Address to Read:
*** Cache Hit
*** Word 15 of Cache Line 63 with Tag 63 contains the Value 14
Main Menu - Main Memory to Cache Memory Mapping
------------------------------------------------
1) Enter Configuration Parameters
2) Read from Cache
3) Write to Cache
4) Quit Program
Enter selection:
Enter Main Memory Address to Write:
Enter Value to Write:
*** Cache Hit
*** Word 14 of Cache Line 63 with Tag 63 contains the Value 512
Main Menu - Main Memory to Cache Memory Mapping
------------------------------------------------
1) Enter Configuration Parameters
2) Read from Cache
3) Write to Cache
4) Quit Program
Enter selection:
Enter Main Memory Address to Read:
Read Miss - First Load Block from Memory
*** Word 15 of Cache Line 63 with Tag 0 contains the Value 64513
Main Menu - Main Memory to Cache Memory Mapping
------------------------------------------------
1) Enter Configuration Parameters
2) Read from Cache
3) Write to Cache
4) Quit Program
Enter selection:
*** Memory Freed Up - Program Terminated Normally
In: Computer Science
What would happen if Chromium (II) and Sulfur bonded?
How are Ionic Bonds formed and what is the attractive force within an Ionic Bond?
In: Chemistry
Describe the differences between a legal duty and a moral duty. Define each in your own words, and describe the differences between the two across relevant aspects, including how each is established and enforced, and consequences of not honouring the duty.
b) Give a specific, detailed example of an event where there were negative consequences for a person or group who didn’t honour a moral duty (Hint - loss of reputation is one possible negative consequence). Describe the event and explain how the consequences came about.
In: Computer Science
I will be happy if you show me your best explanation. I will provide a thumb up if you solve correctly.
8. Two identical piano wires have a fundamental frequency of 650 Hz when kept under the same tension. What fractional increase in the tension of one wire will lead to the occurrence of 8 beats/s when both wires vibrate simultaneously? Answer: ( which one: 0.0248 or 0.0246 and why)
9. A stone is dropped into a well. The sound of the splash is heard 3.5 s later. What is the depth of the well? Take the speed of sound in air to be 343 m/s. Answer: a=7.4 h=54.8m
In: Physics
Assume that the following data characterize the hypothetical economy of Trance: money supply = $180 billion; quantity of money demanded for transactions = $140 billion; quantity of money demanded as an asset = $10 billion at 12 percent interest, increasing by $10 billion for each 2-percentage-point fall in the interest rate.
a. What is the equilibrium interest rate in Trance?
b. At the equilibrium interest rate, what are the quantity of money supplied, the total quantity of money demanded, the amount of money demanded transactions, and the amount of money demanded as an asset in Trance?
Quantity of Money Supplied= ______ Billion
Quantity of Money Demanded = _____ Billion
Amount of Money Demanded Transaction= ____ Billion
Amount of Money Demanded as an asset= ____ billion
In: Economics
Two converging lenses, the first with focal length 10.0 cm and the second with focal length 20.0 cm, are separated by 40.0 cm. An object, 3.00 cm in height, is placed 30.0 cm in front of the first lens. Which of the following characteristics does the final image have? real and upright real and inverted virtual and upright virtual and inverted none of these choices are correct
In: Physics
Create a program in java eclipse named “Forecast” and a method called “String getWeather(boolean raining, int temperature)”. Depending on the parameters, return one of four outcomes:
If it’s not raining and under 30 degrees: return “The weather is chilly”
If it’s not raining and at/over 30 degrees: return “The weather is sunny”
If it’s raining and under 30 degrees: return “The weather is snowy”
If it’s raining and at/over 30 degrees: “The weather is rainy”
You must use nested if statements for this problem.
In: Computer Science
Suppose a cyclotron is operated at an oscillator frequency of 10.0 MHz and has a dee radius 42.9 cm. Estimate the total path length traveled by a deuteron in the cyclotron during the (entire) acceleration process. Assume that the accelerating potential between the dees is 94.9 kV. The deuteron mass is m = 3.34x10^-27 kg.
In: Physics
Consider a file system in which multiple users/clients can
access the data from the disks
over storage network. Assume each user/client has its file system
and considers its storage
disks (shared with other clients) as local.
(a) Explain how this file system is different as compared to NFS
(Network File
Servers).
(b) What are the major advantages and disadvantages of this type of
file systems (do
not repeat the points mentioned in answering the part-a)?
In: Computer Science
On December 31, year 0, your company issued a 3-year $80,000 bond with 4% coupons payable annually. Proceeds were $78,900. On January 1, year 3, your company repurchased all of the outstanding 4% bonds. Provide the financial statement amounts under each scenario market discount rate applied to the bond at January 1, year 3.
|
Market discount rate at repurchase |
Cash paid to repurchase bonds |
Net Book value of bond on Jan. 1, year 3 (just after 2nd coupon payment) |
Gain (+) or loss (-) on the repurchase |
|
3.9% |
|||
|
4.5% |
|||
|
5.8% |
In: Accounting
Consider three identical metal spheres, A, B, and C. Sphere A carries a charge of -4q. Sphere B carries a charge of -5q. Sphere C carries no net charge. Spheres A and B are touched together and then separated. Sphere C is then touched to sphere A and separated from it. Last, sphere C is touched to sphere B and separated from it. For the following questions, express your answers in terms of q.
(a) How much charge ends up on sphere C?
(b) What is the total charge on the three spheres before they are allowed to touch each other?
(c) What is the total charge on the three spheres after they have touched?
Please answer all three parts if possible and show all steps. Thanks in advance!
In: Physics
The Tasty Sub Shop Case: A business entrepreneur uses simple linear regression analysis to predict the yearly revenue for a potential restaurant site on the basis of the number of residents living near the site. The entrepreneur then uses the prediction to assess the profitability of the potential restaurant site. And The QHIC Case: The marketing department at Quality Home Improvement Center (QHIC) uses simple linear regression analysis to predict home upkeep expenditure on the basis of home value. Predictions of home upkeep expenditures are used to help determine which homes should be sent advertising brochures promoting QHIC’s products and services.
Discuss the difference in the type of prediction in both cases and provide rational of the reasons that these predictions were used.
Be sure to respond to the following:
a) What are the dependent and independent values for each case?
b) What are the r values related to the regression. What do these values tell you?
c) Do the independent measures chosen have face validity?
In: Math
1. Which of the following would cause the supply of steel to
decrease?
a) a decrease in price per unit of steel
b) a decrease in the wage rate of steel workers
c) an increase in the number of steel producers
d) a decrease in the expected future price of steel by
sellers
e) none of the above is correct
Use the following supply and demand schedule for Questions 2-3:
P
========================
$10
50 46
15
49 47
20
48 48
25
47 49
30
46 50
35
45 51
40
44 52
2. What is the equilibrium price of this product?
a) $10
b) $20
c) $30
d) $40
e) none of the above is correct
3. Suppose the government imposes a price ceiling of $10 per unit. Accordingly,
a) there would be a surplus of 4 units.
b) 46 units of this good would be purchased.
c) 50 units of this good would be purchased.
d) both a) and c) are correct
e) none of the above is correct
4. Assume that carrots are a normal good. If consumer income declines at the same time that production costs for carrots decrease, then the equilibrium price will _____ and the equilibrium quantity will _____.
a) increase; be indeterminate
b) be indeterminate; decrease
c) increase; increase
d) decrease; decrease
e) decrease; be indeterminate
5. Assume the same situation as in Question 4. This time, however, economists anticipate that the demand effect will be smaller than the supply effect. Accordingly, the equilibrium price of carrots will _____ and the equilibrium quantity will _____.
a) decrease; increase
b) be indeterminate; decrease
c) increase; decrease
d) decrease; decrease
e) decrease; be indeterminate
In: Economics