After graduating from college, Melissa Malone landed a position with Orchard Creek, one of the finest children’s boutiques in the Boston area. Three years ago, Melissa was promoted to Assistant Buyer. Among her other responsibilities, Melissa is now the sole buyer for the Children’s Accessories Department.
Orchard Creek has successfully been selling children’s clothing over 25years. Its merchandising assortment includes classic children’s clothing, fashionable accessories, and unique gift items for infants, toddlers, boys, and girls. Employee takes great pride in this store. The boutique, well known for its merchandise quality and exceptional customer service, has received many awards, including the “Readers’ Choice Award” and “Top Pick” for Best Children’s Clothing from local newspapers as well as regional magazine.
This fall, however, the Children’s Accessory Department is failing short of meeting its sales goal. During an October meeting with the department sales manager, the merchandise manager, and the advertising manager, Melissa was directed to examine her department’s performance. Within two days, Melissa must analyze the performance of the Children’s Accessories Department, compare it with the department’s six moth plan, calculate the department’s open-to-buy for the remainder of October, and identify feasible options for getting the department back on track.
Melissa reviewed her six-month plan for Orchard Creek’s Children’s Accessory Department, including the actual performance for August and September. She also observed the department’s current performance from October 1 through October 15. In her midmonth analysis, Melissa observed the following:
When Melissa checked the department Six Month Plan, planned purchase in October was 10,439 at retail and $4, 019 at cost. However, as of October 15, the OTB in her department is very low. What immediate steps should Melissa take to improve her open-to-buy? May have to find OTB at Retail and OTB at Cost.
In: Economics
After graduating from college, Melissa Malone landed a position with Orchard Creek, one of the finest children’s boutiques in the Boston area. Three years ago, Melissa was promoted to Assistant Buyer. Among her other responsibilities, Melissa is now the sole buyer for the Children’s Accessories Department.
Orchard Creek has successfully been selling children’s clothing over 25years. Its merchandising assortment includes classic children’s clothing, fashionable accessories, and unique gift items for infants, toddlers, boys, and girls. Employee takes great pride in this store. The boutique, well known for its merchandise quality and exceptional customer service, has received many awards, including the “Readers’ Choice Award” and “Top Pick” for Best Children’s Clothing from local newspapers as well as regional magazine.
This fall, however, the Children’s Accessory Department is failing short of meeting its sales goal. During an October meeting with the department sales manager, the merchandise manager, and the advertising manager, Melissa was directed to examine her department’s performance. Within two days, Melissa must analyze the performance of the Children’s Accessories Department, compare it with the department’s six moth plan, calculate the department’s open-to-buy for the remainder of October, and identify feasible options for getting the department back on track.
Melissa reviewed her six-month plan for Orchard Creek’s Children’s Accessory Department, including the actual performance for August and September. She also observed the department’s current performance from October 1 through October 15. In her midmonth analysis, Melissa observed the following:
When Melissa checked the department Six Month Plan, planned purchase in October was 10,439 at retail and $4, 019 at cost. However, as of October 15, the OTB in her department is very low. What immediate steps should Melissa take to improve her open-to-buy? May have to find OTB at Retail and OTB at Cost.
In: Economics
Parse the dirent struct to see if an entry is a directory or a file. If it is a directory, prepend "./" to the filename before printing it out. Include a main that does this below.
Please do the above code using C language.
In: Computer Science
To implement a recursive algorithm to calculates the total directory size (in bytes) of the portion of the file system rooted at the given path.
Program will rely on the following methods of the class:
In: Computer Science
Discussion
Based on the 2018 State of the Union Address, select an option below as a discussion prompt:
1) Select 2 points from the address that you agree with and discuss how they are vital to the success of America.
or
2) Select 2 points from the address that you disagree with and create alternative strategies that will benefit the American people.
Trump, D. (2018). President Donald J. Trump’s State of the Union Address. Retrieved from https://www.whitehouse.gov/briefings-statements/president-donald-j-trumps-state-union-address/
In: Economics
Listen to Copland's Appalachian Spring. In one paragraph or more, discuss at least three elements that you hear in the piece that reflect the character of America (think melodies, rhythms, etc). As well as answering these questions in your discussion. Do you feel like he captures the American spirit in this piece? How do you think he does it, considering the fact that he does not use lyrics to express these images? Please give some specific examples (using minute and seconds) when referring to specific passages in the piece.
In: Psychology
Write a bash script file that tests each file entry in the
current directory. It should determine if it is a file or
directory. If it is a file, it will determine if it is readable or
not. If it is readable, it will display only the first 4 lines to
the terminal in sorted order (just sort the first 4 lines).
If it is a directory, it should display the contents of that
directory (the files and subdirectories).
NOTE: Please don’t use the read command or arguments with your
script. Note that you don’t need to use either one of these methods
to get a list of files in the current directory.
=====================================
Example Output
Note that the output
from running the script starts at
the sixth line
=====================================
$ ls -l
total 32
drwxrwxr-x 3 cocofan cocofan 4096 Jan 20 17:58 adir
--w-rw-rw- 1 cocofan cocofan 128 Mar 15 22:43 lines.dat
-rw-rw-rw- 1 cocofan cocofan 48 Sep 5 2016 months.txt
$ bash assg5.sh
ENTRY IS adir
**This is a directory**
afileinadir.txt subdirofadir
ENTRY IS lines.dat
**This is a file**
...file is not readable.
ENTRY IS months.txt
**This is a file**
...and it's readable.
...it's first four lines in sorted order are:
Apr
Feb
Jan
Mar
$
++++++++++++++++++++++++++++++++++++
In: Computer Science
For the second phase of your final project, you will provide the functionality to your command interpreter. In this phase, you will add the functionality for command recognition and implement the HELP, QUIT, COPY, LIST, CD, SHOW and RUN functions.
Recall that some commands have no arguments, some have one and some have two and so your interface must handle a variable number of parameters.
Your command interpreter should do the following.
Display a prompt for the user.
If the entered command is invalid or if the number of parameters to that command is incorrect your program will print the error message and then redisplay the prompt.
If the command is valid, your program will carry out the command.
Here are specifics for each of the commands.
HELP
List the valid commands and their proper syntax. E.g.
You rang? > HELP
The valid commands are:
RUN executable-file
LIST
LIST directory
COPY old-filename new-filename
HELP
QUIT
SHOW file
Simply prints the given file to standard output.
QUIT
Terminates the session. E.g.
You rang? > QUIT
Goodbye.
COPY old-filename new-filename
Creates a copy of the source file.
When you implement the COPY command, you should verify that the source file exists and is readable. If the destination file exists you should ask the user if they wish to overwrite it before opening it to write. Once both files have been successfully opened simple read the characters on at a time from the source file and write them to the destination file.
CD directory
Changes the working directory to the argument if it is a valid directory name.
Your shell should display a message indicating the new directory upon successful execution o the command. You will need to use the chdir and getcwd commands as illustrated in the sample program chDir.cpp
LIST
Displays the files in a directory
Your LIST command takes either no arguments or one argument. The contents of the directory specified by the argument should be listed or in the case of no argument, the contents of the current directory should be listed. The syntax is:
LIST
or
LIST directory
The algorithm for LIST is reasonable simple.
Open the directory
Read the first entry in the directory
While not all of the directory has been displayed
Display the entry just read
Read the next entry
Close the directory
Working with directories is a relatively low-level operation. To access the contents of a directory we need to use a collection of system calls declared in the <dirent.h> header file.
opendir( dname ) is passed a c-string dname and returns a pointer to the directory dname (type DIR*) if it is found and NULL otherwise.
readdir( dPointer ) is passed a DIR* and returns a pointer to the next entry in the directory linked to dPointer or NULL if there are no more entries.
closedir( dPointer ) closes the link to the directory
The directory entries are of type dirent, a structure that contains the member d_name, which contains the name of the current entry.
Refer to chapter 17 of your UNIX text for more on programming with directories.
RUN executable-file
Executes the given program.
Your RUN command takes one argument. The executable file specified by the argument should be run and when finished, the prompt displayed. The syntax is:
RUN executable-file
The algorithm for RUN would be as follows.
Fork a child process.
Execute the program in the child process.
Have the parent wait until the child is finished before continuing.
This will require the following library functions
fork( ) creates a child process and returns the PID of the child process to the parent. The child gets 0.
execl( list of cstrings ) executes a program in the current process — the first argument is the path to the executable file, the remaining arguments are the strings of the command line
wait( ) causes the parent to block until the child finishes
Refer to chapter 18 of your UNIX text for more extensive discussion of these concepts.
As always, your program should:
Be readable with appropriate documentation and formatting
In: Computer Science
Tiffany City Lighting (TCL)
Located in Philadelphia, PA, Tiffany City Lighting (TCL), which designs, builds custom lamp shapes, and lamp globes, historically derived all of its sales from customers in the United States and Canada. Recently, an architectural firm that often contracted with TCL was commissioned to design several large public buildings in India. These buildings would require TCL to supply 8,100 identical lights, and the relevant terms of sale would include delivery to the Port of Mumbai where the architectural firm would take possession.
TCL designed a prototype cylindrical lampshade that measured 11 inches high and 11 inches in diameter and would be packed into cartons that measured 12 inches by 12 inches by 12 inches. (We refer to these shades as Style A.) The Style A lamp shades would cost $4 each to manufacture and weighed nine pounds each; each carton cost 60 cents and weighed one pound, meaning that each loaded Style A carton weighed 10 pounds.
In an effort to reduce packaging costs and also enhance the
company’s commitment to environmental logistics, TCL also developed
two prototype lamp shades (referred to as Style B and Style C) in
the shape of a cone, rather than a cylinder. One advantage to
conical shades is that they can be nested, that is, stacked inside
each other, meaning that, unlike Style A, multiple lamp shades
could be packed into a single carton. Moreover, the nested shades
would also help protect each other, although a slight bit of
padding would be needed between the nested shades. The production
costs for the conical lampshades would be higher than those for the
cylindrical shades.
TCL determined that each Style B lamp shade would cost $4.50 to
manufacture and could be shipped nested, with six lamp shades per
carton. The carton dimensions were 12 inches by 12 inches by 40
inches, and when holding six shades, a carton weighed 62 pounds.
Each Style B carton cost $2.00, and this included padding between
the shades. Each Style C lamp shade would cost $5 to make and could
be shipped nested, with 10 lamp shades per carton. The carton
dimensions were 12 inches by 12 inches by 48 inches, and when
holding 10 shades, a carton weighed 101 pounds. Each carton cost
$2.25, including padding between the individual shades.
The lamp shades would be loaded into intermodal containers and
transported by rail to the Port of Baltimore. The transportation
cost to Baltimore was $300 per 20-foot container, without regard to
weight, although the total shipment weight could not exceed 40,000
pounds per container because of highway weight restrictions. The
interior dimensions of the intermodal container were 8 feet wide by
8.5 feet high by 20 feet long. Insurance costs were 2 percent of
the value of the shipment ready to be loaded aboard ship in
Baltimore (i.e., all of the company’s costs up to this point). TCL
learned that the transportation cost from the Port of Baltimore to
the Port of Mumbai were $1000 for a 20-foot container.
Note: Please note that when cartons are loaded on
to a container, they cannot exceed the container weight capacity.
Please provide explanations clearly and carefully.
QUESTIONS
1. How many Style A shades can be loaded into a 20-foot
container? What is effective space used per container if Style A
shades are loaded? How many containers to do you need to satisfy
the contract? If there are multiple ways to load the cartons into a
container, you have to explore them, show the calculations, and
pick the best.
2. How many Style B shades can be loaded into a 20-foot container? What is effective space used per container if Style B shades are loaded? How many containers to do you need to satisfy the contract? If there are multiple ways to load the cartons into a container, you have to explore them, show the calculations, and pick the best.
3. How many Style C shades can be loaded into a 20-foot container? What is effective space used per container if Style C shades are loaded? How many containers to do you need to satisfy the contract? If there are multiple ways to load the cartons into a container, you have to explore them, show the calculations, and pick the best.
4. What are the total costs (which includes manufacturing,
packaging, drayage, insurance, freight transportation) of
delivering the Style A shades to the Port of Mumbai? Show the
calculations.
5. What are the total costs (which includes manufacturing, packaging, drayage, insurance, freight transportation) of delivering the Style B shades to the Port of Mumbai? Show the calculations.
6. What are the total costs (which includes manufacturing, packaging, drayage, insurance, freight transportation) of delivering the Style C shades to the Port of Mumbai? Show the calculations.
7. Which style would you recommend? Why?
In: Operations Management
Do not use this data if your class time is not 9:30AM Monday and Wednesday | ||||||||
Location | Sales (in thousands) | Advertising(in thousands) | Adv^2 | Years in Business | Adv * Years | Dwest | Dsouth | |
South | 340 | 8 | 4 | |||||
North | 651 | 42 | 6 | |||||
West | 459 | 35 | 2 | |||||
West | 1400 | 64 | 16 | |||||
North | 943 | 40 | 11 | |||||
South | 425 | 24 | 4 | |||||
West | 589 | 10 | 8 | |||||
South | 492 | 17 | 7 | |||||
North | 490 | 15 | 8 | |||||
South | 920 | 33 | 15 | |||||
North | 1040 | 45 | 14 | |||||
West | 403 | 30 | 3 | |||||
South | 594 | 27 | 8 | |||||
South | 599 | 30 | 10 | |||||
West | 293 | 12 | 4 | |||||
North | 855 | 40 | 12 | |||||
South | 343 | 19 | 6 | |||||
West | 891 | 45 | 12 | |||||
North | 395 | 20 | 3 | |||||
West | 862 | 40 | 12 | |||||
South | 350 | 12 | 5 | |||||
West | 871 | 48 | 11 | |||||
North | 405 | 22 | 2 | |||||
South | 193 | 8 | 3 | |||||
South | 185 | 10 | 2 | |||||
***To use the Data Analysis feature with Excel 2016, click the File tab on the top left; Excel Options; Add-ins; Manage Add-ins; and the Analysis Toolpak. | ||||||||
***With a MAC, only the last version of Excel has the Data Analysis button. Use the 'TOOLS' menu at the top, and then select Add-ins. | ||||||||
Assignment: We are trying to explain the variation in Sales from storefront to storefront using Advertising budgets, Years in Business, and store location. Adv^2 is a quadratic term for Advertising. Adv*Years is an interaction term. For store location, North will be the omitted category or null state, and DSouth and DWest are Dummy Variables for stores located in the South or West. | ||||||||
Complete the data for Adv^2, Adv*Years, South, and West. Regress Sales on Advertising, Adv^2, Years in Business, Adv*Years, South, and West. Place the Regression Output on it's own worksheet. | ||||||||
Type your name on the Regression Output. This signifies that you completed the assignment. The penalty for submitted a work not your own or allowing another to copy your work is a 0 for the course. | ||||||||
1. Type on the Regression output page which regressors are significant at the 5% level of significance and why. | ||||||||
2. Predict Sales for a store in the West with $30,000 in advertising expenditures and 5 years in business. | ||||||||
3. Rank the regions based on sales from highest to lowest, holding adv and years in business constant. HOW DO I PUT THIS IN EXCEL AND MAKE A REGRESSION? i tried usuing the data analysis button and it wont pull up my regression table and id ont know if its because i dont know what the Y and X are or if it is because there are blanks? |
In: Statistics and Probability