Bronner’s Christmas Store is one of the largest in America. Bronner’s currently has one store located in Frankenmuth, Michigan. Bronner’s has decided to open up a second store in Heidelberg, Germany. Reflecting on each chapter in our textbook, respond to each of the following questions as though you were hired to be a consultant to Bronner’s.
What will be your staffing policy in Germany?
In: Operations Management
Write an efficient java program to implement an integer doubly linked list Dequeue which insertion and deletion can be than at either end. You have to write 6 methods: add front, delete front, add rear, delete rear, print forward (left to right) and print backward (right to left). After each addition or deletion dequeue elements are printed forward or backward respectively.
Your main method should be as follow:
public static void main(String args[]) {
xxxxx dq = new xxxxx (); // xxxxx is the first 5 characters of your last name
try{
Scanner inf = new Scanner (System.in);
// Read input from KB/ File
while(inf.hasNext()){
// read operation type (optype):
//1:add front, 2:delete front, 3:add rear and delete rear
optype = inf.nextInt();
switch (optype){
case 1: x = inf.nextInt(); // read x
dq.addfront(x);
dq.printfwd(); // print forward dequeuer elements
break;
case 2: j = dq.delfront();// delete front
if(j……….
dq.printbwd(); // print backward dequeuer elements
break;
case 3: x = inf.nextInt(); // read x
dq.addrear(x);
dq.printfwd(); // print forward dequeuer elements
break;
default: j = dq.delrear();// delete front
if(j……….
dq.printbwd(); // print backward dequeuer elements
}//end switch
}// end while
inf.close();// close input file
}catch (Exception e) {prt("\nException " + e + "\n");}
}// end main method
NOTE: Projects will not be graded if:
Your complete project is not in a SINGLE xxxxx.java file, where xxxxx is the first 5 characters of your last name.
It does not read input from System.in. i.e. command prompt.
Sample data file can be as follow:
1 100 2 2 3 500 3 600 3 250 4 1 150 1 220 2 4 1 50 3 55 1 20 1 80 3 90
In: Computer Science
In: Computer Science
Write a code in C or C++ programming language that generates the hexadecimal values in Table 6-2 in the same format.
Table 6-2 Hexadecimal text file specifying the contents of a 4 × 4 multiplier ROM.
00: | 00 | 00 | 00 | 00 | 00 | 00 | 00 | 00 | 00 | 00 | 00 | 00 | 00 | 00 | 00 | 00 |
10: | 00 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 0A | 0B | 0C | 0D | 0E | 0F |
20: | 00 | 02 | 04 | 06 | 08 | 0A | 0C | 0E | 10 | 12 | 14 | 16 | 18 | 1A | 1C | 1E |
30: | 00 | 03 | 06 | 09 | 0C | 0F | 12 | 15 | 18 | 1B | 1E | 21 | 24 | 27 | 2A | 2D |
40: | 00 | 04 | 08 | 0C | 10 | 14 | 18 | 1C | 20 | 24 | 28 | 2C | 30 | 34 | 38 | 3C |
50: | 00 | 05 | 0A | 0F | 14 | 19 | 1E | 23 | 28 | 2D | 32 | 37 | 3C | 41 | 46 | 4B |
60: | 00 | 06 | 0C | 12 | 18 | 1E | 24 | 2A | 30 | 36 | 3C | 42 | 48 | 4E | 54 | 5A |
70: | 00 | 07 | 0E | 15 | 1C | 23 | 2A | 31 | 38 | 3F | 46 | 4D | 54 | 5B | 62 | 69 |
80: | 00 | 08 | 10 | 18 | 20 | 28 | 30 | 38 | 40 | 48 | 50 | 58 | 60 | 68 | 70 | 78 |
90: | 00 | 09 | 12 | 1B | 24 | 2D | 36 | 3F | 48 | 51 | 5A | 63 | 6C | 75 | 7E | 87 |
A0: | 00 | 0A | 14 | 1E | 28 | 32 | 3C | 46 | 50 | 5A | 64 | 6E | 78 | 82 | 8C | 96 |
B0: | 00 | 0B | 16 | 21 | 2C | 37 | 42 | 4D | 58 | 63 | 6E | 79 | 84 | 8F | 9A | A5 |
C0: | 00 | 0C | 18 | 24 | 30 | 3C | 48 | 54 | 60 | 6C | 78 | 84 | 90 | 9C | A8 | B4 |
D0: | 00 | 0D | 1A | 27 | 34 | 41 | 4E | 5B | 68 | 75 | 82 | 8F | 9C | A9 | B6 | C3 |
E0: | 00 | 0E | 1C | 2A | 38 | 46 | 54 | 62 | 70 | 7E | 8C | 9A | A8 | B6 | C4 | D2 |
F0: | 00 | 0F | 1E | 2D | 3C | 4B | 5A | 69 | 78 | 87 | 96 | A5 | B4 | C3 | D2 | E1 |
In: Computer Science
1. Assume the hula hoop is a brand new product. Describe it and how it works and Write a pitch letter to a TV producer, attempting to get the guest of your choosing on a major TV show, to demonstrate the hula hoop
In: Operations Management
For this portion of the lab, you will reuse the program you
wrote before.
That means you will open the lab you wrote in the previous
assignment and change it. You should NOT start from scratch. Also,
all the requirements/prohibitions from the previous lab MUST also
be included /omitted from this lab.
Redesign the solution in the following manner:
1. Create a menu and ask the user which of the following
conversions they wish to perform:
a. Miles to kilometers
b. Gallons to liters
c. Pounds to kilograms
d. Inches to centimeters
e. Fahrenheit to Celsius
2. Your program must raise an exception if the user chooses any
item not on the menu presented. Along with raising an exception,
write the code to handle this exception.
3. Once the user has chosen a menu item the program should:
a. Ask the user for a value to convert. Refer to the input validations in Lab 4. Your program must raise and exception, and handle the exception, if an input errors occurs.
b. Perform the conversion and write the original value, the original unit, the converted value, and the converted unit to an output file named conversions.txt.
c. Repeat steps a and b 10 times (in a loop).
I have written this code before. I already have added step number 1: the menu. Please add in the code the other requirements: step 2, and step 3 a. b. and c. Thank you!
#Conversions.py
def MilesToKm(Miles):
Km = Miles * 1.6
print(f"Miles: {format(Miles,'.2f')}, kilometers:
{format(Km,'.2f')}")
def FahToCel(Fahrenheit):
Celsius = (Fahrenheit - 32) * 5 / 9
print(f"farehnheit: {format(Fahrenheit,'.2f')}, celsius:
{format(Celsius,'.2f')}")
def GalToLit(Gallons):
Liters = Gallons * 3.9
print(f"gallons: {format(Gallons,'.2f')}, liters:
{format(Liters,'.2f')}")
def PoundsToKg(Pounds):
Kg = Pounds * 3.45
print(f"pounds: {format(Pounds,'.2f')}, kilograms:
{format(Kg,'.2f')}")
def InchesToCm(Inches):
Cm = Inches * 2.54
print(f"inches: {format(Inches,'.2f')}, centimeters:
{format(Cm,'.2f')}")
#Main.py
#Import the package
from Conversions import *
#Create main function to give choice of conversion
def main():
#Intialize the string
string = '''
1: Convert miles to km
2: Convert fahrenheit to celsius
3: Convert gallons to liters
4: Convert pounds to kg
5: Convert inches to cm'''
#Initialize the tupels
metric_name =
('miles','fahrenheit','gallons','pounds','inches')
convert_name = ('km','celsius','liters','kg','cm')
#Print the string
print(string)
#Get the input
choice = int(input('Which of the given conversions would you like
to perform? Enter your choice from 1 to 5: '))
#Set count as "3"
count = 3
#Initialize the boolean variable
flag = True
#Execte the "while" loop
while(flag):
#Get the input
input_value = float(input("Enter how much {0} would you like to
convert into {1}: "
.format(metric_name[choice-1] , convert_name[choice-1])))
#Check for the negative inputs
if input_value < 0:
#Decrement count by "1"
count -= 1
#Print the invalid message
print('Invalid input! You have',count,'chance(s) to enter a valid
input')
#Otherwise
else:
#Check for the choice "1"
if choice == 1:
#Call the function
MilesToKm(input_value)
#Check for the choice "2"
if choice ==2:
#Check whether the input is greater than or equal to "1000"
if input_value >= 1000:
#Decrment the count "1"
count -= 1
#Print the message
print('Invalid input! You have',
count,'chance(s) to enter a valid input')
#Otherwise
else:
#Call the function
FahToCel(input_value)
#Check for the choice "3"
if choice == 3:
#Call the function
GalToLit(input_value)
#Check for the choice "4"
if choice == 4:
#Call the function
PoundsToKg(input_value)
#Check for the choice "5"
if choice == 5:
#Call the function
InchesToCm(input_value)
#Checck whether the count is "0"
if count == 0:
#Set boolean value as "False"
flag = False
#Call the function
main()
In: Computer Science
A mail-order house uses 15,725 boxes a year. Carrying costs are
49 cents per box a year, and ordering costs are $91. The following
price schedule applies.
Number of Boxes | Price per Box | ||
1,000 to 1,999 | $1.35 | ||
2,000 to 4,999 | 1.25 | ||
5,000 to 9,999 | 1.15 | ||
10,000 or more | 1.10 | ||
a. Determine the optimal order quantity. (Round
your answer to the nearest whole number.)
Optimal order quantity
boxes
b. Determine the number of orders per year.
(Round your answer to 2 decimal places.)
Number of order
per year
In: Operations Management
C++ program, include comments stating what each part of code does please. I want to be able to understand it so I'll be more knowledgeable in the future. The program is multiple files(fibonacci.h file, fibonacci.cpp file, main.cpp file and loops_simple_data_test.cpp). After the directions I also included any starter code or comments left by my professor within the files to aide us.
Directions:
In folder 04_loops_simple_data write prototype and definition for string value - return function get_fibonacci with an int parameter that returns the fibonacci sequence up to that number. Write the required unit test(s) in folder 04_loops_simple_data_test. Main program flow: Program runs until user opts out. For each loop prompt user for a number, use number as function argument, call get_fibonacci function and display the output.
fibonacci.h
/* | |
Write prototype for string value-return function get_fibonacci with an int | |
parameter that returns the fibonacci sequence up to that number. | |
*/ |
fibonacci.cpp
/* | |
Write prototype for string value - return function get_fibonacci with an int | |
parameter that returns the fibonacci sequence up to that number. | |
DO NOT USE A RECURSIVE FUNCTION | |
*/ |
main.cpp
//Write include statements | |
//Write using statements | |
/* | |
Program runs until user opts out. | |
For each loop prompt user for a number, use number as function argument, | |
call get_fibonacci function and display the output. | |
*/ | |
int main() | |
{ | |
return 0; | |
} |
loops_simple_data_test.cpp
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file | |
#include "catch.hpp" | |
//Write includes | |
/* | |
Write test case for get fibonacci function with values | |
10 result "0, 1, 1, 2, 3, 5, 8" | |
and | |
5 result "0, 1, 1, 2, 3, 5" | |
*/ |
In: Computer Science
Evaluate the performance of the Machine Learning-Deep learning model and discuss how the choice of input features affects the model performance.
In: Computer Science
Please use Python for both
Concatenate List Elements
Write a function called concat_list that accepts a list of strings as an argument and returns a string made up of all elements in the list concatenated together in order. For example, if the argument is ['one', 'two', 'three'], the return value would be 'onetwothree'.
Remove List Duplicates
Write a function called remove_duplicates that accepts a list and returns a list containing the same elements in the same order but with duplicates removed. For example, if the argument is [7, 4, 2, 7, 2, 2, 9, 4], the returned list would be [7, 4, 2, 9].
In: Computer Science
In his December 6, 2010 article in Datamation titled The Five E's of Cloud Computing Management in 2011, Jeffrey Kaplan states:
"The beauty of today's Cloud Computing solutions is that corporate executives and end-users can more easily critique their functional capabilities and user-friendliness before selecting one to address their needs. However, business decision-makers still need plenty of IT help looking "under the hood" at how these offerings are architected, delivered and supported to ensure they can integrate with existing systems and fulfill their promises. IT managers and CIOs should put selection criteria, procurement procedures and governance policies in place to oversee the evaluation and contracting processes." (Available here.)
When considering cloud computing, Kaplan says "corporate executives and end-users can more easily critique their functional capabilities and user-friendliness." What are the implications of this for planning IT acquisition projects? How much change do you see, if any, in solution selection criteria, procurement procedures, and governance approaches because of cloud computing, assuming the organization has established these earlier based on best practices?
In: Computer Science
General Instrumentation Company manufactures dashboard instruments for heavy construction equipment. The firm is based in Baltimore, but operates several divisions in the United States, Canada, and Europe. The Hudson Bay Division manufactures complex electrical panels that are used in a variety of the firm’s instruments. There are two basic types of panels. The high-density panel (HDP) is capable of many functions and is used in the most sophisticated instruments, such as tachometers and pressure gauges. The low-density panel (LDP) is much simpler and is used in less-complicated instruments. Although there are minor differences among the different high-density panels, the basic manufacturing process and production costs are the same. The high-density panels require considerably more skilled labor than the low-density panels, but the unskilled labor needs are about the same. Moreover, the direct materials in the high-density panel run substantially more than the cost of materials in the low-density panels. Production costs are summarized as follows:
LDP | HDP | |||||
Unskilled labor (0.80 hour @ $10) | $ | 8 | $ | 8 | ||
Skilled labor: | ||||||
LDP (0.25 hour @ $20) | 5 | |||||
HDP (1.00 hours @ $20) | 20 | |||||
Raw material | 6 | 9 | ||||
Purchased components | 7 | 13 | ||||
Variable overhead | 8 | 16 | ||||
Total variable cost | $ | 34 | $ | 66 | ||
The annual fixed overhead in the Hudson Bay Division is $140,000. There is a limited supply of skilled labor available in the area, and the division must constrain its production to 44,000 hours of skilled labor each year. This has been a troublesome problem for Jacqueline Ducharme, the division manager. Ducharme has successfully increased demand for the LDP line to the point where it is essentially unlimited. Each LDP sells for $42. Business also has increased in recent years for the HDP, and Ducharme estimates the division could now sell anywhere up to 7,000 units per year at a price of $126.
On the other side of the Atlantic, General Instrumentation operates its Volkmar Tachometer Division in Berlin. A recent acquisition of General Instrumentation, the division was formerly a German company known as Volkmar Construction Instruments. The division’s main product is a sophisticated tachometer used in heavy-duty cranes, bulldozers, and backhoes. The instrument, designated as a TCH–320, has the following production costs.
TCH–320 | |||
Unskilled labor (0.80 hour @ $12) | $ | 9.60 | |
Skilled labor (3 hours @ $18) | 54.00 | ||
Raw material | 12.40 | ||
Purchased components | 170.00 | ||
Variable overhead | 14.00 | ||
Total variable cost | $ | 260.00 | |
The cost of purchased components includes a $160 control pack currently imported from an Asian electronics Company. Fixed overhead in the Volkmar Tachometer Division runs about $840,000 per year. Both skilled and unskilled labor are in abundant supply. The TCH–320 sells for $300.
Bertram Mueller, the division manager of the Volkmar Tachometer Division, recently attended a high-level corporate meeting in Baltimore. In a conversation with Jacqueline Ducharme, it was apparent that Hudson Bay’s high-density panel might be a viable substitute for the control pack currently imported from Japan and used in Volkmar’s TCH–320. Upon returning to Berlin, Mueller asked his chief engineer to look into the matter. Hans Schmidt obtained several HDP units from Hudson Bay, and a minor R&D project was mounted to determine if the HDP could replace the Japanese control pack. Several weeks later, the following conversation occurred in Mueller’s office:
Schmidt: |
There’s no question that Hudson Bay’s HDP unit will work in our TCH–320. In fact, it could save us some money. |
Mueller: |
That’s good news. If we can buy our components within the company, we’ll help Baltimore’s bottom line without hurting ours. Also, it will look good to the brass at corporate if they see us working hard to integrate our division into General Instrumentation’s overall production program. |
Schmidt: |
I’ve also been worried about the reliability of supply of the control pack. I don’t like being dependent on such a critical supplier that way. |
Mueller: | I agree. Let’s look at your figures on the HDP replacement. |
Schmidt: |
I got together with the controller’s people, and we worked up some numbers. If we replace the imported control pack with the HDP from Canada, we’ll avoid the $160 control pack cost we’re now incurring. In addition, I figure we’ll save $6.00 on the basic raw materials. There is one catch, though. The HDP will require some adjustments in order to use it in the TCH–320. We can make the adjustments here in Berlin. I’m guessing it will require an additional three hours of skilled labor to make the necessary modifications. I don’t think variable overhead would be any different. Then there is the cost of transporting the HDPs to Berlin. Let’s figure on $5.00 per unit. |
Mueller: |
Sounds good. I’ll give Jacqueline Ducharme a call and talk this over. We can use up to 12,000 of the HDP units per year given the demand for the TCH–320. I wonder what kind of a transfer price Hudson Bay will want. |
Required:
2-a. Compute the unit contribution margin of an LDP and an HDP.
2-b. Compute the unit contribution margin of Volkmar's TCH-320 under each of its alternatives.
2-c. What is the unit contribution to cover company's fixed cost and profit per hour of skilled labor (scarce resource) for the following.
2-d. From the perspective of General Instrumentation’s top management, how many panels should be produced for each of the following purposes?
3. Assume that Hudson Bay agrees to transfer 12,000 HDP units per year to Volkmar using a transfer price equal to its current selling price of $126. If Volkmar is able to get Hudson Bay to agree to a lower transfer price, what effect will this have on General Instrumentation's income?
4. What is the minimum transfer price that the Hudson Bay Division would find acceptable for the HDP?
5. What is the maximum transfer price that the Volkmar Tachometer Division would find acceptable for the HDP?
6. From the perspective of the corporate controller for General Instrumentation, what transfer price range would you recommend the two divisions negotiate within for the HDP units?
In: Finance
How do we create value for our investors for a meals on wheels business?
In: Operations Management
Consider the following relation R(A, B, C, D, E, G) and the set
of functional dependencies F={ A → BCD,
BC → DE, B→D, D → A}
Note: Show the steps for each answer.
(a) Compute B+ .
(b) Prove (using Armstrong’s axioms) that AG is superkey.
(c) Compute Fc.
(d) Give a 3NF decomposition of the given schema based on a canonical cover.
(e) Give a BCNF decomposition of the given schema based on F. Use the first functional dependency as the violator of the BCNF condition.
In: Computer Science
In a study of high-achieving high school graduates, the authors
of a report surveyed 834 high school graduates who were considered
"academic superstars" and 436 graduates who were considered "solid
performers." One question on the survey asked the distance from
their home to the college they attended.
Assuming it is reasonable to regard these two samples as random
samples of academic superstars and solid performers nationwide, use
the accompanying data to determine if it is reasonable to conclude
that the distribution of responses over the distance from home
categories is not the same for academic superstars and solid
performers. Use
α = 0.05.
Distance of College from Home (in miles) | |||||
---|---|---|---|---|---|
Student Group | Less than 40 |
40 to 99 |
100 to 199 |
200 to 399 |
400 or More |
Academic Superstars | 158 | 157 | 143 | 150 | 226 |
Solid Performers | 105 | 94 | 83 | 65 | 89 |
State the null and alternative hypotheses.
H0: Student group and distance of college
from home are independent.
Ha: Student group and distance of
college from home are not independent. H0:
Student group and distance of college from home are not
independent.
Ha: Student group and distance of
college from home are independent.
H0: The proportions falling into the distance
categories are not all the same for the two student groups.
Ha: The proportions falling into the
distance categories are the same for the two student groups.
H0: The proportions falling into the distance
categories are the same for the two student groups.
Ha: The proportions falling into the
distance categories are not all the same for the two student
groups.
Calculate the test statistic. (Round your answer to two decimal
places.)
χ2 =
What is the P-value for the test? (Round your answer to
four decimal places.)
P-value =
What can you conclude?
Do not reject H0. There is not enough evidence to conclude that the proportions falling into the distance categories are not all the same for the two student groups. Reject H0. There is convincing evidence to conclude that the proportions falling into the distance categories are not all the same for the two student groups. Reject H0. There is convincing evidence to conclude that there is an association between student group and distance of college from home. Do not reject H0. There is not enough evidence to conclude that there is an association between student group and distance of college from home.
In: Math