Write a menu driven C++ program that prints the day number of the year , given the date in the form of month-day-year. For example , if the input is 1-1-2006 , then the day number is 1. If the input is 12-25- 2006 , the day number is 359. The program should check for a leap year. A year is leap if it is divisible by 4 but not divisible by 100. For example , 1992 , and 2008 are divisible by 4 and not divisible by 400. A year that is divisible by 100 is a leap year if it is also divisible by 400. For example , 1600 and 2000 are divisible by 400 , however , 1800 is not a leap year because 1800 is not divisible by 400. Program terminates when the user type in n or N. Fall 2020 – Introduction to C++ Programming Fall 2020 - Husain Gholoom – Senior Lecturer in Computer Science Page 2 Note : Your program must contain the following 6 functions : 1. A function that returns a Boolean value indicating whether or not the day entered is between 1 and 31. 2. A function that returns a Boolean value indicating whether or not the month entered is between 1 and 12. 3. A function that returns a Boolean value indicating whether or not the year entered is greater than 0 and less than or equal to current year. 4. A function that returns a Boolean value indicating whether or not the year entered is a leap year. 5. A function that returns a string value indicating the name of the month. 6. A function that returns a integer value indicating actual number of day that is equivalent to day, month, and year that is entered.
Rules : 1. Your program must compile and run using Code:Blocks version 17.12 under windows. 2. Your program must be documented according the style above . See the website for the sample programming style program. 3. You must use the appropriate libraries in writing this program. 4. You can not use any concept that was not discussed in the class such as arrays , global variables … etc . 5. Must use functions ( prototypes and definitions ) , repetitions , control structures and switch statements. 6. Must properly format the output by use the appropriate library. See the output below. Note that in the following 3 lines : Day Manipulation program by Husain Gholoom 11 / 02 / 2020 • Replace my first / last name with your own first / last name.
In: Computer Science
Critical Thinking
The global marketplace has witnessed an increased pressure from customers and competitors in manufacturing as well as service sector (Basu, 2001; George, 2002). Due to the rapidly changing global marketplace only those companies will be able to survive that will deliver products of good quality at cheaper rate and to achieve their goal companies try to improve performance by focusing on cost cutting, increasing productivity levels, quality and guaranteeing deliveries in order to satisfy customers (Raouf, 1994).
Increased global competition leads the industry to increasing efficiency by means of economies of scale and internal specialization so as to meet market conditions in terms of flexibility, delivery performance and quality (Yamashina, 1995). The changes in the present competitive business environment are characterized by profound competition on the supply side and keen indecisive in customer requirements on the demand side. These changes have left their distinctive marks on the different aspect of the manufacturing organizations (Gomes et al., 2006). With this increasing global economy, cost effective manufacturing has become a requirement to remain competitive.
To meet all the challenges organizations try to introduce different manufacturing and supply techniques. Management of organizations devotes its efforts to reduce the manufacturing costs and to improve the quality of product. To achieve this goal, different manufacturing and supply techniques have been employed. The last quarter of the 20th century witnessed the adoption of world-class, lean and integrated manufacturing strategies that have drastically changed the way manufacturing firm’s leads to improvement of manufacturing performance (Fullerton and McWatters, 2002).
The Answer should be within 1- 2 pages. for each question
The Answer must follow the outline points below:
In: Operations Management
Dell
In January 2006, Dell, the world’s largest computer maker,
announced plans to setup its fourth call center in India. The
company already employs over 10,000 people in its Indian call
centers, which provided a telephone help desk service to its many
thousands of customers around the world. Like many other Western
companies, Dell was attracted to India by the abundance of low-cost
English-speaking workers, many of whom are well qualified and highly
IT literate. Locating call centers in India sounds like a good deal
all round. Customers get access 24 hours a day, 7 days a week
wherever they are in the world, companies are able to reduce costs,
and workers in a developing country get jobs.
However, not everyone is happy. Niels Kjellerup, Publisher and
Editor of The Call Centre Managers Forum, an online chat room for
call center managers, argues that the rush to outsource customer
contact operations to cheaper locations has resulted in the worst
of management practices in US and UK call centers being exported as
‘World Class Call Centre Practice’ in countries like India. He says
that too often what is seen in India is bad customer service
delivered cheaply. He claims that many Indian call centers are run
as sweatshops with intelligent people being treated like cattle.
Call center managers with little or no previous experience adopt
‘idiotic vendor measures’ such as ‘how many calls’ and ‘how short’,
which simply result in the delivery of poor levels of customer
service.
Agents are required to work nine and a half hours a day, but
typically work anywhere from 12 to 16 hours. Processing 28 calls an
hour is mandatory. Another target is to ensure that no customer
calls back within seven days. The informant claimed that there are
few, if any allowances for time off, even for doctor visits, sick
days or handling family emergencies.
In: Operations Management
A set of numbers such as those below is meaningless without some background information. The INDIVIDUALS here are Newcomb's 66 repetitions of his experiment. We need to know exactly WHAT VARIABLE he measured, and in WHAT UNITS. Newcomb measured the time in seconds that a light signal took to pass from his laboratory on the Potomac River to mirror at the base the Washington Monument an back, a total distance of about 7400 meters. Just as you can compute the speed of a car from the time required to drive a mile, Newcomb could compute the speed of light from the passage of time. Newcomb's first measurement of the passage of time of light was 0.000024828 second or 24828 nanoseconds. The entries above record only the deviation from 24800, so the first entry, 28, is short for 24828 nanoseconds. Negative entries are numbers less than 24800.
|
28 |
22 | 36 | 26 | 28 |
28 |
| 26 | 24 | 32 | 30 | 27 |
24 |
| 33 | 21 | 36 | 32 | 31 |
25 |
| 24 | 25 | 28 | 36 | 27 |
32 |
| 34 | 30 | 25 | 26 |
26 |
25 |
|
-44 |
23 | 21 | 30 | 33 | 29 |
|
27 |
29 | 28 | 22 | 26 | 27 |
|
16 |
31 | 29 | 36 | 32 | 28 |
|
40 |
19 | 37 | 23 | 32 | 29 |
|
-2 |
24 | 25 | 27 | 24 | 16 |
|
29 |
20 | 28 | 27 | 39 | 23 |
Use the data set above to make a histogram and analyze it, using key terms
Present a 5 number summary and a modified box plot and are there any outliers?
Report the mean and standard deviation (do not discard outliers), the mean was important in this experiment. Calculate the 95% confidence interval for the true mean. Explain what this means.
Compare these (5 number summary and mean/standard deviation). Are the mean and standard deviation valid for this set of data? Justify your answer.
Some of the above (and what follows below) makes no sense if the data is not approximately normal. Explain what this means. Is this data close to normal distributed? Justify your answer. Regardless of your conclusion, for the next part assume the data is approximately normal.
The data listed in the order it was recorded (down first, then across).
Do a time plot. Analyze this plot, paying close attention to new information gained beyond what we did above.
Cut the data in half (first three columns vs. last three columns) and do a back to back stem plot. Analyze this. Does this further amplify what the time plot showed?
Calculate the mean of the second half of the data.
Using the mean and standard deviation of the whole data set (found above) as the population mean and standard deviation, test the significance that the mean of the second half is different than the mean of the total using α=.05 .
Make sure to clearly identify the null and alternative hypothesis.
Explain what this test is attempting to show.
Report the p-value for the test and explain what that means.
Accept or reject the null hypothesis, and justify your answer (based on the p-value).
In: Statistics and Probability
1. Use the given sample data to find the P-value for the
hypothesis test. Round your answer to four decimal
places.
x 1 = 38, n 1 = 100, x 2 = 40, n
2 = 100; H 0: p 1 = p
2, H 1: p 1 ≠ p 2 , α =
0.05
2. A random sampling of 60 pitchers from the National League and 74 pitchers from the American League showed that 38 National and 36 American League pitchers had E.R.A's below 3.5.
Find the test statistic that would be used to test the claim that the proportion of the NL pitchers with E.R.A. below 3.5 is higher than the proportion of the AL pitchers with similar stats.
Round your answer to three decimal places.
3. Two independent samples are
randomly selected and come from populations that are normal. The
sample statistics are given below:
n1 = 47
n2 = 52
1 = 24.2
2 = 18.7
s1 =
5.0
s2 = 5.6
Find the standardized test statistic t to test the
hypothesis that μ1 =
μ2. Round your answer to three
decimal places.
In: Statistics and Probability
George, their family friend has informed the couple(Jacinda and Steven) during a family dinner that “although in Australia the individuals invest directly in the stock market, in recent years 31% of the adult population directly invest by holding shares, down from 44% in 2004”. Their question to you is:
If direct share market participation is a good or bad strategy for an investor? Discuss one reason why investors should or should not invest directly in the Australian shares.
In: Finance
1) For the following data on Year-end Audit times (in days), 17, 20, 25, 27, 19, 19, 20, 32, 26, 23, 24, 23, 27, 38, 21, 23, 22, 28, 33, 18, 27, 20, 23, 27, 31 Prepare a table showing in columns Audit Time Intervals (days), Frequencies, Cumulative Frequencies, Relative Frequencies, Cumulative Relative Frequencies, Percent Frequencies, and Cumulative Percent Frequencies.
In: Math
| Using data set E, answer the questions given below. |
|
DATA SET E Microprocessor Speed (MHz) and |
|||||
| Chip | Speed (MHz) | Power (watts) | |||
| 1989 Intel 80486 | 20 | 3 | |||
| 1993 Pentium | 100 | 10 | |||
| 1997 Pentium II | 233 | 35 | |||
| 1998 Intel Celeron | 300 | 20 | |||
| 1999 Pentium III | 600 | 42 | |||
| 1999 AMD Athlon | 600 | 50 | |||
| 2000 Pentium 4 | 1300 | 51 | |||
| 2004 Celeron D | 2100 | 73 | |||
| 2004 Pentium 4 | 3800 | 115 | |||
| 2005 Pentium D | 3200 | 130 | |||
| 2007 AMD Phenom | 2300 | 95 | |||
| 2008 Intel Core 2 | 3200 | 136 | |||
| 2009 Intel Core i7 | 2900 | 95 | |||
| 2009 AMD Phenom II | 3200 | 125 | |||
|
Click here for the Excel Data File |
|
Choose the dependent variable (the response variable to be "explained") and the independent variable (the predictor or explanatory variable). |
| Dependent Variable | ||||
|
| Independent Variable | ||||
|
|
Obtain the regression equation. (Round your answers to 3 decimal places.) |
| Y = X + |
| Calculate R2adj. (Round your answer to 3 decimal places.) |
| R2adj |
In: Statistics and Probability
On January 1, 2004,
Bentham Company sells office furniture for $60,000 cash. The office
furniture orginally cost $150,000 when purchased on January 1,
1997. Depreciation is recorded by the straight-line method over 10
years with a salvage value of $15,000. What gain or loss on sale
should be recorded on this asset in 2004?
|
$34,500 loss. |
|
|
$75,000 loss. |
|
|
$4,500 gain. |
|
|
$19,500 gain. |
Bruno Company purchased equipment on January 1, 2009 at a total invoice cost of $280,000; additional costs of $5,000 for freight and $25,000 for installation were incurred. The equipment has an estimated salvage value of $10,000 and an estimated useful life of five years. The amount of accumulated depreciation at December 31, 2010 if the straight-line method of depreciation is used is:
|
$108,000. |
|
|
$110,000. |
|
|
$120,000. |
|
|
$124,000. |
Equipment with an invoice cost of $20,000 was placed in service on January 3, 2009. Installation costs of $8,000 were added to Repairs Expense. These cost should have been added to the Equipment account. Depreciation for 2009 was computed using the straight-line method, and an estimated useful life of five years, with no salvage value expected. The net income reported for 2009 was:
|
Understated $8,000. |
|
|
Understated $6,400. |
|
|
Overstated $1,600. |
|
|
Overstated $6,400. |
In: Accounting
Calculate the covariance between variables X and Y. Is it a positive or negative relationship between the two variables?
b. Calculate correlation coefficient between X and Y. Is it a positive or negative relationship? Is it a strong linear, weak linear or nonlinear relationship between X and Y?
c. Use the Y data to calculate mean, range, standard deviation and variance.
d. Use the first Y value to calculate the Z-score. Is it an outlier?
e. Calculate the 60th percentile for the Y data.
| 1 | -22 | 22 |
| 2 | -33 | 49 |
| 3 | 2 | 8 |
| 4 | 29 | -16 |
| 5 | -13 | 10 |
| 6 | 21 | -28 |
| 7 | -13 | 27 |
| 8 | -23 | 35 |
| 9 | 14 | -5 |
| 10 | 3 | -3 |
| 11 | -37 | 48 |
| 12 | 34 | -29 |
| 13 | 9 | -18 |
| 14 | -33 | 31 |
| 15 | 20 | -16 |
| 16 | -3 | 14 |
| 17 | -15 | 18 |
| 18 | 12 | 17 |
| 19 | -20 | -11 |
| 20 | -7 | -22 |
In: Statistics and Probability