In C++
Complete the following code without the use of auto.
In: Computer Science
Provide a comparison and contrast between dialogue and discussion. Which can be used in strategic conversation? Use examples to demonstrate your understanding.
In: Operations Management
Flow chart and IPO chart ( no handwritten please )
#include <stdio.h>
#include <string.h>
#include <conio.h>
#include <ctype.h>
char vs[26][26];
void encrypt(char input[], char key[], char cipher[]) {
char inputWithoutSpaces[50], repeatedKeyWord[50], tempCipher[50];
int cnt = 0, i = 0, keyLen = strlen(key), len3 = strlen(input);
// loop to remove the spaces from input & store in other
char array inputWithoutSpaces
for (i = 0; i < len3; ++i) {
if (input[i] != ' ') {
inputWithoutSpaces[cnt++] = toupper(input[i]);
}
}
inputWithoutSpaces[cnt] = '\0';
int len1 = strlen(inputWithoutSpaces);
// loop to repeat the key until it becomes equal to the length
of input without spaces
i = 0;
while (i < len1) {
repeatedKeyWord[i] = toupper(key[i % keyLen]);
i++;
}
repeatedKeyWord[i] = '\0';
// form the temp cipher
for (i = 0; i < len1; ++i) {
tempCipher[i] = vs[inputWithoutSpaces[i] % 'A'][repeatedKeyWord[i]
% 'A'];
}
tempCipher[i] = '\0';
// modify the passed cipher by adding spaces in temp cipher
wherever needed
cnt = 0;
for (i = 0; i < len3; ++i) {
if (input[i] == ' ')
cipher[i] = ' ';
else
cipher[i] = tempCipher[cnt++];
}
cipher[i] = '\0';
}
void decrypt(char cipher[], char key[], char plaintext[]) {
printf("%s\n", key);
char cipherWithoutSpaces[50], repeatedKeyWord[50],
tempPlainText[50];
int cnt = 0, i = 0, keyLen = strlen(key), len3 = strlen(cipher);
// loop to remove the spaces from cipher & store in other
char array cipherWithoutSpaces
for (i = 0; i < len3; ++i) {
if (cipher[i] != ' ') {
cipherWithoutSpaces[cnt++] = toupper(cipher[i]);
}
}
cipherWithoutSpaces[cnt] = '\0';
int len1 = strlen(cipherWithoutSpaces);
// loop to repeat the key until it becomes equal to the length
of input without spaces
i = 0;
while (i < len1) {
repeatedKeyWord[i] = toupper(key[i % keyLen]);
i++;
}
repeatedKeyWord[i] = '\0';
// form the temp plaintext
cnt = 0;
for (i = 0; i < len1; ++i) {
for (int j = 0; j < 26; ++j) {
if (vs[repeatedKeyWord[i] % 'A'][j] ==
cipherWithoutSpaces[i])
tempPlainText[cnt++] = 'A' + j;
}
}
tempPlainText[cnt] = '\0';
// modify the passed plaintext by adding spaces in temp
plaintext wherever needed
cnt = 0;
for (i = 0; i < len3; ++i) {
if (cipher[i] == ' ')
plaintext[i] = ' ';
else
plaintext[i] = tempPlainText[cnt++];
}
plaintext[i] = '\0';
}
int main(void) {
char selection;
char plaintext[50], cipher[50], key[10];
// making the table
for (int i = 0; i < 26; ++i)
for (int j = 0; j < 26; ++j)
vs[i][j] = ('A' + ((i + j) % 26));
// taking first selection
fflush(stdin);
printf("Enter e for encryption, d for decryption, x for exit:
");
scanf("%c", &selection);
// run loop till user enters 'x'
while (selection != 'x') {
// condition for encryption
if (selection == 'e') {
// taking plaintext
fflush(stdin);
printf("Enter the plaintext: ");
scanf("%50[a-zA-Z ]", plaintext);
// taking key
fflush(stdin);
printf("Enter the key: ");
scanf("%50[a-zA-Z ]", key);
// encrypting and displaying cipher
encrypt(plaintext, key, cipher);
fflush(stdin);
printf("Cipher text: %s\n\n", cipher);
}
else {
// taking encrypted text
fflush(stdin);
printf("Enter the encrpted text: ");
scanf("%50[a-zA-Z ]", cipher);
// taking key
fflush(stdin);
printf("Enter the key: ");
scanf("%50[a-zA-Z ]", key);
// decrypting and displaying plain text
decrypt(cipher, key, plaintext);
fflush(stdin);
printf("Plain Text: %s\n\n", plaintext);
}
fflush(stdin);
printf("Enter e for encryption, d for decryption, x for exit:
");
scanf("%c", &selection);
}
return 0;
}
In: Computer Science
In the Digital Marketing era it is easier market entry for smaller, more nimble competitors to compete head-to-head with established brands. Agree ? Yes or no and why?
In: Operations Management
According to the National Association of Colleges and Employers, the 2015 mean starting salary for new college graduates in health sciences was $51,541. The mean 2015 starting salary for new college graduates in business was $53,901. † Assume that starting salaries are normally distributed and that the standard deviation for starting salaries for new college graduates in health sciences is $11,000. Assume that the standard deviation for starting salaries for new college graduates in business is $17,000.
(a) What is the probability that a new college graduate in business will earn a starting salary of at least $61,000? (Round your answer to four decimal places.)
(b) What is the probability that a new college graduate in health sciences will earn a starting salary of at least $61,000? (Round your answer to four decimal places.)
(c) What is the probability that a new college graduate in health sciences will earn a starting salary less than $42,000? (Round your answer to four decimal places.)
(d) How much would a new college graduate in business have to earn in dollars in order to have a starting salary higher than 99% of all starting salaries of new college graduates in the health sciences? (Round your answer to the nearest whole number.)
In: Math
Part A) When monochromatic UV light of wavelength 347 nm is sent through a diffraction grating, the first order maximum occurs at 17.9o. How many lines per cm are in the grating?
Part B) Through what voltage should an electron be accelerated from rest so that it would produce the same interference pattern as this light.
Please answer both parts and show work.
In: Physics
In: Operations Management
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 patients with SAD 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 | 5 | 8 | ||
4 | 4 | 6 | ||
7 | 7 | 9 | ||
5 | 9 | 5 | ||
6 | 7 | 8 | ||
Night | 5 | 6 | 9 | |
7 | 8 | 7 | ||
6 | 7 | 6 | ||
7 | 5 | 7 | ||
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 |
State the decision for the main effect of the time of day.
Retain the null hypothesis or Reject the null hypothesis.
State the decision for the main effect of intensity.
Retain the null hypothesis or Reject the null hypothesis.
State the decision for the interaction effect.
Retain the null hypothesis or Reject the null hypothesis.
(b) Compute Tukey's HSD to analyze the significant main effect.
The critical value is_________ for each pairwise comparison.
Summarize the results for this test using APA format.
In: Math
A proton moves from a location where V =75 V to a spot whereV = -20 V.
(a) What is the change in the proton's kinetic energy?
(b) If we replace a proton with an electron, what is the change in kinetic energy?
In: Physics
Goals:
Apple’s mission statement is, “to bring the best user experience to its customers through its innovative hardware, software, and services.” This broad range of offerings ties directly into a good business practice and public statements. Tim Cook’s bold claim that Apple’s investment in health will be its “greatest contribution to mankind” speaks to its mission statement, trying to better the user experience in as many offerings as it can.
Products/Services:
Apple products have a wide variety of use-cases and target markets. These products include the average consumer’s iPhone, the video editor’s iMAC, the layman’s Macbook, the audio enthusiast’s AirPods, the fitness nut’s Apple Watch, the routine show binger’s Apple TV, and the power user’s iHome. These are just the products and offerings that you can physically interact with, Apple also sells a collection of software, from operating systems to versatile applications. To introduce, maintain, and provide support for their consumers, Apple also has a chain of retail stores available to accomplish these goals.
Industry:
The industry that Apple is in is the Consumer Electronics/ Technological Sector. Apple is known for their smartphone manufacturing and computers. One of Apple’s largest selling products is their iPhones. Some of their competitors are companies such as: Google, Dell, Sony, Samsung, Nokia and HP. With Apple’s growing product diversity, they will also find more competitors in each market.
Look over Apples performance summary with lots of detail and fill in there financial performance/ performance summary.
2. 2 Performance Summary
Financial Performance:
Performance Summary:
In: Operations Management
The Cutting Department of Tangu Carpet Company provides the following data for December 2016. Assume that all materials are added at the beginning of the process.
Work in process, December 1, 14,600 units, 80% completed | $178,704* | |
*Direct materials (14,600 × $9.2) | $134,320 | |
Conversion (14,600 × 80% × $3.8) | 44,384 | |
$178,704 | ||
Materials added during December from Weaving Department, 224,800 units | $2,101,880 | |
Direct labor for December | 385,960 | |
Factory overhead for December | 471,728 | |
Goods finished during December (includes goods in process, December 1), 227,400 units | — | |
Work in process, December 31, 12,000 units, 35% completed | — |
a. Prepare a cost of production report for the Cutting Department. If an amount is zero or a blank, enter in "0". For the The rate used to allocate costs between completed and partially completed production.cost per equivalent unit computations, round your answers to two decimal places.
Tangu Carpet Company | |||
Cost of Production Report-Cutting Department | |||
For the Month Ended December 31, 2016 | |||
Unit Information | |||
Units charged to production: | |||
Inventory in process, December 1 | |||
Received from Weaving Department | |||
Total units accounted for by the Cutting Department | |||
Units to be assigned costs: | |||
Equivalent Units | |||
Whole Units | Direct Materials | Conversion | |
Inventory in process, December 1 | |||
Started and completed in December | |||
Transferred to finished goods in December | |||
Inventory in process, December 31 | |||
Total units to be assigned cost | |||
Cost Information | |||
Costs per equivalent unit: | |||
Direct Materials | Conversion | ||
Total costs for December in Cutting Department | $ | $ | |
Total equivalent units | |||
Cost per equivalent unit | $ | $ | |
Costs assigned to production: | |||
Direct Materials | Conversion | Total | |
Inventory in process, December 1 | $ | ||
Costs incurred in December | |||
Total costs accounted for by the Cutting Department | $ | ||
Costs allocated to completed and partially completed units: | |||
Inventory in process, December 1 balance | $ | ||
To complete inventory in process, December 1 | $ | ||
Cost of completed December 1 work in process | $ | ||
Started and completed in December | $ | ||
Transferred to finished goods in December | $ | ||
Inventory in process, December 31 | |||
Total costs assigned by the Cutting Department | $ | ||
Feedback
b. Compute and evaluate the change in cost per equivalent unit for direct materials and conversion from the previous month (November). If required, round your answers to two decimal places.
Increase or Decrease | Amount | |
Change in direct materials cost per equivalent unit |
|
$ |
Change in conversion cost per equivalent unit |
|
$ |
In: Accounting
The PDQ system consists of the following six subsystems:
Pizza Factory Locator
Order Entry
Logistics
Order Submit
Routing
Inventory Management
Pick one of these subsystems and build a complete WBS. You may have to make assumptions in order to complete this exercise. If so, just state them with your rationale.
In: Operations Management
in one page answer questions below
Enterprise architecture (EA) at American Express was the framework the organization used to align IT and the business. EA provided a common language for leaders to use to collaborate and transform the business. At American Express, enterprise architects were the change agents who streamlined processes and designed ways to more effectively do business using IT resources. In 2011, American Express was named an InfoWorld/Forrester Enterprise Architecture Award recipient for its EA practices. As American Express leaders considered new payment methods using mobile devices, the EA guided their progress.
Mobile payments were forcing the payments industry to review their practices and significantly transform the way business was done. The new business environment introduced additional complexity with the addition of new delivery channels and the need for shorter time‐to‐market of payment products and services. American Express’s business strategy for its payments products focused on delivering a “consistent, global, integrated customer experience based on services running on a common application platform.”
To achieve this goal, the EA team created reference architectures and road maps for standardized applications across the firm. This team then worked with multiple business solution delivery teams to create and manage the common application architecture and create strategies that facilitated each business’s objectives. Each strategy included a road map of initiatives that included a set of actions, the metrics to evaluate the success of these actions, and the commitments IT and the businesses made to make it happen. The road map was American Express’s way to standardize language, tools, life cycle management of the applications, and architecture and governance processes. The elements of the road map included technology, reference architecture, and capabilities for the business.
The next steps for American Express were to extend the road maps to cover the maturing of SOA and to develop new reference architectures and a new taxonomy to increasingly align IT with the needs of the business. As new technologies emerged and new ways of doing business over social tools created opportunities for new payment products and services, American Express expected to continually evolve its EA.
Discussion Questions
1. What are the key components of the architecture American Express has created?
2. Why was it important to standardize so much of the architecture? What are the advantages and disadvantages of a standard EA for American Express?
In: Computer Science
Give an example of a global policy and an example of a national U.S policy based on one of the following: tobacco use and secondhand smoke, physical inactivity, nutrition, and alcohol use
In: Psychology
In: Accounting